Create Team
POST {{baseUrl}}/teams
Add team to the organization. Returns the team object in response.
Requires access_token
as a Bearer {{token}}
in the Authorization
header with user-write
scope.
Request Body
{"name"=>"<string>", "description"=>"<string>", "members_ids"=>["<string>", "<string>"]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | null | ||
Content-Type | string |
RESPONSES
status: Created
{"data":{"id":"62146f61baa215e392ea0590","created_at":"2022-02-22T05:06:41.370757208Z","updated_at":"2022-02-22T05:06:41.370757295Z","created_by":"60f12dd3814bef0008c4036e","organization_id":"60cb200bc9de4a0008d2fc41","name":"abcccc","description":"","slug":"abcccc","members":[{"user_id":"60f12dd3814bef0008c4036e","role_ids":["62146f61baa215e392ea0591","62146f61baa215e392ea0592"],"abilities":{}}],"roles":[{"id":"62146f61baa215e392ea0591","name":"Manage Team","slug":"manage-team","default":true,"abilities":{"teams":{"delete-teams":true,"read-teams":true,"update-teams":true}}},{"id":"62146f61baa215e392ea0592","name":"Admin","slug":"admin","default":false,"abilities":{"escalation_policies":{"create-escalation-policies":true,"delete-escalation-policies":true,"read-escalation-policies":true,"update-escalation-policies":true},"postmortems":{"create-postmortems":true,"delete-postmortems":true,"read-postmortems":true,"update-postmortems":true},"schedules":{"create-schedules":true,"delete-schedules":true,"read-schedules":true,"update-schedules":true},"services":{"create-services":true,"delete-services":true,"read-services":true,"update-services":true},"squads":{"create-squads":true,"delete-squads":true,"read-squads":true,"update-squads":true},"status_pages":{"create-status-pages":true,"delete-status-pages":true,"read-status-pages":true,"update-status-pages":true}}},{"id":"62146f61baa215e392ea0593","name":"User","slug":"user","default":false,"abilities":{"escalation_policies":{"read-escalation-policies":true,"update-escalation-policies":true},"postmortems":{"read-postmortems":true,"update-postmortems":true},"schedules":{"read-schedules":true,"update-schedules":true},"services":{"read-services":true,"update-services":true},"squads":{"read-squads":true,"update-squads":true},"status_pages":{"read-status-pages":true,"update-status-pages":true}}},{"id":"62146f61baa215e392ea0594","name":"Observer","slug":"observer","default":false,"abilities":{"escalation_policies":{"read-escalation-policies":true},"postmortems":{"read-postmortems":true},"schedules":{"read-schedules":true},"services":{"read-services":true},"squads":{"read-squads":true},"status_pages":{"read-status-pages":true}}}],"default":false,"organization":{"id":"60cb200bc9de4a0008d2fc41","name":"Modhilal_Squadcast","slug":"modhilalsquadcast"}}}