Project
For projects, the title is used as an identifier, converted to lowercase with
spaces replaced by underscores. This can later be used as the
project_id, which serves as the category for
applications. The project name can include Latin letters (upper and lower case),
digits, spaces, and the underscore symbol. The maximum length of the string is
32 characters.
Publish Project
Creates a new project with the specified title. The project ID is derived from the title (converted to lowercase, spaces replaced by underscores). Sets the project administrator flags for both the request author and the target user, if specified.
Pre-request validation:
Project title uniqueness
Application name uniqueness within the project
The target user must have 2FA enabled (email 2FA does not count)
The project title must not produce a reserved ID (
internal,game)
Access Requirements
The request author must have a positive can_create_projects rule.
Note
It is possible to limit the number of projects a user can create by assigning a
parameterized role that includes the can_create_projects rule. In the role
parameters, specify an integer representing the maximum number of projects
allowed.
If multiple rules of this type are present with different limits, the highest limit will apply. If both limited and unlimited rules are assigned, no limit will be enforced.
Request
POST /api/permissions/publish
Warning
Passing jwt, factor, and service_jwt in the request body is deprecated.
Use the corresponding HTTP headers instead.
jwt string required
User’s JWT token.
factor string conditionally required
User device factor. Required if
service_jwtis not provided.service_jwt string conditionally required
Service JWT. Required if
factoris not provided.project string required
Project title.
user string optional
Target user to assign as project administrator.
Response
Success
Retrieve, Edit, and Delete Project
Retrieves, updates, or deletes a project record.
Access Requirements
Retrieve (
"get"):projectID/project.can_view_projectEdit (
"save"):projectID/project.can_manage_projectDelete (
"delete"):projectID/project.can_remove_project
Note
Deletion sets the removed=true flag on the project record. Project users will
no longer be able to make API requests. To fully delete the record and all
associated resources, use the control panel.
Request
POST /api/permissions/project
Warning
Passing jwt, factor, and service_jwt in the request body is deprecated.
Use the corresponding HTTP headers instead.
jwt string required
User’s JWT token.
factor string conditionally required
User device factor. Required if
service_jwtis not provided.service_jwt string conditionally required
Service JWT. Required if
factoris not provided.action string required
Action to perform. Allowed values:
"get","save","delete".data object required
Action payload. Fields vary by action.
id string optional
Project ID. Required for
"get","save", and"delete".title string optional
Project title. Used for
"save".description string optional
Project description.
aliases array of strings optional
Additional project identifiers. Can be used in place of
project_idin user schema requests.array of strings optional
Project tags. Read-only on retrieval, use the dedicated tags endpoint to update.
settings object optional
Project access settings.
allowed_domains array of strings optional
List of allowed login domains.
services object optional
Service settings for the project, keyed by application ID. Each entry contains a
groupsarray with group role assignments (grantorrevoke).
POST /api/permissions/project
Authorization: Bearer eyJhbGci...
Factor: ...
{
"action": "save",
"data": {
"id": "test_project",
"title": "Test Project",
"description": "Project description",
"aliases": ["test_alias"],
"settings": {
"allowed_domains": ["example.com"]
}
}
}
{
"action": "delete",
"data": {
"id": "test_project"
}
}
Response
Retrieve and Update Project Membership Settings
Retrieves or updates the group-based membership restrictions for a project. Membership settings define which user groups are allowed or disallowed from joining the project.
Access Requirements
Retrieve (
"get"):projectID/project.can_view_projectUpdate (
"save"):projectID/project.can_manage_project
Note
Groups must have the project tag assigned before they can be added to the allow or disallow lists.
Request
POST /api/permissions/project/membership
Warning
Passing jwt, factor, and service_jwt in the request body is deprecated.
Use the corresponding HTTP headers instead.
jwt string required
User’s JWT token.
factor string conditionally required
User device factor. Required if
service_jwtis not provided.service_jwt string conditionally required
Service JWT. Required if
factoris not provided.action string required
Action to perform. Allowed values:
"get","save".data object required