Aller au contenu

Add values to a dictionary table

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

Values the zone adds to a table of its chain. A glob, or regex: followed by a pattern the client's engine compiles in bytes mode under its tier-1 NFA limit. 422 INVALID_PATTERN past the caps or for a pattern no client can load; 503 ENGINE_UNAVAILABLE when the engine cannot start, and nothing is saved.

Fenêtre de terminal
curl --fail-with-body -X POST 'https://app.openlatch.ai/api/public/v1/zones/<zone_id>/dictionary/tables/<table_name>/values' \
-H "Authorization: Bearer $OPENLATCH_API_KEY" \
-H 'Content-Type: application/json' \
-d '{"values":["main"]}'
Rôle dans l’organisationCe point de terminaison
ownerAutorisé
adminAutorisé
editorAutorisé
viewerNon autorisé

Une clé porte le rôle que son propriétaire détient dans l’organisation. Voir Authentification.

Portée de clé d’API : zones:write

ParamètreTypeDescription
zone_idstring (uuid)Obligatoire.
namestringObligatoire.
ParamètreTypeDescription
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.
ChampTypeDescription
valuesarray of stringObligatoire.
ChampTypeDescription
dataobjectObligatoire. One dictionary table of the zone's chain, with its origin zone and its values.
data.case_sensitivebooleanObligatoire.
data.in_usebooleanObligatoire. True when deleting the table would answer DICTIONARY_TABLE_IN_USE.
data.kindsarray of stringObligatoire.
data.namestringObligatoire.
data.observationstringObligatoire.
data.origin_zone_idstringObligatoire.
data.questionstring or null
data.valuesarray of objectObligatoire.
data.values[].origin_zone_idstringObligatoire.
data.values[].valuestringObligatoire.
{
"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"
}
]
}
}