Access
Authorization
bearer In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/projects/string/access/check" \ -H "Content-Type: application/json" \ -d '{ "permission": "invoice:create" }'{ "allowed": true, "reason": "PROJECT_ROLE", "permission": "string", "scope": "PROJECT", "roles": [ "string" ], "explanation": [ { "step": "customer", "ok": true } ]}Authorization
bearer In: header
Path Parameters
Query Parameters
Value in
- "PROJECT"
- "ORGANIZATION"
Response Body
application/json
curl -X GET "https://example.com/projects/string/access/roles"[ { "key": "string", "name": "string", "description": "string", "scope": "PROJECT", "appliesToAllOrganizations": true, "system": true, "permissions": [ "string" ], "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }]Authorization
bearer In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/projects/string/access/roles" \ -H "Content-Type: application/json" \ -d '{ "key": "billing-admin", "name": "Billing admin", "scope": "PROJECT" }'{ "key": "string", "name": "string", "description": "string", "scope": "PROJECT", "appliesToAllOrganizations": true, "system": true, "permissions": [ "string" ], "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}Authorization
bearer In: header
Path Parameters
Response Body
application/json
curl -X GET "https://example.com/projects/string/access/roles/string"{ "key": "string", "name": "string", "description": "string", "scope": "PROJECT", "appliesToAllOrganizations": true, "system": true, "permissions": [ "string" ], "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}Authorization
bearer In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X PATCH "https://example.com/projects/string/access/roles/string" \ -H "Content-Type: application/json" \ -d '{}'{ "key": "string", "name": "string", "description": "string", "scope": "PROJECT", "appliesToAllOrganizations": true, "system": true, "permissions": [ "string" ], "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}Authorization
bearer In: header
Path Parameters
Response Body
application/json
curl -X DELETE "https://example.com/projects/string/access/roles/string"{ "deleted": true}Authorization
bearer In: header
Path Parameters
Response Body
application/json
curl -X GET "https://example.com/projects/string/access/permissions"[ { "key": "string", "description": "string", "createdAt": "2019-08-24T14:15:22Z" }]Authorization
bearer In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/projects/string/access/permissions" \ -H "Content-Type: application/json" \ -d '{ "key": "invoice:create" }'{ "key": "string", "description": "string", "createdAt": "2019-08-24T14:15:22Z"}Authorization
bearer In: header
Path Parameters
Response Body
application/json
curl -X DELETE "https://example.com/projects/string/access/permissions/string"{ "deleted": true}