GET
/
v2
/
resource
curl --request GET \
  --url https://api.sonderplan.com/v2/resource \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": 9458,
      "name": "Edit Suite 1",
      "description": "Sydney Office, Level 2",
      "type_id": 1,
      "type_person_id": 0,
      "parent_id": 2908,
      "order": 4,
      "feed": "/feed/resource/0d17a654166d49a4337b65256...",
      "icon": [
        {
          "id": 2342354,
          "name": "Avid_Icon",
          "size": 174285,
          "alias": "7e73ab25155974c230d09494548201b9f5056ef",
          "extension": "png",
          "mime_type": "image/png"
        }
      ],
      "workspaces": [
        {
          "id": 9458,
          "name": "Sydney Studio",
          "description": "Sydney Office, Level 2"
        }
      ],
      "rates": [
        {
          "id": 9458,
          "type_id": 9,
          "hour_buy_cost": 62.2,
          "hour_sell_cost": 100,
          "day_buy_cost": 560,
          "day_sell_cost": 1000,
          "week_buy_cost": 1000,
          "week_sell_cost": 3500,
          "date_start": "2023-01-01",
          "date_end": "2023-12-31",
          "taxes": [
            {
              "id": 3247,
              "name": "GST",
              "rate": "10.00",
              "total": "151.00"
            }
          ],
          "currency": "AUD"
        }
      ],
      "color_background": "#B0A7F1",
      "color_text": "#000000",
      "created_id": 3,
      "created": 1388552400,
      "updated_id": 3,
      "updated": 1388552400
    }
  ],
  "meta": {
    "pagination": {
      "total": 1,
      "count": 1,
      "per_page": 1,
      "current_page": 1
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

id
string

One or more (comma seperated) ids of resources to retrieve

fields
string

Comma seperated list of fields you wish to return

page
integer

Specify the page of results you wish to return

limit
integer

The number of results returned per page. Default if not specified is 10

order_asc
string

Specify the field (with type of string or integer) you wish to order (ascending) the response with

order_desc
string

Specify the field (with type of string or integer) you wish to order (descending) the response with

filter_operator
enum<string>
default:OR

Specify if multiple filters should be combined with OR or AND logic

Available options:
OR,
AND

Response

200
application/json
Successful Operation
data
object[]

Resource model

meta
object