​

Update record

PATCH
https://example.kaiten.ru/api/latest/company/custom-directories/{directory_id}/records/{record_id}

Updates record values and/or condition. Requires custom-properties management permission or settings.allow_editing=true. Omitted field IDs retain their values. Arrays replace the supplied field's value list. Required non-checkbox fields cannot be explicitly set to null or an empty string. Linked-directory reverse relations and display_value are updated automatically.

Path parameters
NameTypeReference
directory_idrequiredstringDirectory ID
record_idrequiredstringRecord ID
Headers
NameValue
Content-Typeapplication/json
Attributes
schema
NameTypeConstraintsDescription
condition
enum
[active,inactive,removed]

Custom directory record condition

values
object

Partial map keyed by active field UUIDs. Omitted fields remain unchanged. Use the same typed value objects as record creation (value_text, value_number, value_date, user_uid, select_value_uid, catalog_value_uid, directory_record_id); arrays replace a field's value list. null clears an optional single value. For multi-valued fields, use the desired replacement array; an empty array requests clearing. Required non-checkbox fields cannot be set to null or an empty string.

Query
NameTypeConstraintsDescription
response_profilestringnone | summary | details | fullDefault: full (also for unrecognized values). none returns only {id}; summary includes values and direct relations; details expands one linked-record level with its directory and fields; full additionally expands the next linked-record level.
Responses

200
DescriptionResponse typeExample
SuccessObject
Open
Response Attributes
NameTypeDescription
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
400
DescriptionResponse typeExample
Validation errorObject
Open

A schema has not been defined for this response code.

401
DescriptionResponse typeExample
Invalid tokenString
Open
404
DescriptionResponse typeExample
Not foundObject
Open

A schema has not been defined for this response code.

Examples

Update only the specified record fields; other fields keep their values. Replace these example field IDs with IDs from your directory.

Change a name and clear an optional email
{
  "values": {
    "c1d2e3f4-1111-4aaa-8bbb-ccccdddd0001": {
      "value_text": "Alice Smith"
    },
    "c1d2e3f4-1111-4aaa-8bbb-ccccdddd0002": null
  }
}
Deactivate a record without changing its values
{
  "condition": "inactive"
}
logo
Kaiten
If you have any questions or need help with integration feel free to write us at support@kaiten.ru

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!