Skip to main content
PATCH
/
v1
/
teams
Update Team
const options = {
  method: 'PATCH',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: JSON.stringify({
    teamId: 'c1e4416e-f57c-4614-886f-35a5541f4316',
    teamName: 'Full Stack Developer'
  })
};

fetch('https://api.trackpilots.com/v1/teams', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "success": true,
  "statusCode": 200,
  "statusMessage": "Team details updated successfully.",
  "error": null,
  "data": {
    "teamId": "c1e4416e-f57c-4614-886f-35a5541f4316",
    "teamName": "Full Stack Developer"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
teamId
string<uuid>
required
Example:

"c1e4416e-f57c-4614-886f-35a5541f4316"

teamName
string
required
Example:

"Backend Team"

Response

Team updated successfully

success
boolean
Example:

true

statusCode
integer
Example:

200

statusMessage
string
Example:

"Team details updated successfully."

error
object
Example:

null

data
object