Skip to main content
POST
/
client-properties
Create a new client property
curl --request POST \
  --url https://api.leanpay.fr/v1/public/client-properties \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "label": "<string>",
  "code": "<string>",
  "defaultColor": "red"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "label": "<string>",
  "code": "<string>",
  "defaultColor": "red"
}

Authorizations

Authorization
string
header
required

Body

application/json
label
string
required
Required string length: 1 - 80
code
string
required
Required string length: 1 - 80
defaultColor
enum<string> | null
Available options:
red,
orange,
green,
lightBlue,
blue,
purple,
pink,
brown,
grey,
yellow

Response

Created client property

id
string<uuid>
required
label
string
required
Required string length: 1 - 80
code
string
required
Required string length: 1 - 80
defaultColor
enum<string> | null
Available options:
red,
orange,
green,
lightBlue,
blue,
purple,
pink,
brown,
grey,
yellow