Principals
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
The substring by which the principals are filtered.
The page to return.
1The maximum number of results to return.
30Identifier of the repo.
When query is empty, return users who recently authored pull requests in the repository. A query uses the normal principal search.
falseOK
Bad Request
Not Found
Internal Server Error
GET /code/api/v1/principals?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Accept: */*
[
{
"created": 1,
"display_name": "text",
"email": "text",
"id": 1,
"type": "service",
"uid": "text",
"updated": 1
}
]Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
The substring by which the principals are filtered.
The page to return.
1The maximum number of results to return.
30Identifier of the repo.
When query is empty, return users who recently authored pull requests in the repository. A query uses the normal principal search.
falseOK
Bad Request
Unauthorized
Forbidden
Internal Server Error
GET /code/api/v1/principals/scoped?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Accept: */*
[
{
"created": 1,
"display_name": "text",
"email": "text",
"id": 1,
"type": "service",
"uid": "text",
"updated": 1
}
]Last updated
Was this helpful?