VolundOS
Referência da APIOntologia

Editar tipo

Muda nome, ícone, ordem, se pode conter, o acesso geral e, com `properties`, a lista completa de propriedades. Exige `ontology.types.manage`. Exige o escopo ontology:write.

Atualizado em 27 de novembro de 2026
PATCH
/v1/ontology/types/{typeId}

Authorization

chaveDeApi
AuthorizationBearer <token>

Chave de API da organização, criada nas configurações. Envie-a em Authorization: Bearer <sua chave>.

In: header

Path Parameters

typeId*string

Identificador do tipo.

Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/v1/ontology/types/497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Content-Type: application/json" \  -d '{}'
{  "type": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "name": "string",    "single_name": "string",    "icon": "string",    "position": 0,    "can_contain": true,    "general_access": "none",    "properties": [      {        "key": "string",        "label": "string",        "kind": "text",        "options": [          "string"        ]      }    ],    "count": 0  }}