SitesCreate options

Create options

Needs: Roster, Read-write

Returns what the Add site form needs: the required fields, the business locations, the statuses and the other fields you can set. Call it before creating a site, so you can ask for anything missing in one go.

Note: location_id is only listed as required when the organisation has more than one business location.

curl -X GET "https://app.imploy.com.au/api/integrations/v1/sites/create-options" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
{
  "required": [
    "name",
    "address",
    "location_id (this organisation has several business locations; ask which one)"
  ],
  "locations": [
    {
      "id": 1,
      "name": "Example Location"
    }
  ],
  "statuses": [
    "Active",
    "Inactive",
    "Maintenance"
  ],
  "other_fields": [
    "type",
    "manager_id",
    "email",
    "phone",
    "client_capacity",
    "maximum_staff",
    "description",
    "tags",
    "participants",
    "support_staff",
    "admin_staff"
  ]
}
GET
/sites/create-options
GET
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token
Bearer Tokenstring
Required

An organisation access token that starts with imp_at_. Send it as Authorization: Bearer imp_at_XXXX.

An organisation access token that starts with imp_at_. Send it as Authorization: Bearer imp_at_XXXX.
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. An organisation access token that starts with imp_at_. Send it as Authorization: Bearer imp_at_XXXX.

Responses

OK