For the complete documentation index, see llms.txt. This page is also available as Markdown.

Overrides

Access and modify Overrides for Security Issues

get
/api/v2/overrides

List a collection of Overrides

Required scopes
This endpoint requires the following scopes:
Authorizations
X-Api-KeystringRequired
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
accountIdstringRequired

Harness Account ID

Example: abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$
pageinteger · int64Optional

Page number to fetch (starting from 0)

Default: 0Example: 4
pageSizeinteger · int64 · min: 1 · max: 100Optional

Number of results per page

Default: 30Example: 50
orgIdstring · max: 128Optional

Harness Organization ID

Example: example_orgPattern: ^[A-Za-z_][A-Za-z0-9_]*$
projectIdstring · max: 128Optional

Harness Project ID

Example: example_projectPattern: ^[A-Za-z_][A-Za-z0-9_]*$
Header parameters
X-Api-KeystringOptional

Harness personal or service access token

Example: Sunt eos.
Responses
200

OK response.

application/json
get/api/v2/overrides
GET /gateway/sto/api/v2/overrides?accountId=abcdef1234567890ghijkl HTTP/1.1
Host: app.harness.io
X-Api-Key: YOUR_API_KEY
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "pagination": {
    "link": "",
    "page": 4,
    "pageSize": 20,
    "totalItems": 230,
    "totalPages": 12
  },
  "results": [
    {
      "approverId": "user111111111111111111",
      "created": 1651578240,
      "id": "abcdef1234567890ghijkl",
      "isDeleted": true,
      "issueId": "abcdef1234567890ghijkl",
      "lastModified": 1651578240,
      "link": "https://example.com/ABC-1234",
      "occurrences": [
        42,
        666
      ],
      "orgId": "example_org",
      "overrideFieldName": "severity",
      "overrideFieldValue": "Low",
      "pipelineId": "example_pipeline",
      "projectId": "example_project",
      "reason": "Waiting on upstream bug fix",
      "requesterId": "user111111111111111111",
      "scanId": "abcdef1234567890ghijkl",
      "scope": "PROJECT",
      "search": "CWE-123,5",
      "status": "Approved",
      "targetId": "abcdef1234567890ghijkl"
    },
    {
      "approverId": "user111111111111111111",
      "created": 1651578240,
      "id": "abcdef1234567890ghijkl",
      "isDeleted": true,
      "issueId": "abcdef1234567890ghijkl",
      "lastModified": 1651578240,
      "link": "https://example.com/ABC-1234",
      "occurrences": [
        42,
        666
      ],
      "orgId": "example_org",
      "overrideFieldName": "severity",
      "overrideFieldValue": "Low",
      "pipelineId": "example_pipeline",
      "projectId": "example_project",
      "reason": "Waiting on upstream bug fix",
      "requesterId": "user111111111111111111",
      "scanId": "abcdef1234567890ghijkl",
      "scope": "PROJECT",
      "search": "CWE-123,5",
      "status": "Approved",
      "targetId": "abcdef1234567890ghijkl"
    }
  ]
}
post
/api/v2/overrides

Create a new Override

Required scopes
This endpoint requires the following scopes:
Authorizations
X-Api-KeystringRequired
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
accountIdstringRequired

Harness Account ID

Example: abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$
orgIdstring · max: 128Required

Harness Organization ID

Example: example_orgPattern: ^[A-Za-z_][A-Za-z0-9_]*$
projectIdstring · max: 128Required

Harness Project ID

Example: example_projectPattern: ^[A-Za-z_][A-Za-z0-9_]*$
Header parameters
X-Api-KeystringOptional

Harness personal or service access token

Example: Et quod non quae dolores.
Body
issueIdstringRequired

The ID of the Security Issue

Example: abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$
linkstring · max: 1024Optional

Link to a related ticket

Example: https://example.com/ABC-1234
occurrencesinteger · int64[]Optional

Array of occurrence Ids

Example: [42,666]
overrideFieldNamestring · max: 1024Required

Name of the field that is being overridden

Example: severity
overrideFieldValuestring · max: 1024Required

Value of the field that is being overridden

Example: Low
overrideFutureOccurrencesbooleanOptional

States if the user wants to override future occurrences of the issue

Default: trueExample: false
pipelineIdstring · max: 128Optional

Harness Pipeline ID

Example: example_pipelinePattern: ^[A-Za-z_][A-Za-z0-9_]*$
reasonstring · max: 1024Required

Text describing why this override is necessary

Example: Waiting on upstream bug fix
requesterIdstringRequired

User ID of the user who requested this Exemption

Example: user111111111111111111
scanIdstringOptional

ID of the Harness Scan to determine all the occurrences for the scan-issue

Example: abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$
searchstring · max: 256Optional

Search parameter to find filtered occurrences of the issue

Example: CWE-123,5
targetIdstringOptional

Associated Target ID

Example: abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$
Responses
200

