Transfer team ownership
Changed onMake an active team member the sole owner. Team key can be ID or slug. A current team owner or tenant administrator can perform this action. The new owner receives the team Admin role, while previous owners keep their existing access and lose only isOwner status.
Request
- Base URLhttps://api.session.services
- AuthAPI key in header x-tenant-id
Path parameters
Team identifier (ID or slug)
Request body
Team member ID of the new owner. This member must already exist with ACTIVE status.
Response
OK
Response payload for team ownership transfer operation
Primary previous owner retained for compatibility. This member keeps their existing access and loses isOwner status. On an idempotent retry after the transfer is already applied, this is the unchanged current owner.
The new owner (now has isOwner: true)
All previous owners whose isOwner status was cleared by the transfer.
Example response
{
"previousOwner": {
"permissions": [
"event.read",
"event.write",
"order.read"
]
},
"newOwner": {
"permissions": [
"event.read",
"event.write",
"order.read"
]
},
"demotedOwners": [
{
"permissions": [
"event.read",
"event.write",
"order.read"
]
}
]
}Changes
- info
the
demotedOwners/items/access/promoterIds/anyOf[subschema #1]/itemsresponse's property pattern^pmt_[0-9a-z]{26}$was added for the status - info
the
demotedOwners/items/idresponse's property pattern^mbr_[0-9a-z]{26}$was added for the status - info
the
demotedOwners/items/permissions/itemsresponse's property pattern^-?(?:\*|(?:[a-z][a-z0-9-]*)(?:\.[a-z][a-z0-9-]*)*(?:\.\*|\.bypass|\.[a-z]{3}_[0-9a-z]{26})?)$was added for the status
15 more changes in this revision
- info