Skip to content

Remove user from project

DELETE
/api/v1/organizations/{organizationId}/projects/{projectId}/members/{userId}
curl --request DELETE \
--url https://localhost:8080/api/v1/organizations/example/projects/example/members/example \
--header 'Authorization: <Authorization>'

Remove a user’s project assignment within an organization

organizationId
required
string

Organization ID (integer)

projectId
required
string

Project ID (integer)

userId
required
string

User ID (UUID)

User removed successfully

Media type application/json
object
message
string
projectId
integer
userId
string
Example
{
"message": "User removed from project successfully",
"projectId": 456,
"userId": "550e8400-e29b-41d4-a716-446655440000"
}

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"
}

Assignment not found

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"
}