v13
latestOpenAPI 3.0.32026-07-31359869.4 MBteams
Update a Team
Update the information of a Team specified by the teamId parameter. The request body should contain the information that will be updated on the Team.
patch/v2/teams/{teamId}
Path parameters
teamIdstring required
Example:team_1a2b3c4d5e6f7g8h9i0j1k2l
The Team identifier to perform the request on behalf of.
Query parameters
slugstring
Example:my-team-url-slug
The Team slug to perform the request on behalf of.
Request body
Example request
{
"description": "Our mission is to make cloud computing accessible to everyone",
"emailDomain": "example.com",
"name": "My Team",
"previewDeploymentSuffix": "example.dev",
"regenerateInviteCode": true,
"saml": {
"enforced": true
},
"slug": "my-team",
"enablePreviewFeedback": "on",
"enableProductionFeedback": "on",
"sensitiveEnvironmentVariablePolicy": "on",
"remoteCaching": {
"enabled": true
},
"dpAccessRequestsMode": "none",
"requireVerifiedCommits": true,
"defaultExpirationSettings": {
"expiration": "1y",
"expirationProduction": "1y",
"expirationCanceled": "1y",
"expirationErrored": "1y"
},
"strictDeploymentProtectionSettings": {
"enabled": true
},
"strictShareableLinks": {
"enabled": true
},
"strictPasswordProtectionSettings": {
"enabled": true
},
"resourceConfig": {
"buildMachine": {
"default": "standard"
}
}
}Response
Example response
{
"creatorId": "R6efeCJQ2HKXywuasPDc0fOWB",
"updatedAt": 1611796915677,
"emailDomain": "example.com",
"saml": {
"connection": {
"type": "OktaSAML",
"state": "active",
"connectedAt": 1611796915677,
"lastReceivedWebhookEvent": 1611796915677,
"lastSyncedAt": 1611796915677
},
"directory": {
"type": "OktaSAML",
"state": "active",
"connectedAt": 1611796915677,
"lastReceivedWebhookEvent": 1611796915677,
"lastSyncedAt": 1611796915677
}
},
"inviteCode": "hasihf9e89",
"description": "Our mission is to make cloud computing accessible to everyone.",
"previewDeploymentSuffix": "example.dev",
"platform": true,
"id": "team_nllPyCtREAqxxdyFKbbMDlxd",
"slug": "my-team",
"name": "My Team",
"avatar": "6eb07268bcfadd309905ffb1579354084c24655c",
"createdAt": 1630748523395,
"parentId": "org_nllPyCtREAqxxdyFKbbMDlxd",
"orgRootTeamId": "team_nllPyCtREAqxxdyFKbbMDlxd"
}