Skip to main content
PATCH
/
barber
/
{barberId}
/
smartGroups
/
{groupId}
/
rules
Update smart group rules
curl --request PATCH \
  --url https://api.guile.app/barber/{barberId}/smartGroups/{groupId}/rules \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/merge-patch+json' \
  --data '
{
  "autoConfirm": true,
  "requireCardOnFile": true,
  "sameDayBookingNotice": "<string>",
  "bookingWindow": "noLimit",
  "depositRequired": {
    "type": "none",
    "fixed": "456.78",
    "percentage": 50
  },
  "lateCancelation": {
    "cancellationWindow": "<string>",
    "fee": {
      "type": "none",
      "fixed": "456.78",
      "percentage": 50
    }
  },
  "noShowFee": {
    "type": "none",
    "fixed": "456.78",
    "percentage": 50
  }
}
'
{
  "autoConfirm": true,
  "requireCardOnFile": true,
  "sameDayBookingNotice": "<string>",
  "bookingWindow": "noLimit",
  "depositRequired": {
    "type": "none",
    "fixed": "456.78",
    "percentage": 50
  },
  "lateCancelation": {
    "cancellationWindow": "<string>",
    "fee": {
      "type": "none",
      "fixed": "456.78",
      "percentage": 50
    }
  },
  "noShowFee": {
    "type": "none",
    "fixed": "456.78",
    "percentage": 50
  }
}

Path Parameters

barberId
string<uuid>
required

The unique, opaque system identifier for a resource. This case-sensitive ID is also used as path parameters in URLs or in other properties or parameters that reference a resource by ID rather than URL.

groupId
enum<string>
required
Available options:
active,
lost,
risky,
new

Body

application/merge-patch+json
autoConfirm
boolean | null

Whether appointments are automatically confirmed for this group.

requireCardOnFile
boolean | null

Whether a card on file is required for this group.

sameDayBookingNotice
string<duration> | null

Minimum notice required for same-day bookings.

bookingWindow
enum<string>

Maximum advance booking window allowed.

Available options:
noLimit,
oneWeek,
twoWeeks,
threeWeeks,
oneMonth,
twoMonths,
threeMonths
depositRequired
object

Deposit requirements for this group. Settings for deposit requirements for a client group.

lateCancelation
object

Late cancelation policy settings. Late cancelation policy settings for a client group.

noShowFee
object

No-show fee policy settings. Settings for fees for a client group.

Response

Ok. The operation succeeded.

Rules for a client group.

autoConfirm
boolean
required

Whether appointments are automatically confirmed for this group.

requireCardOnFile
boolean
required

Whether a card on file is required for this group.

sameDayBookingNotice
string<duration>
required

Minimum notice required for same-day bookings.

bookingWindow
enum<string>
required

Maximum advance booking window allowed.

Available options:
noLimit,
oneWeek,
twoWeeks,
threeWeeks,
oneMonth,
twoMonths,
threeMonths
depositRequired
object
required

Deposit requirements for this group.

lateCancelation
object
required

Late cancelation policy settings.

noShowFee
object
required

No-show fee policy settings.