Update a team

PUT https://{{base_url}}/v3/organizations/{{organization_uid}}/teams/{{team_uid}}

The Update a team request is used to modify details, such as adding or removing users from a team, assigning or removing stack roles within a team, updating team descriptions, and updating organization roles for an existing team within a specific organization.

To use the API Request, you will need to authenticate yourself either with a Management Token (highly recommended) or an Authtoken. 
Read more about it in Authentication.


For more information, refer to the Update a team API Reference document

Request Params

KeyDatatypeRequiredDescription
includeUserDetailsbooleanSet this parameter to “true” to include the details of users in the response.

Request Body

{"name"=>"Team A", "users"=>[{"email"=>"john.doe@contentstack.com"}], "organizationRole"=>"blt**************8d", "stackRoleMapping"=>[{"roles"=>["blt**************f6"], "stackApiKey"=>"blt**************74"}]}

HEADERS

KeyDatatypeRequiredDescription
authtokenstringEnter your authtoken.
Content-TypestringEnter "application/json" to pass a request body.