Skip to main content
PATCH
/
user
Update partially user
curl --request PATCH \
  --url https://apiweb.mile.app/api/v3/user \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "your update name"
}
'
{
  "status": true,
  "message": "Data has been updated successfully.",
  "property": {
    "_id": "65c1f4eeca7c4816d94587b7",
    "name": "Example",
    "email": "example@mile.app",
    "provider": "web",
    "hubId": [],
    "organizationId": "65c1f4eeca7c4816d94587b2",
    "status": "active",
    "lastLogin": "2024-06-18T03:54:47+00:00",
    "roleId": "65c1f4eeca7c4816d94587b3",
    "activationCode": "5dc25a36e280ba34ef6dfe1f54dcb5d6",
    "onboardingStep": [],
    "teamId": [],
    "updatedTime": "2024-06-18T04:42:04+00:00",
    "createdTime": "2024-02-06T08:59:26+00:00",
    "phoneNumber": null,
    "dynamicVisitTime": []
  }
}

Body

application/json
name
string

The name of user. Example: Jhon doe

email
string

The email of user. Example: example@mile.app

phoneNumber
string

The phone number of user. Example: +628123456789

Response

OK

property
object

object of user.

status
boolean

Status of response.

message
object

Message of response.