Skip to main content
POST
Switch teams

Authorizations

oc_session
string
cookie
required

The console's session cookie (httpOnly, SameSite=Lax, 30 days), set by signup and login.

Body

application/json
teamId
string
required

One of the user's teams, from getMe.

Response

The user, the team the session now acts for, and the role on it.

user
object
required
team
object
required
role
enum<string>
required
Available options:
owner,
member