PostPalettes
This request allows you to create new palettes.
Request URL
POST https://api-dev.theownly.io/v1/palettes
Headers
Name | Value | Required? |
---|---|---|
Accept | application/json | Yes |
Authorization | Bearer{APItoken} | Yes |
Content-Type | application/json | Yes |
Parameters
Name | Type | Required? | Description |
---|---|---|---|
name | String | Yes | Palette Name |
description | String | No | |
basePrice | number | No | |
isMultiFamily | boolean | No |
Example Request
curl -X 'POST' \
'https://api.theownly.io/v1/palettes' \
-H 'accept: application/json' \
-H 'Authorization: Bearer {APItoken}' \
-H 'Content-Type: application/json' \
-d '{
"name": "Nordic Clean",
"description": "string",
"basePrice": 0,
"isMultifamily": false
}'
Example Response
{
"id": "ouMsl6uF",
"name": "Nordic Clean",
"description": "string",
"basePrice": 0,
"isMultifamily": true
}