Skip to main content

GrantCreate

namestringrequired

Unique within the organization, case-insensitively (409 otherwise).

Possible values: non-empty and <= 255 characters

descriptionstring | nullnullable

Possible values: <= 2000 characters

abilities object[]required

Possible values: >= 1

  • Array [
  • path object[]required

    Possible values: >= 1

  • Array [
  • resourcestringrequired

    Possible values: [access-token, ai-model, client-contract, cluster, collection, connector, dataset, endpoint, entry, file, workflow, grant, invoice, job, license, mcp-config, node, organization, provider, rate-catalog-entry, role, source, stripe, tag, user]

    resourceId objectrequired

    A positive integer id, or the wildcard "*" covering every resource of this type.

    oneOf
    integer

    Possible values: >= 1

  • ]
  • accessTypestringrequired

    Possible values: [read, write]

  • ]
  • groupIdinteger

    Attach the new grant to this group of the organization in the same transaction.

    Possible values: >= 1

    GrantCreate
    {
    "name": "string",
    "description": "string",
    "abilities": [
    {
    "path": [
    {
    "resource": "access-token",
    "resourceId": 0
    }
    ],
    "accessType": "read"
    }
    ],
    "groupId": 0
    }