Updates record values and/or condition. Use `response_profile` query param to control the response size.
| Name | Type | Reference |
|---|---|---|
| directory_idrequired | string | Directory ID |
| record_idrequired | string | Record ID |
| Name | Value |
|---|---|
| Content-Type | application/json |
| Name | Type | Constraints | Description |
|---|---|---|---|
condition | enum | [active,inactive,removed] | Custom directory record condition |
values | object | Values map where keys are custom directory field IDs. Each value is either an object (single-value) or an array of objects (multi-select). |
| Name | Type | Constraints | Description |
|---|---|---|---|
| response_profile | string | none | summary | details | full | Controls response size. Use `none` to return `{ id }` only. |
| Description | Response type | Example |
|---|---|---|
| Success | Object |
| Name | Type | Description |
|---|---|---|
| id | string | Record ID (UUID) |
| display_value | null | string | Pre-computed record display value |
| values | array of objects | Field values (included depending on response_profile) |
| author | object | Author user object |
| updater | object | Updater user object |
| Description | Response type | Example |
|---|---|---|
| Validation error | Object |
A schema has not been defined for this response code.
| Description | Response type | Example |
|---|---|---|
| Invalid token | String |
A schema has not been defined for this response code.
| Description | Response type | Example |
|---|---|---|
| Not found | Object |
A schema has not been defined for this response code.
Path Parameters
1 curl --request PATCH \
2 --url 'https://example.kaiten.ru/api/latest/company/custom-directories/{directory_id}/records/{record_id}' \
3 --header 'Accept: application/json' \
4 --header 'Content-Type: application/json'
5 Response
ClickTry It!to start a request and see the response here!