Skip to main content
PATCH
/
barbers
/
{id}
/
profile
Update a barber profile
curl --request PATCH \
  --url https://api.guile.app/barbers/{id}/profile \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/merge-patch+json' \
  --data '
{
  "givenName": "<string>",
  "surname": "<string>",
  "preferredName": "<string>"
}
'
{
  "givenName": "<string>",
  "surname": "<string>",
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "email": "[email protected]",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "preferredName": "<string>",
  "phoneNumber": "<string>",
  "profileImageUrl": "<string>"
}

Path Parameters

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

Body

application/merge-patch+json
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

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<uuid>
required

The unique identifier of the barber profile.

email
string<email>
required

The barber's email address.

Required string length: 6 - 255
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
phoneNumber
string<phone>

The barber's phone number.

Required string length: 6 - 20
profileImageUrl
string<uri>

A URL to the barber's profile image.

Maximum string length: 255