Share a project
Build / Users
Share a project
Payload
{
"projectId": "string",
"userId": "string",
"accessType": "string"
}
projectId: Id of the project to be shared. Required.userId: Id of the user to share the project with. Required.accessType: Access level for the user to the project. Accepted values are admin|member. Required.
Response
201 Created
{
"id": "string",
"email": "string",
"accessType": "string"
}
where:
id: User Access to project identifier.email: User added to the project email.accessType: Access type added.
400 Bad Request
User is already added to the project.
Access type is not valid.
401 Unauthorized
The user doesn’t have permissions.
404 Not Found
Target user is not found.
Project is not found.
422 Unprocessable Entity
projectId/userId/accessTypeare missing.
500 Internal Server Error
Error occurred while processing the request.
POST
Share a project
Payload
projectId: Id of the project to be shared. Required.userId: Id of the user to share the project with. Required.accessType: Access level for the user to the project. Accepted values are admin|member. Required.
Response
201 Created
id: User Access to project identifier.email: User added to the project email.accessType: Access type added.
400 Bad Request
User is already added to the project.
Access type is not valid.
401 Unauthorized
The user doesn’t have permissions.
404 Not Found
Target user is not found.
Project is not found.
422 Unprocessable Entity
projectId/userId/accessTypeare missing.
500 Internal Server Error
Error occurred while processing the request.