Create site
To create a site, send a POST request to https://api.planadoapp.com/v2/sites
.
Creating a site with only
name
filled$ curl --data "{\"name\":\"New site\"}" -H "Authorization: Bearer api-key" https://api.planadoapp.com/v2/sites | jq { "site_uuid": "137ecde7-93a4-6ba0-ae92-4e71e8543c7b" }
In response, the API returns the uuid
value of the newly created site.
You can use update requests for both creating and updating sites. In this case, external_id values must be filled.
|
Request schema
All fields are optional except for name
.
Field | Type | JSON type | Required | Can be null |
Description |
---|---|---|---|---|---|
|
String |
String |
Yes |
No |
Site name. Up to 300 characters |
|
String |
String |
No |
Yes |
|
|
String |
String |
No |
Yes |
Text describing the site. Up to 1000 characters |
|
Object |
No |
Yes |
Reference to a client |
|
|
Object |
No |
No |
Address fields |
|
|
[Contact] |
Array |
No |
No |
List of contacts |