Skip to content

Update Online Booking User Data

Request

Updating a team member’s data in online booking.

When updating a phone number, the confirmation_code field must be included in the request. This code should be obtained using the SMS confirmation code of the phone number to change data

Security
BearerPartner
Headers
Acceptstringrequired

e.g. application/vnd.api.v2+json

Example:application/vnd.api.v2+json
Content-Typestringrequired

application/json

Authorizationstringrequired

Bearer partner_token, User user_token

Bodyapplication/jsonrequired
namestring

Name

Example:"James Smith"
emailstring

mail

Example:"j.smith@example.com"
phonestring

Phone number

Example:"+13155550175"
confirmation_codestring

SMS confirmation code (when changing phone number)

Example:"1234"
curl -i -X PUT \
  https://developer.alteg.io/_mock/en/public/openapi/booking/user \
  -H 'Accept: application/vnd.api.v2+json' \
  -H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "James Smith",
    "email": "j.smith@example.com",
    "phone": "+13155550175",
    "confirmation_code": "1234"
  }'

Responses

Accepted

Bodyapplication/json
Response
{ "success": true, "meta": { "message": "Accepted" } }