Update

Description

Update metadata key-value pairs for a case.

Request

HTTP Method: PUT

Parameter Description
metadata Case related metadata represented as key-value pairs.
Path Parameter Description
case_id The ID of the case.

Sample request

curl -X PUT \
  https://<<META.tenant.domain>>/api/v2/cases/<<case_id>>/metadata \
  -H 'content-type: application/json' \
  -H 'Authorization: Bearer <<CREDENTIAL.tines_api_key>>' \
  -d '{
        "metadata": {
          "key": "new value"
        }
      }'

Response

A successful request will return a JSON object describing the updated metadata.

Field description

Parameter Description
case_id The ID of the case.
metadata Case related metadata represented as key-value pairs.

Sample response

{
  "case_id": 42,
  "metadata": {
    "key": "new value"
  }
}
Was this helpful?