Project
Projects can be queried using the regular query-endpoint.
Get project access
Section titled “Get project access”GET /api/project/{projectId}/rls
Scope: ADMIN or DATA_MANAGER
Request
Path parameters
projectIdID of project
Response
A list of users and departments and their access type:
[...{ "accessType": "Read" | "Write", "userID": string, "user": object, "departmentID": string, "department": object}...]Add or update access
Section titled “Add or update access”POST /api/project/{projectId}/rls
Scope: ADMIN or DATA_MANAGER_PROJECT_WRITE
Add or update access to a project and all associated entities.
Request
Path parameters
projectIdID of project
Body parameters
accessTypeEitherReadorWriteuserIDID of userdepartmentIDID of department
Only userID or departmentID can be set in a request.
Remove access
Section titled “Remove access”DELETE /api/project/{projectId}/rls/{userIdOrDepartmentId}
Scope: ADMIN or DATA_MANAGER_PROJECT_WRITE
Remove access for a user or department.
Request
Path parameters
projectIdID of projectuserIdOrDepartmentID of user or department to remove access for
Delete project
Section titled “Delete project”DELETE /api/project/{projectId}
Scope: ADMIN or DATA_MANAGER_PROJECT_WRITE
Delete a project.
Request
Path parameters
projectIdID of project
Get settings
Section titled “Get settings”GET /api/project/{projectId}/settings/{settingsName}
Scope: ADMIN or DATA_MANAGER_PROJECT_WRITE
Get named settings for a project.
Request
Path parameters
projectIdID of projectsettingsNameName of settings
Response
A JSON object with the named setting for a project.
Add or update settings
Section titled “Add or update settings”POST /api/project/{projectId}/settings/{settingsName}
Scope: ADMIN or DATA_MANAGER_PROJECT_WRITE
Insert or update named settings for a project.
Request
Path parameters
projectIdID of projectsettingsNameName of settings
Body
JSON object with settings.
Response
A JSON object with the named setting for a project.