account

Grant a user or team Use, Contribute, or Manage on a resource in the organization this request is bound to, or pass a...

Grant a user or team Use, Contribute, or Manage on a resource in the organization this request is bound to, or pass an explicit permission list instead of a preset. Secrets, integrations, MCP servers, and vault bindings use resource_type credential with the credential_id from secretList, integrationList, mcpServerList, or secretProviderList; the grant follows the credential, not its name. resource_type secret or integration with a name still works: the name resolves to its credential once, when the grant is made. Organization grants use resource_type org and this organization id. You need manage access on that resource (or member:write for an organization grant). Only an Owner can put org:write, org:delete, member:write, or member:delete on an organization grant.

Org permission: none (touches no org data).

post/v1/access/grants

Request

  • Base URL: https://api.kody.codes
  • URL: https://api.kody.codes/v1/access/grants
  • Auth: HTTP bearer

Request body

resource_type'package' | 'app' | 'job' | 'credential' | 'memory' | 'email' | 'org' | 'secret' | 'integration' required

package, app, job, credential, memory, email, or org. secret or integration take a name instead of a credential id.

resource_idstring required
subject_type'user' | 'team' required
subject_idstring

Person id or team id. Omit when passing username or team_slug.

usernamestring
team_slugstring
preset'use' | 'contribute' | 'manage'
permissionsstring[]

Advanced grant. Do not combine with preset.

Response

Success.

Changes

No recorded changes to this operation across all 2 revisions of this API.