Ir al contenido

Add a dictionary table to a zone

POST/api/public/v1/zones/{zone_id}/dictionary/tables beta

A name is defined once per zone chain: 409 DICTIONARY_TABLE_EXISTS when it is already defined above, here or below. 422 INVALID_OBSERVATION for an observation or a kind outside the toolbox.

Ventana de terminal
curl --fail-with-body -X POST 'https://app.openlatch.ai/api/public/v1/zones/<zone_id>/dictionary/tables' \
-H "Authorization: Bearer $OPENLATCH_API_KEY" \
-H 'Content-Type: application/json' \
-d '{"name":"<table_name>","observation":"name","kinds":["branch"]}'
Rol en la organizaciónEste punto de conexión
ownerPermitido
adminPermitido
editorPermitido
viewerNo permitido

Una clave tiene el rol que su propietario ocupa en la organización. Consulte Autenticación.

Ámbito de la clave de API: zones:write

ParámetroTipoDescripción
zone_idstring (uuid)Obligatorio.
ParámetroTipoDescripción
Idempotency-Keystring or nullOptional. Makes the request safe to retry: the same key and the same request, within 24 hours, returns the stored response with Idempotent-Replayed: true and runs once.
CampoTipoDescripción
case_sensitiveboolean
kindsarray of string
namestringObligatorio.
observationstringObligatorio.
questionstring or null
CampoTipoDescripción
dataobjectObligatorio. One dictionary table of the zone's chain, with its origin zone and its values.
data.case_sensitivebooleanObligatorio.
data.in_usebooleanObligatorio. True when deleting the table would answer DICTIONARY_TABLE_IN_USE.
data.kindsarray of stringObligatorio.
data.namestringObligatorio.
data.observationstringObligatorio.
data.origin_zone_idstringObligatorio.
data.questionstring or null
data.valuesarray of objectObligatorio.
data.values[].origin_zone_idstringObligatorio.
data.values[].valuestringObligatorio.
{
"data": {
"case_sensitive": false,
"in_use": false,
"kinds": [
"string"
],
"name": "release-bot",
"observation": "string",
"origin_zone_id": "3f6c1a2e-8b4d-4c1f-9a7e-0d5b2c8e4f10",
"question": "string",
"values": [
{
"origin_zone_id": "3f6c1a2e-8b4d-4c1f-9a7e-0d5b2c8e4f10",
"value": "string"
}
]
}
}