Companies

Get a Company

GET https://api.tiny.plus/v2/companies/{{id}}

This endpoint allows you to get a full Company record.

Path Parameters

Query Parameters

Headers

{
    "id": 1237
    "name": "Auchenflower Aged Care",
    "record_status": "prospect",
    "description": "A large aged care provider based in Queensland, Australia.",
    "assigned_user": 1231,
    ...
}

Example Usage

var settings = {
  "url": "https://api.tiny.plus/v2/companies/{{id}}",
  "method": "GET",
  "headers": {
    "Authorization": "{{user_access_token}}"
  }
};

$.ajax(settings).done(function (response) {
  console.log(response);
});

List Companies

GET https://api.tiny.plus/v2/companies

This endpoint allows you to get a paginated list of Companies, optionally filtered by criteria.

Query Parameters

Headers

{
    total_records: 31,
    returned_records: 31,
    records: [
        {
            id: 1237,
            name: 'Auchenflower Aged Care',
            ...
        },
        ...
        {
            id: 849,
            name: 'ZZ Top Homes for the Aged',
            ...
        }
    ]
}

Example Usage

var settings = {
  "url": "https://api.tiny.plus/v2/companies?me&return_format=array",
  "method": "GET",
  "headers": {
    "Authorization": "{{user_access_token}}"
  }
};

$.ajax(settings).done(function (response) {
  console.log(response);
});

Create a Company

POST https://api.tiny.plus/v2/companies

You can create a new tiny+ company with this endpoint. The only required field to create a Company in tiny+ is name, however we recommend you provide as much information as possible.

Headers

Request Body

{
    id: [your new ID]
}

Update a Company

PATCH https://api.tiny.plus/v2/companies/{{id}}

You can edit a tiny+ Company with this endpoint. Note: you only need to pass the field you wish to change.

Path Parameters

Headers

Request Body

Delete a Company

DELETE https://api.tiny.plus/v2/companies/{{id}}

Delete a Company record.

Path Parameters

Headers

Companies Field Reference

Last updated