DocsTeamsRename

Update Team Name

Update the name of a team.

Endpoint

PUT ${baseUrl}/teams/rename

Request Body

interface RenameTeamRequest {
  teamId: number
  newTeamName: string
}

Response

interface RenameTeamResponse {
  success: boolean
  message: string
}

Example Request

const response = await fetch('${baseUrl}/teams/rename', {
  method: 'PUT',
  headers: {
    'Content-Type': 'application/json',
    Authorization: 'Basic YOUR_API_KEY',
  },
  body: JSON.stringify({
    teamId: 123,
    newTeamName: 'Engineering Team',
  }),
})
 
const data = await response.json()

Error Codes

Status CodeDescription
201Team Created
400Invalid Request Body
401Unauthorized
500Server Error