Skip to main content
POST
/
serviceCategories
Create a new service category
curl --request POST \
  --url https://api.guile.app/serviceCategories \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Shaving"
}
'
{
  "name": "Shaving",
  "id": "afada02b-e9fe",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Body

application/json

Properties for creating a new service category.

name
string
required

The display name for this service category.

Example:

"Shaving"

Response

Created.

Representation of a service category.

name
string
required

The display name for this service category.

Example:

"Shaving"

id
string<uuid>
required

The unique identifier for this service category.

Example:

"afada02b-e9fe"

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.