VolundOS
Referência da APIOntologia

Configurar processo

Faz do objeto um processo executável: o agente que executa, quem aprova (opcional) e os campos que cada pedido preenche. `agent_id` nulo tira. Exige editar o objeto e poder usar o agente. Exige o escopo ontology:write.

Atualizado em 27 de novembro de 2026
PUT
/v1/ontology/objects/{objectId}/process

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

objectId*string

Identificador do objeto.

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

curl -X PUT "https://example.com/v1/ontology/objects/497f6eca-6276-4993-bfeb-53cbbbba6f08/process" \  -H "Content-Type: application/json" \  -d '{    "agent_id": "2b1e3b65-2c04-4fa2-a2d7-467901e98978"  }'
{  "process": {    "object_id": "463a83d0-a816-4902-abba-2486e0c0a0bb",    "agent": {      "type": "user",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "name": "string"    },    "approver": {      "type": "user",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "name": "string"    },    "inputs": [      {        "key": "string",        "label": "string",        "kind": "text",        "options": [          "string"        ],        "required": true      }    ]  }}