Team Members

Add an existing user to a team

Changed on

Directly add an existing user to a team. Team key can be ID or slug. Requires at least one role ID. To invite a new user by email, use the team invites endpoint instead.

post/teams/{key}/members

Request

  • Base URL: https://api.session.services
  • URL: https://api.session.services/teams/{key}/members
  • Auth: API key in header x-tenant-id

Path parameters

keystring required

Team identifier (ID or slug)

Request body

userIdstring required

User ID of the team member

roleIdsstring[] required

Role IDs assigned to this team member.

isOwnerunknown

Response

OK

Example response

{
  "member": {
    "permissions": [
      "event.read",
      "event.write",
      "order.read"
    ]
  }
}

Changes

    • breaking

      the request property const value false was added

    • breaking

      the request property type changed from boolean to no type

    • info

      the request property became optional

    • info

      added the non-success response with the status