curl --request POST \
--url https://api.sonderplan.com/v2/workspace \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"id": 9458,
"name": "Sydney Studio",
"description": "Sydney Office, Level 2",
"resources": [
{
"name": "Edit Suite 1",
"description": "Sydney Office, Level 2",
"type_id": 1,
"type_person_id": 0,
"parent_id": 2908,
"parent_name": "Cameras",
"icon": [
{
"name": "Avid_Icon",
"size": 174285,
"alias": "7e73ab25155974c230d09494548201b9f5056ef",
"extension": "png",
"mime_type": "image/png"
}
]
}
],
"access": [
{
"id": 4,
"acl": "RW",
"name": "Administrators",
"type": "group"
}
],
"feed": "<string>",
"working_week": 3,
"country_region": "AU-NSW",
"show_public_holiday": true
}'
{
"success": {
"id": 1
}
}
WRITE
access to the ADMIN
module is required to access this endpointscheduleCreated
webhook will be fired when this endpoint has run successfullycurl --request POST \
--url https://api.sonderplan.com/v2/workspace \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"id": 9458,
"name": "Sydney Studio",
"description": "Sydney Office, Level 2",
"resources": [
{
"name": "Edit Suite 1",
"description": "Sydney Office, Level 2",
"type_id": 1,
"type_person_id": 0,
"parent_id": 2908,
"parent_name": "Cameras",
"icon": [
{
"name": "Avid_Icon",
"size": 174285,
"alias": "7e73ab25155974c230d09494548201b9f5056ef",
"extension": "png",
"mime_type": "image/png"
}
]
}
],
"access": [
{
"id": 4,
"acl": "RW",
"name": "Administrators",
"type": "group"
}
],
"feed": "<string>",
"working_week": 3,
"country_region": "AU-NSW",
"show_public_holiday": true
}'
{
"success": {
"id": 1
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Workspace object that needs to be added
Workspace model
Successful Operation
The response is of type object
.