Permissions
Create team role
Changed onCreates a team-scoped permission role.
post/teams/{key}/roles
Request
- Base URL: https://api.session.services
- URL: https://api.session.services/teams/{key}/roles
- Auth: API key in header x-tenant-id
Path parameters
keystring required
Team identifier (ID or slug)
Request body
Example request
{
"permissions": [
"team.read",
"team.member.write"
]
}Response
OK
Example response
{
"role": {
"permissions": [
"team.read",
"team.member.write"
]
}
}Changes
- info
added the non-success response with the status
- info