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

Authorizations

Authorization
string
header
required

Use a valid Bearer token to authenticate.

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.

data
object

Detail object of created team.