Update Team
PUT {{baseUrl}}/teams/:teamID
Update organization team details.
Requires access_token
as a Bearer {{token}}
in the Authorization
header with user-write
scope.
role_ids : This is required when you're using RBAC permission model.
role : This is required when you're using OBAC permission model.
Request Body
{"description"=>"<string>", "members"=>[{"user_id"=>"<string>", "role_ids"=>["<string>", "<string>"], "role"=>"owner", "abilities"=>{}}, {"abilities"=>{}, "role_ids"=>["<string>"], "role"=>"member", "user_id"=>"<string>"}], "name"=>"<string>"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | null | ||
Content-Type | string |
RESPONSES
status: OK
{"data":{"id":"620b2b18f163b1e165f19f0f","created_at":"2022-02-15T04:24:56.613Z","updated_at":"2022-02-15T04:24:56.613Z","created_by":"60f12dd3814bef0008c4036e","organization_id":"60cb200bc9de4a0008d2fc41","name":"abc","description":"","slug":"abc3","members":[{"user_id":"60f12dd3814bef0008c4036e","role_ids":["620b2b18f163b1e165f19f10","620b2b18f163b1e165f19f11"],"abilities":{}},{"user_id":"612f9bbc4afb140007314590","role_ids":["620b2b18f163b1e165f19f12"],"abilities":{}}],"roles":[{"id":"620b2b18f163b1e165f19f10","name":"Manage Team","slug":"manage-team","default":true,"abilities":{"teams":{"delete-teams":true,"read-teams":true,"update-teams":true}}},{"id":"620b2b18f163b1e165f19f11","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":"620b2b18f163b1e165f19f12","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":"620b2b18f163b1e165f19f13","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"}}}