Skip to main content
PUT
/
team
/
{teamId}
Update team
curl --request PUT \
  --url https://apiweb.mile.app/api/v3/team/{teamId}/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Team Delivery Update",
  "hubId": "642634bde1428d414838c882"
}
'
{
  "status": true,
  "code": 200,
  "message": "Data successfully updated.",
  "data": {
    "_id": "650151e4c8a55842604f1662",
    "name": "Team Delivery Update",
    "hubId": "64d9932e2beb9037735ff022",
    "organizationId": "64d99303be0ad015c461c932",
    "updatedTime": "2023-09-13T06:12:26.124000Z",
    "createdTime": "2023-09-13T06:08:36.025000Z",
    "totalUser": 0
  }
}

Authorizations

Authorization
string
header
required

Use a valid Bearer token to authenticate.

Path Parameters

teamId
string
required

Unique identifier for the team that generated by system. Example: 642634bde1428d414838c882

Body

application/json
name
string
required

The name of team. Name must be unique at per-hub. Example: Team Delivery

hubId
string
required

Unique identifier for the hub that generated by system. Example: 63c7705c8608d52094785374

Response

Success

status
string

Status of response.

property
object

Detail of updated team.

message
string

Message of API response.