Teams

Switch active team.

Changed on

Switches the authenticated user's active team context. Subsequent requests will operate in the context of the new team.

post/api/v1/teams/{teamId}/switch

Request

Path parameters

teamIdinteger required

The unique team identifier.

Response

Update user account info

status'error' | 'success'

The status of the response

Example response

{
  "status": "success",
  "data": {
    "created_at": "2023-04-30 16:43:53",
    "email": "user@domain.com",
    "id": 1,
    "current_team_id": 1,
    "name": "John Doe",
    "profile_photo_url": "https://app.customgpt.ai/user/1/profile_photo_url",
    "updated_at": "2023-04-30 16:43:53"
  }
}

Changes