Skip to content

Create Alert Metadata

Create the specified alert metadata.

Verb PUT
Endpoint {base-url}/alerts/metadata
Max Page Size N/A

Request Body

{
  "body": [
    {
      "alertId": 1,
      "key": "foo",
      "value": "bar"
    }
  ]
}

Note

All changes in this request are atomic. If any item fails, the entire batch is rolled back and no changes are made.

Returns

On Success

Return the IDs of the created alert metadata.

Response Body

[
  2
]

On Error

HTTP Code Error Code Definition
400 DESERIALIZATION_ERROR Request body was empty or missing.
422 VALIDATION_ERROR alertId, key, or value is missing; or key exceeds 200 characters.
404 MISSING_RECORD One or more alertId values do not refer to an existing alert (including non-positive ids).
403 DATA_ACCESS_VIOLATION One or more referenced alerts belong to an organization the requester does not have access to.