Skip to content
English
  • There are no suggestions because the search field is empty.

Assign user to project

POST
/api/v1/organizations/{organizationId}/projects/{projectId}/members/{userId}

       
curl --request POST \
--url https://localhost:8080/api/v1/organizations/example/projects/example/members/example \
--header ' Authorization: ' \
--header ' Content-Type: application/json ' \
--data ' { "roles": [ "project_owner", "implementer" ] } '

Assign a user to a project within an organization with the specified project roles

organizationId
required
string

Organization ID (integer)

projectId
required
string

Project ID (integer)

userId
required
string

User ID (UUID)

Roles to assign

Media type application/json
object
roles
Array
Example

              
[
" project_owner " ,
" implementer "
]

User added successfully

Media type application/json
object
assignedAt
string
organizationId
integer
projectId
integer
roles
Array
status
string
userId
string
Example generated

          
{
"assignedAt" : " example " ,
"organizationId" : 1 ,
"projectId" : 1 ,
"roles" : [
" example "
],
"status" : " example " ,
"userId" : " example "
}

Invalid request

Media type application/json
object
error
string
error_description
string
Example

          
{
"error" : " Unauthorized " ,
"error_description" : " Invalid token "
}

Unauthorized

Media type application/json
object
error
string
error_description
string
Example

          
{
"error" : " Unauthorized " ,
"error_description" : " Invalid token "
}

Forbidden - requires Organization Owner or Project Owner role

Media type application/json
object
error
string
error_description
string
Example

          
{
"error" : " Unauthorized " ,
"error_description" : " Invalid token "
}

Internal server error

Media type application/json
object
error
string
error_description
string
Example

          
{
"error" : " Unauthorized " ,
"error_description" : " Invalid token "
}