resource-grants

Share a resource: open an active grant to a user, team, or the whole org.

Changed on
post/resource-grants

Request

  • Base URL: /api (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/resource-grants
  • Auth: none declared. Required headers: x-organization-id

Headers

x-organization-idstring required

Active organization id (or slug). Required for org-scoped operations; the generated client enforces it at compile time.

Request body

resourceTypestring required
resourceIdstring required
subjectType'user' | 'team' | 'org' required
roleIdstring required
expiresAtnumber nullable

Response

Response

createdboolean

Changes