Skip to main content
PATCH
Update a barber profile

Path Parameters

id
string
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.

Body

application/merge-patch+json

Representation used to patch a barber profile using the JSON Merge Patch format and processing rules.

givenName
string<text> | null

The given name of the barber.

Required string length: 1 - 55
surname
string<text> | null

The surname of the barber.

Required string length: 1 - 55
preferredName
string<text> | null

The preferred name of the barber.

Maximum string length: 55
biography
string<text> | null

A short biography of the barber.

Maximum string length: 2000
spokenLanguages
enum<string>[] | null

Languages the barber speaks, as IETF BCP 47 language tags.

Minimum array length: 1

An IETF BCP 47 language tag supported on barber profiles.

Available options:
ar,
de,
en,
es,
fr,
ko,
ru,
tl,
vi,
zh
experience
integer<int32> | null

Years of professional barbering experience.

Omitted when the barber has not set a value.

Required range: 0 <= x <= 100
instagram
string | null

Public Instagram username for the booking page, without a leading @. Absent when unset. Not a private messaging channel.

Required string length: 1 - 30
Pattern: ^[A-Za-z0-9](?:[A-Za-z0-9._]{0,28}[A-Za-z0-9])?$
urlSlug
string | null

The barber's public booking slug, used in profile links.

Required string length: 3 - 40
Pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$
profileImage_URL
string<uri> | null

A URL to the barber's profile image.

Maximum string length: 255

Response

Ok. The operation succeeded.

A representation of a customer profile.

givenName
string<text>
required

The given name of the barber.

Required string length: 1 - 55
surname
string<text>
required

The surname of the barber.

Required string length: 1 - 55
id
string
required

The unique identifier of the barber profile.

createdAt
string<date-time>
required

The date-time when this resource was created, in RFC 3339 date-time YYYY-MM-DDThh:mm:ss.sssZ format, UTC. This is derived and immutable.

updatedAt
string<date-time>
required

The date-time when this resource was updated, in RFC 3339 date-time YYYY-MM-DDThh:mm:ss.sssZ format, UTC. This is derived and immutable.

preferredName
string<text>

The preferred name of the barber.

Maximum string length: 55
biography
string<text>

A short biography of the barber.

Maximum string length: 2000
spokenLanguages
enum<string>[]

Languages the barber speaks, as IETF BCP 47 language tags.

Minimum array length: 1

An IETF BCP 47 language tag supported on barber profiles.

Available options:
ar,
de,
en,
es,
fr,
ko,
ru,
tl,
vi,
zh
experience
integer<int32>

Years of professional barbering experience.

Omitted when the barber has not set a value.

Required range: 0 <= x <= 100
instagram
string

Public Instagram username for the booking page, without a leading @. Absent when unset. Not a private messaging channel.

Required string length: 1 - 30
Pattern: ^[A-Za-z0-9](?:[A-Za-z0-9._]{0,28}[A-Za-z0-9])?$
urlSlug
string

The barber's public booking slug, used in profile links.

Required string length: 3 - 40
Pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$
profileImage_URL
string<uri>

A URL to the barber's profile image.

Maximum string length: 255
email
string<email>

The barber's email address. Present only for the owning barber or an admin.

Required string length: 6 - 255
Pattern: ^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$
phoneNumber
string<phone>

The barber's phone number. Present only for the owning barber or an admin.

Required string length: 6 - 20
Pattern: ^\+?[0-9]{1,3}?[ -]?\(?[0-9]{1,4}?\)?[ -]?[0-9]{1,4}?[ -]?[0-9]{1,4}?[ -]?[0-9]{1,9}$
profilePhoto
object

The photo assigned to the barber profile.