curl --request PATCH \
--url https://api.ctrl-hub.com/v3/orgs/{org_id}/projects/work-orders/{work_order_id}/relationships/permits \
--header 'Content-Type: application/vnd.api+json' \
--header 'X-Session-Token: <api-key>' \
--data '
{
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>"
}
]
}
'{
"id": "98ca4a78-b66f-4234-9719-aaf832ee6669",
"status": "400",
"title": "A validation error was encountered",
"source": {
"parameter": "include"
},
"meta": {
"resource": "wrong_value"
}
}Replace existing permits to the work order
curl --request PATCH \
--url https://api.ctrl-hub.com/v3/orgs/{org_id}/projects/work-orders/{work_order_id}/relationships/permits \
--header 'Content-Type: application/vnd.api+json' \
--header 'X-Session-Token: <api-key>' \
--data '
{
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>"
}
]
}
'{
"id": "98ca4a78-b66f-4234-9719-aaf832ee6669",
"status": "400",
"title": "A validation error was encountered",
"source": {
"parameter": "include"
},
"meta": {
"resource": "wrong_value"
}
}Session token for authentication.
The unique identifier for the organisation.
The unique identifier for the work order.
The permits to replace for the work order
Show child attributes
Replace existing permits on a work order