Skip to main content

SuccessResponse_GrantArray

successboolean
Constant value: true
data object[]
  • Array [
  • idintegerrequired
    namestringrequired
    descriptionstring | nullnullablerequired
    abilities object[]required
  • 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]

  • ]
  • organizationIdintegerrequired

    The owning organization.

    createdAtstring<date-time>
    updatedAtstring<date-time>
    groups object[]

    The groups the grant is attached to. Present on the routes that preload it.

  • Array [
  • idintegerrequired
    namestringrequired
  • ]
  • ]
  • SuccessResponse_GrantArray
    {
    "success": true,
    "data": [
    {
    "id": 0,
    "name": "string",
    "description": "string",
    "abilities": [
    {
    "path": [
    {
    "resource": "access-token",
    "resourceId": 0
    }
    ],
    "accessType": "read"
    }
    ],
    "organizationId": 0,
    "createdAt": "2024-07-29T15:51:28.071Z",
    "updatedAt": "2024-07-29T15:51:28.071Z",
    "groups": [
    {
    "id": 0,
    "name": "string"
    }
    ]
    }
    ]
    }