PUT
/
request-type-custom-fields
/
relationships
Bulk update relationships of request type custom fields
curl --request PUT \
  --url https://core.ravenna.ai/api/request-type-custom-fields/relationships \
  --header 'Content-Type: application/json' \
  --header 'x-ravenna-api-token: <api-key>' \
  --data '{
  "updates": [
    {
      "id": "<string>",
      "parentId": "<string>"
    }
  ]
}'
[
  {
    "id": "<string>",
    "order": 123,
    "private": true,
    "requestTypeId": "<string>",
    "customField": {
      "id": "<string>",
      "workspaceId": "<string>",
      "key": "<string>",
      "label": "<string>",
      "description": "<string>",
      "required": true,
      "system": true,
      "config": null,
      "type": "TEXT",
      "options": [
        {
          "id": "<string>",
          "value": "<string>",
          "order": 123,
          "description": "<string>",
          "color": "<string>",
          "icon": "<string>",
          "customFieldId": "<string>",
          "createdAt": "<string>",
          "updatedAt": "<string>"
        }
      ],
      "createdAt": "<string>",
      "updatedAt": "<string>",
      "_count": {
        "requestTypeCustomField": 123
      }
    },
    "customFieldId": "<string>",
    "ticketField": "TITLE",
    "required": true,
    "createdAt": "<string>",
    "updatedAt": "<string>",
    "parentId": "<string>"
  }
]

Authorizations

x-ravenna-api-token
string
header
required

Body

application/json
updates
object[]
required

Response

Successful response

id
string
required
order
number
required
private
boolean
required
requestTypeId
string
required
customField
object
required
customFieldId
string
required
ticketField
enum<string> | null
required
Available options:
TITLE,
DESCRIPTION,
STATUS,
PRIORITY,
REQUESTER,
ASSIGNEE,
APPROVERS,
FOLLOWERS
required
boolean
required
createdAt
string
required
updatedAt
string
required
parentId
string | null
required