Users

Set a user's current org

Marks your organization as the given user's currently selected org. Only is_current: true is accepted — this endpoint cannot un-set a current org.

patch/org/users/{userId}/current

Request

  • Base URL
    https://apiv2.senso.ai/api/v1
  • Auth
    API key in header X-API-Key

Path parameters

userIdstring uuid required

The user's id.

Request body

is_currenttrue required

Must be true — this endpoint only sets the current org, it cannot clear it (false is rejected with 400).

Response

The updated membership.

org_user_idstring uuid required
org_idstring uuid required
user_idstring uuid required
role_idstring uuid required

The role assigned to the user in this org.

is_currentboolean required

Whether this org is the user's currently selected org.

namestring

Org name — populated only by org-switcher list endpoints, absent here.

slugstring

Org slug — populated only by org-switcher list endpoints, absent here.

logo_urlstring

Org logo URL — populated only by org-switcher list endpoints, absent here.

created_atstring date-time required
updated_atstring date-time required
deleted_atstring date-time

When the membership was deleted; absent while it is active.

Changes

No recorded changes to this operation across all 1 revision of this API.