Skip to main content
PUT
/
v2
/
tickets
/
{ticket_id}
/
custom-field-values
Set Ticket Custom Field Values
curl --request PUT \
  --url https://public.api.serval.com/v2/tickets/{ticket_id}/custom-field-values \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "fieldValues": [
    {
      "fieldId": "<string>",
      "fieldKey": "<string>",
      "value": 123,
      "pinned": true
    }
  ]
}
'
{
  "data": [
    {
      "id": "<string>",
      "entityId": "<string>",
      "fieldId": "<string>",
      "fieldKey": "<string>",
      "fieldName": "<string>",
      "dataType": "DATA_TYPE_UNSPECIFIED",
      "value": 123,
      "setByUserId": "<string>",
      "setByAppInstanceId": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "deletedAt": "2023-11-07T05:31:56Z",
      "pinned": true
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

ticket_id
string
required

The ID of the ticket to set custom field values for.

Body

application/json
fieldValues
EntityFieldValueInput · object[]

The field values to set. Use field_key to identify fields (e.g. "custom-gmin").

Response

Success

data
EntityFieldValue · object[]

The updated field values for the ticket.