Skip to main content
DELETE
/
teams
/
{team_id}
/
users
Remove users from a team
curl --request DELETE \
  --url https://api.projectcor.com/v1/teams/{team_id}/users \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "users_ids": [
    8546
  ]
}
'
[
  {
    "id": 178149,
    "team_id": 4246,
    "user_id": 48429,
    "created_at": "2026-01-20 19:59:53",
    "updated_at": "2026-01-20 19:59:53",
    "deleted_at": "2026-01-20T20:00:23.632Z",
    "__meta__": {
      "company_id": 2336,
      "user": {
        "id": 48429,
        "first_name": "Gonzalo",
        "last_name": "Test",
        "email": "test@projectcor.com",
        "company_id": 2336
      }
    }
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

team_id
integer
required

Body

application/json
users_ids
integer[]
required

Array of user IDs to add or remove from the team

Response

200 - application/json

Users removed from team successfully

id
integer

Team-User relation ID

team_id
integer

Team ID

user_id
integer

User ID

created_at
string

Creation timestamp in format YYYY-MM-DD HH:MM:SS

Example:

"2026-01-21 14:09:52"

updated_at
string

Last update timestamp in format YYYY-MM-DD HH:MM:SS

Example:

"2026-01-21 14:09:52"

deleted_at
string<date-time> | null

Deletion timestamp (only present when removing users)

__meta__
object