OK response.

application/json
idstringRequired

Resource identifier

Example: abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$
post/api/v2/overrides
POST /gateway/sto/api/v2/overrides?accountId=abcdef1234567890ghijkl&orgId=example_org&projectId=example_project HTTP/1.1
Host: app.harness.io
X-Api-Key: YOUR_API_KEY
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 390

{
  "issueId": "abcdef1234567890ghijkl",
  "link": "https://example.com/ABC-1234",
  "occurrences": [
    42,
    666
  ],
  "overrideFieldName": "severity",
  "overrideFieldValue": "Low",
  "overrideFutureOccurrences": false,
  "pipelineId": "example_pipeline",
  "reason": "Waiting on upstream bug fix",
  "requesterId": "user111111111111111111",
  "scanId": "abcdef1234567890ghijkl",
  "search": "CWE-123,5",
  "targetId": "abcdef1234567890ghijkl"
}
{
  "id": "abcdef1234567890ghijkl"
}
get
/api/v2/overrides/{id}

Find Override by ID

Required scopes
This endpoint requires the following scopes:
Authorizations
X-Api-KeystringRequired
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired

The ID of the Override to retrieve

Example: abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$
Query parameters
accountIdstringRequired

Harness Account ID

Example: abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$
orgIdstring · max: 128Optional

Harness Organization ID

Example: example_orgPattern: ^[A-Za-z_][A-Za-z0-9_]*$
projectIdstring · max: 128Optional

Harness Project ID

Example: example_projectPattern: ^[A-Za-z_][A-Za-z0-9_]*$
executionIdstringOptional

Harness Execution ID

Example: abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$
Header parameters
X-Api-KeystringOptional

Harness personal or service access token

Example: Eos et.
Responses
200

OK response.

application/json

Information about an Override

approverIdstringOptional

User ID of the user who approved this Exemption

Example: user111111111111111111
createdinteger · int64Optional

Unix timestamp at which the resource was created

Example: 1651578240
idstringOptional

Resource identifier

Example: abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$
isDeletedbooleanOptional

States if the override is deleted

Default: falseExample: true
issueIdstringRequired

The ID of the Security Issue

Example: abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$
lastModifiedinteger · int64Optional

Unix timestamp at which the resource was most recently modified

Example: 1651578240
linkstring · max: 1024Optional

Link to a related ticket

Example: https://example.com/ABC-1234
occurrencesinteger · int64[]Optional

Array of occurrence Ids

Example: [42,666]
orgIdstring · max: 128Optional

Harness Organization ID

Example: example_orgPattern: ^[A-Za-z_][A-Za-z0-9_]*$
overrideFieldNamestring · max: 1024Required

Name of the field that is being overridden

Example: severity
overrideFieldValuestring · max: 1024Required

Value of the field that is being overridden

Example: Low
pipelineIdstring · max: 128Optional

Harness Pipeline ID

Example: example_pipelinePattern: ^[A-Za-z_][A-Za-z0-9_]*$
projectIdstring · max: 128Optional

Harness Project ID

Example: example_projectPattern: ^[A-Za-z_][A-Za-z0-9_]*$
reasonstring · max: 1024Required

Text describing why this override is necessary

Example: Waiting on upstream bug fix
requesterIdstringRequired

User ID of the user who requested this Exemption

Example: user111111111111111111
scanIdstringOptional

ID of the Harness Scan to determine all the occurrences for the scan-issue

Example: abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$
scopestring · enumOptional

States the scope for the override

Example: PROJECTPossible values:
searchstring · max: 256Optional

Search parameter to find filtered occurrences of the issue

Example: CWE-123,5
statusstring · enumRequired

Approval status of Override

Default: PendingExample: RejectedPossible values:
targetIdstringOptional

Associated Target ID

Example: abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$
get/api/v2/overrides/{id}
GET /gateway/sto/api/v2/overrides/{id}?accountId=abcdef1234567890ghijkl HTTP/1.1
Host: app.harness.io
X-Api-Key: YOUR_API_KEY
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "approverId": "user111111111111111111",
  "created": 1651578240,
  "id": "abcdef1234567890ghijkl",
  "isDeleted": true,
  "issueId": "abcdef1234567890ghijkl",
  "lastModified": 1651578240,
  "link": "https://example.com/ABC-1234",
  "occurrences": [
    42,
    666
  ],
  "orgId": "example_org",
  "overrideFieldName": "severity",
  "overrideFieldValue": "Low",
  "pipelineId": "example_pipeline",
  "projectId": "example_project",
  "reason": "Waiting on upstream bug fix",
  "requesterId": "user111111111111111111",
  "scanId": "abcdef1234567890ghijkl",
  "scope": "PROJECT",
  "search": "CWE-123,5",
  "status": "Approved",
  "targetId": "abcdef1234567890ghijkl"
}
put
/api/v2/overrides/{id}

