VolundOS
Referência da APIOntologia

Ligar ou tirar ação do tipo

Liga um processo como ação do tipo (todo objeto do tipo passa a oferecê-lo) ou tira. Exige editar o tipo. Exige o escopo ontology:write.

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

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

curl -X POST "https://example.com/v1/ontology/types/497f6eca-6276-4993-bfeb-53cbbbba6f08/actions" \  -H "Content-Type: application/json" \  -d '{    "process_id": "c0de2232-b221-4f6a-96f2-8c4ca1fda3aa"  }'
{  "actions": [    {      "process_id": "c0de2232-b221-4f6a-96f2-8c4ca1fda3aa",      "restricted": true,      "name": "string",      "icon": "string",      "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        }      ]    }  ]}