Skip to Content
Docs
API referenceManagement API

Root

GET
/root/members

List the users holding a role on the instance root — its owners and admins, and in the directory Pontive's staff. The root is the request's own instance.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Query Parameters

user_ids?array<string>

Filter by user IDs

emails?array<string>

Filter by emails

roles?array<string>

Filter by roles

search?string

search query

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, joined_at, email. Default: -created_at

Response Body

OK

application/json
  1. response
data?array<>

List of members

object?string

The object type

pagination?

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

Example Request
curl -X GET 'https://api.us.pontive.com/v1/root/members'
Example Response
{  "data": [    {      "created_at": "string",      "instance_id": "string",      "joined_at": "string",      "last_active_at": "string",      "object": "string",      "resource_id": "string",      "resource_name": "string",      "resource_type": "string",      "roles": [        {          "key": "string",          "name": "string"        }      ],      "updated_at": "string",      "user": {        "email": "string",        "email_verified": true,        "family_name": "string",        "given_name": "string",        "id": "string",        "name": "string",        "picture": "string",        "status": "string",        "username": "string"      }    }  ],  "object": "string",  "pagination": {    "limit": 0,    "page": 0,    "total": 0,    "total_pages": 0  }}

Add a root member

POST
/root/members

Give a user roles on the instance root (api-route-review D4, D38): written from the root, like an organization's or a resource's members. A root role is granted with sys:root:grant.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Request Body

The user and the root roles

application/json
  1. body

The user and the root roles

roles*array<string>
user_id*string

Response Body

Created

application/json
  1. response
created_at?string
instance_id?string
joined_at?string
last_active_at?string
object?string
resource_id?string
resource_name?string
resource_type?string
roles?array<>
updated_at?string
user?
Example Request
curl -X POST 'https://api.us.pontive.com/v1/root/members' \  -H 'Content-Type: application/json' \  -d '{  "roles": [    "string"  ],  "user_id": "string"}'
Example Response
{  "created_at": "string",  "instance_id": "string",  "joined_at": "string",  "last_active_at": "string",  "object": "string",  "resource_id": "string",  "resource_name": "string",  "resource_type": "string",  "roles": [    {      "key": "string",      "name": "string"    }  ],  "updated_at": "string",  "user": {    "email": "string",    "email_verified": true,    "family_name": "string",    "given_name": "string",    "id": "string",    "name": "string",    "picture": "string",    "status": "string",    "username": "string"  }}

Get a root member

GET
/root/members/{user_id}

One user's roles on the instance root.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

user_id*string

User ID

Response Body

OK

application/json
  1. response
created_at?string
instance_id?string
joined_at?string
last_active_at?string
object?string
resource_id?string
resource_name?string
resource_type?string
roles?array<>
updated_at?string
user?
Example Request
curl -X GET 'https://api.us.pontive.com/v1/root/members/string'
Example Response
{  "created_at": "string",  "instance_id": "string",  "joined_at": "string",  "last_active_at": "string",  "object": "string",  "resource_id": "string",  "resource_name": "string",  "resource_type": "string",  "roles": [    {      "key": "string",      "name": "string"    }  ],  "updated_at": "string",  "user": {    "email": "string",    "email_verified": true,    "family_name": "string",    "given_name": "string",    "id": "string",    "name": "string",    "picture": "string",    "status": "string",    "username": "string"  }}

Update a root member

PATCH
/root/members/{user_id}

Replace a user's roles on the instance root.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

user_id*string

User ID

Request Body

The root roles

application/json
  1. body

The root roles

roles*array<string>

Response Body

OK

application/json
  1. response
created_at?string
instance_id?string
joined_at?string
last_active_at?string
object?string
resource_id?string
resource_name?string
resource_type?string
roles?array<>
updated_at?string
user?
Example Request
curl -X PATCH 'https://api.us.pontive.com/v1/root/members/string' \  -H 'Content-Type: application/json' \  -d '{  "roles": [    "string"  ]}'
Example Response
{  "created_at": "string",  "instance_id": "string",  "joined_at": "string",  "last_active_at": "string",  "object": "string",  "resource_id": "string",  "resource_name": "string",  "resource_type": "string",  "roles": [    {      "key": "string",      "name": "string"    }  ],  "updated_at": "string",  "user": {    "email": "string",    "email_verified": true,    "family_name": "string",    "given_name": "string",    "id": "string",    "name": "string",    "picture": "string",    "status": "string",    "username": "string"  }}

Remove a root member

DELETE
/root/members/{user_id}

Take every root role from a user. The instance's last owner cannot be removed.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

user_id*string

User ID

Response Body

No Content

Example Request
curl -X DELETE 'https://api.us.pontive.com/v1/root/members/string'
Example Response
Empty