Skip to main content
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

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 / accessType are missing.

500 Internal Server Error

Error occurred while processing the request.

Authorizations

Authorization
string
header
required

Access token obtained from the m2m-token endpoint.

Headers

Authorization
string
required

Authorization token

Body

application/json

The body is of type object.

Response

Successful response