API referenceWorkspaces
POST /workspaces/{workspaceId}/access-grants (replaces that principal's values for the key)
Path Parameters
workspaceId*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/problem+json
curl -X POST "https://example.com/workspaces/string/access-grants" \ -H "Content-Type: application/json" \ -d '{ "key": "string", "principalId": "string", "principalType": "user", "values": [ "string" ] }'{ "$schema": "https://example.com/schemas/ActivityGrant.json", "createdAt": "2019-08-24T14:15:22Z", "createdBy": "string", "id": "string", "key": "string", "principalId": "string", "principalType": "user", "updatedAt": "2019-08-24T14:15:22Z", "values": [ "string" ], "workspaceId": "string"}key*string
Attribute declared with scope: true
Length
1 <= length <= 64principalId*string
Member user id or API key id
Length
1 <= length <= 160principalType*string
Value in
- "user"
- "apikey"
values*array<string>|
Items
1 <= items <= 100