FruxonDocs
ApiCapabilities

Creates a capability

Adds a new entry to the tenant's consult-capability catalog. The name is trimmed and must be unique per tenant compared case-insensitively — a duplicate yields `409 Conflict`. Area and description are optional. Returns the created capability with its generated id.

POST
/v1/tenants/{tenant}/capabilities
AuthorizationBearer <token>

JWT Authorization header using the Bearer scheme. Enter 'Bearer' [space] and then your token.

In: header

Path Parameters

tenant*string

The tenant identifier

The capability to create.

name?string|null

Canonical capability name. Unique per tenant, compared case-insensitively.

area?string|null

Optional grouping label for the picker UI only — not used in routing.

description?string|null

Optional human description of the capability.

[key: string]?never

Response Body

curl -X POST "https://api.fruxon.com/v1/tenants/string/capabilities" \  -H "Content-Type: application/json" \  -d '{}'
{
  "id": "00000000-0000-0000-0000-000000000000",
  "name": "string",
  "area": "string",
  "description": "string",
  "createdAt": 0,
  "modifiedAt": 0
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}
Empty
Empty
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}