Update an existing Override

Required scopes
This endpoint requires the following scopes:
Authorizations
X-Api-KeystringRequired
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired

The ID of the Override to update

Example: abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$
Query parameters
accountIdstringRequired

Harness Account ID

Example: abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$
orgIdstring · max: 128Optional

Harness Organization ID

Example: example_orgPattern: ^[A-Za-z_][A-Za-z0-9_]*$
projectIdstring · max: 128Optional

Harness Project ID

Example: example_projectPattern: ^[A-Za-z_][A-Za-z0-9_]*$
Header parameters
X-Api-KeystringOptional

Harness personal or service access token

Example: Dignissimos iusto reiciendis et expedita corporis sit.
Body
linkstring · max: 1024Optional

Link to a related ticket

Example: https://example.com/ABC-1234
overrideFieldNamestring · max: 1024Required

Name of the field that is being overridden

Example: severity
overrideFieldValuestring · max: 1024Required

Value of the field that is being overridden

Example: Low
pipelineIdstring · max: 128Optional

Harness Pipeline ID

Example: example_pipelinePattern: ^[A-Za-z_][A-Za-z0-9_]*$
reasonstring · max: 1024Required

Text describing why this override is necessary

Example: Waiting on upstream bug fix
requesterIdstringRequired

User ID of the user who requested this Exemption

Example: user111111111111111111
targetIdstringOptional

Associated Target ID

Example: abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$
Responses
200

OK response.

application/json

Information about an Override

approverIdstringOptional

User ID of the user who approved this Exemption

Example: user111111111111111111
createdinteger · int64Optional

Unix timestamp at which the resource was created

Example: 1651578240
idstringOptional

Resource identifier

Example: abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$
isDeletedbooleanOptional

States if the override is deleted

Default: falseExample: true
issueIdstringRequired

The ID of the Security Issue

Example: abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$
lastModifiedinteger · int64Optional

Unix timestamp at which the resource was most recently modified

Example: 1651578240
linkstring · max: 1024Optional

Link to a related ticket

Example: https://example.com/ABC-1234
occurrencesinteger · int64[]Optional

Array of occurrence Ids

Example: [42,666]
orgIdstring · max: 128Optional

Harness Organization ID

Example: example_orgPattern: ^[A-Za-z_][A-Za-z0-9_]*$
overrideFieldNamestring · max: 1024Required

Name of the field that is being overridden

Example: severity
overrideFieldValuestring · max: 1024Required

Value of the field that is being overridden

Example: Low
pipelineIdstring · max: 128Optional

Harness Pipeline ID

Example: example_pipelinePattern: ^[A-Za-z_][A-Za-z0-9_]*$
projectIdstring · max: 128Optional

Harness Project ID

Example: example_projectPattern: ^[A-Za-z_][A-Za-z0-9_]*$
reasonstring · max: 1024Required

Text describing why this override is necessary

Example: Waiting on upstream bug fix
requesterIdstringRequired

User ID of the user who requested this Exemption

Example: user111111111111111111
scanIdstringOptional

ID of the Harness Scan to determine all the occurrences for the scan-issue

Example: abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$
scopestring · enumOptional

States the scope for the override

Example: PROJECTPossible values:
searchstring · max: 256Optional

Search parameter to find filtered occurrences of the issue

Example: CWE-123,5
statusstring · enumRequired

Approval status of Override

Default: PendingExample: RejectedPossible values:
targetIdstringOptional

Associated Target ID

Example: abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$
put/api/v2/overrides/{id}
PUT /gateway/sto/api/v2/overrides/{id}?accountId=abcdef1234567890ghijkl HTTP/1.1
Host: app.harness.io
X-Api-Key: YOUR_API_KEY
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 243

{
  "link": "https://example.com/ABC-1234",
  "overrideFieldName": "severity",
  "overrideFieldValue": "Low",
  "pipelineId": "example_pipeline",
  "reason": "Waiting on upstream bug fix",
  "requesterId": "user111111111111111111",
  "targetId": "abcdef1234567890ghijkl"
}
{
  "approverId": "user111111111111111111",
  "created": 1651578240,
  "id": "abcdef1234567890ghijkl",
  "isDeleted": true,
  "issueId": "abcdef1234567890ghijkl",
  "lastModified": 1651578240,
  "link": "https://example.com/ABC-1234",
  "occurrences": [
    42,
    666
  ],
  "orgId": "example_org",
  "overrideFieldName": "severity",
  "overrideFieldValue": "Low",
  "pipelineId": "example_pipeline",
  "projectId": "example_project",
  "reason": "Waiting on upstream bug fix",
  "requesterId": "user111111111111111111",
  "scanId": "abcdef1234567890ghijkl",
  "scope": "PROJECT",
  "search": "CWE-123,5",
  "status": "Approved",
  "targetId": "abcdef1234567890ghijkl"
}

Last updated

Was this helpful?