Root
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.
x-pontive-instance-id<token>Instance ID for the request
user_ids?array<string>Filter by user IDs
emails?array<string>Filter by emails
roles?array<string>Filter by roles
search?stringsearch query
page?integerPage number
limit?integerItems per page
sort?stringSort field; prefix with - for descending (e.g. -created_at). Allowed: created_at, updated_at, joined_at, email. Default: -created_at
OK
application/json- response
data?array<>List of members
object?stringThe object type
pagination?Pagination is the page answered (api-route-review D9).
curl -X GET 'https://api.us.pontive.com/v1/root/members'{ "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 }}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.
x-pontive-instance-id<token>Instance ID for the request
The user and the root roles
application/json- body
The user and the root roles
roles*array<string>user_id*stringCreated
application/json- response
created_at?stringinstance_id?stringjoined_at?stringlast_active_at?stringobject?stringresource_id?stringresource_name?stringresource_type?stringroles?array<>updated_at?stringuser?curl -X POST 'https://api.us.pontive.com/v1/root/members' \ -H 'Content-Type: application/json' \ -d '{ "roles": [ "string" ], "user_id": "string"}'{ "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" }}One user's roles on the instance root.
x-pontive-instance-id<token>Instance ID for the request
user_id*stringUser ID
OK
application/json- response
created_at?stringinstance_id?stringjoined_at?stringlast_active_at?stringobject?stringresource_id?stringresource_name?stringresource_type?stringroles?array<>updated_at?stringuser?curl -X GET 'https://api.us.pontive.com/v1/root/members/string'{ "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" }}Replace a user's roles on the instance root.
x-pontive-instance-id<token>Instance ID for the request
user_id*stringUser ID
The root roles
application/json- body
The root roles
roles*array<string>OK
application/json- response
created_at?stringinstance_id?stringjoined_at?stringlast_active_at?stringobject?stringresource_id?stringresource_name?stringresource_type?stringroles?array<>updated_at?stringuser?curl -X PATCH 'https://api.us.pontive.com/v1/root/members/string' \ -H 'Content-Type: application/json' \ -d '{ "roles": [ "string" ]}'{ "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" }}Take every root role from a user. The instance's last owner cannot be removed.
x-pontive-instance-id<token>Instance ID for the request
user_id*stringUser ID
No Content
curl -X DELETE 'https://api.us.pontive.com/v1/root/members/string'