Skip to content

Change Booking Widget

Request

Security
BearerPartnerUser
Path
location_idnumberrequired

location ID

form_idnumberrequired

appointment widget ID

Headers
Acceptstringrequired

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

Authorizationstringrequired

Bearer partner_token, User user_token

Content-Typestringrequired

application/json

Bodyapplication/jsonrequired
button_animationbooleanrequired

Button animation enable flag

button_colorstringrequired

Button color

button_positionstringrequired

Button location on the page

Enum:"bottom right""bottom left""top right""top left"
datetime_step_numnumberrequired

Sequence number of the date and time step

descriptionstringrequired

appointment widget description

form_positionstringrequired

Panel position on the page

Enum:"right""left"
is_defaultbooleanrequired

Default appointment widget flag

master_step_defaultnumberrequired

team member ID

master_step_hidebooleanrequired

team member hide flag

master_step_numnumberrequired

Sequence number of the wizard step

service_step_defaultnumberrequired

Service ID

service_step_hidebooleanrequired

Service Hiding Flag

service_step_numnumberrequired

Service step sequence number

show_buttonbooleanrequired

Button Visibility Step

titlestringrequired

Name of the appointment widget

without_menubooleanrequired

Step mode flag

curl -i -X PATCH \
  'https://developer.alteg.io/_mock/en/b2b-v1/openapi/locations/{location_id}/booking_forms/{form_id}' \
  -H 'Accept: string' \
  -H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "title": "string",
    "description": "string",
    "is_default": true,
    "without_menu": true,
    "service_step_default": 0,
    "service_step_hide": true,
    "master_step_default": 0,
    "master_step_hide": true,
    "service_step_num": 0,
    "master_step_num": 0,
    "datetime_step_num": 0,
    "show_button": true,
    "button_position": "bottom right",
    "form_position": "right",
    "button_color": "string",
    "button_animation": true
  }'

Responses

appointment Widget Settings

Bodyapplication/json
dataobject(Root Type BookformSettingsResponse)required

appointment Widget Settings

metaArray of objectsrequired

Metadata

successbooleanrequired

Success status (true)

Response
{ "success": true, "data": { "id": 1, "title": "Name", "is_default": false, "description": "Description", "without_menu": false, "service_step_default": 0, "service_step_hide": false, "master_step_default": 0, "master_step_hide": false, "service_step_num": 2, "master_step_num": 1, "datetime_step_num": 3, "show_button": true, "button_position": "bottom right", "form_position": "right", "button_color": "#1c84c6", "button_animation": true, "html_code": "", "ab_test_enabled": false }, "meta": [] }