Skip to Content
Docs
API referenceManagement API

Permissions

List permissions

GET
/authz/permissions

Get a paginated list of all permissions (system and custom) in the directory. Filter by type (system/custom), resource_type, name (partial match).

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Query Parameters

type?string

Filter by permission type (system, custom)

resource_type?string

Filter by resource type

name?string

Filter by permission name (partial match)

page?integer

Page number

limit?integer

Items per page

sort?string

Sort field; prefix with - for descending (e.g. -created_at). Allowed: created_at, updated_at, name, key. Default: -created_at

Response Body

OK

application/json
  1. response
data?array<>
object?string
pagination?

Pagination is the page answered (api-route-review D9).

Example Request
curl -X GET 'https://api.us.pontive.com/v1/authz/permissions'
Example Response
{  "data": [    {      "created_at": "string",      "description": "string",      "key": "string",      "name": "string",      "object": "string",      "resource_type": "string",      "type": "system",      "updated_at": "string",      "used_in_roles": [        {          "key": "string",          "name": "string"        }      ]    }  ],  "object": "string",  "pagination": {    "limit": 0,    "page": 0,    "total": 0,    "total_pages": 0  }}
GET
/authz/resource-types/{resource_type}/permissions

The permissions of one resource type (D18), filtered as GET /authz/permissions is.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

resource_type*string

Resource type key

Query Parameters

type?string

Filter by permission type (system, custom)

name?string

Filter by permission name (partial match)

page?integer

Page number

limit?integer

Items per page

sort?string

Sort field; prefix with - for descending (e.g. -created_at). Allowed: created_at, updated_at, name, key. Default: -created_at

Response Body

OK

application/json
  1. response
data?array<>
object?string
pagination?

Pagination is the page answered (api-route-review D9).

Example Request
curl -X GET 'https://api.us.pontive.com/v1/authz/resource-types/string/permissions'
Example Response
{  "data": [    {      "created_at": "string",      "description": "string",      "key": "string",      "name": "string",      "object": "string",      "resource_type": "string",      "type": "system",      "updated_at": "string",      "used_in_roles": [        {          "key": "string",          "name": "string"        }      ]    }  ],  "object": "string",  "pagination": {    "limit": 0,    "page": 0,    "total": 0,    "total_pages": 0  }}

Create custom permission

POST
/authz/resource-types/{resource_type}/permissions

Create a custom permission. Required: key, resource_type. Optional: description, name. Name format: resource:action or resource:sub_resource:action.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

resource_type*string

resource_type

Request Body

Create Permission Request

application/json
  1. body

Create Permission Request

description?string
key*string
name?string

Response Body

Created

application/json
  1. response
created_at?string
description?string
key?string
name?string
object?string
resource_type?string
type?string
Value in"system""custom"
updated_at?string
used_in_roles?array<>
Example Request
curl -X POST 'https://api.us.pontive.com/v1/authz/resource-types/string/permissions' \  -H 'Content-Type: application/json' \  -d '{  "key": "string"}'
Example Response
{  "created_at": "string",  "description": "string",  "key": "string",  "name": "string",  "object": "string",  "resource_type": "string",  "type": "system",  "updated_at": "string",  "used_in_roles": [    {      "key": "string",      "name": "string"    }  ]}

Get permission details

GET
/authz/resource-types/{resource_type}/permissions/{permission_key}

Get a permission by name. Returns name, key, description, type, resource_type, created_at, updated_at, used_in_roles. Works for both system and custom permissions.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

permission_key*string

Permission Key

resource_type*string

Permission resource type

Response Body

OK

application/json
  1. response
created_at?string
description?string
key?string
name?string
object?string
resource_type?string
type?string
Value in"system""custom"
updated_at?string
used_in_roles?array<>
Example Request
curl -X GET 'https://api.us.pontive.com/v1/authz/resource-types/string/permissions/string'
Example Response
{  "created_at": "string",  "description": "string",  "key": "string",  "name": "string",  "object": "string",  "resource_type": "string",  "type": "system",  "updated_at": "string",  "used_in_roles": [    {      "key": "string",      "name": "string"    }  ]}

Update custom permission

PATCH
/authz/resource-types/{resource_type}/permissions/{permission_key}

Update a custom permission. Can update: description, name. Cannot update: key (immutable), resource_type (immutable). System permissions cannot be updated.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

permission_key*string

Permission Key

resource_type*string

Permission resource type

Header Parameters

If-Match?string

The ETag the document was read with: a stale one is refused 412 precondition_failed (D42)

Request Body

Update Permission Request (description, name)

application/json
  1. body

Update Permission Request (description, name)

description?string
name?string

Response Body

OK

application/json
  1. response
created_at?string
description?string
key?string
name?string
object?string
resource_type?string
type?string
Value in"system""custom"
updated_at?string
used_in_roles?array<>
Example Request
curl -X PATCH 'https://api.us.pontive.com/v1/authz/resource-types/string/permissions/string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "created_at": "string",  "description": "string",  "key": "string",  "name": "string",  "object": "string",  "resource_type": "string",  "type": "system",  "updated_at": "string",  "used_in_roles": [    {      "key": "string",      "name": "string"    }  ]}

Delete custom permission

DELETE
/authz/resource-types/{resource_type}/permissions/{permission_key}

Delete a custom permission. System permissions cannot be deleted. Returns 204 No Content on success.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

resource_type*string

Permission resource type

permission_key*string

Permission Key

Query Parameters

force?boolean

Force delete (bypass confirmation when permission is used in roles)

Header Parameters

If-Match?string

The ETag the document was read with: a stale one is refused 412 precondition_failed (D42)

Response Body

No Content

Example Request
curl -X DELETE 'https://api.us.pontive.com/v1/authz/resource-types/string/permissions/string'
Example Response
Empty