---
title: "Changes to Create team role"
method: POST
path: "/teams/{key}/roles"
---

# Changes to Create team role

`POST /teams/{key}/roles`

> Every recorded change to this operation, newest first.

## Timeline

Changed in 3 of 1064 revisions.

- **2026-11-09** `38649d1c1ac7`: 3 breaking, 3 info
- **2026-11-09** `24b4e38e7054`: 4 breaking, 5 info
- **2026-08-02** `84f157e4443a`: 1 info

## Changes

- **2026-11-09** `38649d1c1ac7`: 3 breaking, 3 info
  - the `permissions` request property's minItems was increased to `1`
  - the `name` request property's minLength was increased from `0` to `1`
  - added the pattern `^-?(?:\*|(?:[a-z][a-z0-9-]*)(?:\.[a-z][a-z0-9-]*)*(?:\.\*|\.bypass|\.[a-z]{3}_[0-9a-z]{26})?)$` to the request property `permissions/items/`
  - the `role/id` response's property pattern `^prl_[0-9a-z]{26}$` was added for the status `200`
  - the `role/permissions/items/` response'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 `200`
  - the `role/teamId` response's property pattern `^tem_[0-9a-z]{26}$` was added for the status `200`
- **2026-11-09** `24b4e38e7054`: 4 breaking, 5 info
  - the `role/permissions` response property's minItems was decreased from `1` to `0` for the response status `200`
  - the `role/name` response property's minLength was decreased from `1` to `0` for the response status `200`
  - the `role/createdAt` response's property format changed from `date-time` to no format for status `200`
  - the `role/updatedAt` response's property format changed from `date-time` to no format for status `200`
  - the `name` request property's minLength was decreased from `1` to `0`
  - removed the pattern `^-?(?:\*|(?:[a-z][a-z0-9-]*)(?:\.[a-z][a-z0-9-]*)*(?:\.\*|\.bypass|\.[a-z]{3}_[0-9a-z]{26})?)$` from the request property `permissions/items/`
  - the `role/id` response's property pattern `^prl_[0-9a-z]{26}$` was removed for the status `200`
  - the `role/permissions/items/` response's property pattern `^-?(?:\*|(?:[a-z][a-z0-9-]*)(?:\.[a-z][a-z0-9-]*)*(?:\.\*|\.bypass|\.[a-z]{3}_[0-9a-z]{26})?)$` was removed for the status `200`
  - the `role/teamId` response's property pattern `^tem_[0-9a-z]{26}$` was removed for the status `200`
- **2026-08-02** `84f157e4443a`: 1 info
  - added the non-success response with the status `412`

---

[Operation](https://skmtc.dev/session/apis/session-services-api/docs/teams/:key/roles/post.md) - [API](https://skmtc.dev/session/apis/session-services-api.md) - [Page](https://skmtc.dev/session/apis/session-services-api/changes/teams/:key/roles/post)
