Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

_limitunsigned intThe maximum number of resources to return. Default is 10 and maximum is 50.
_fieldspartial string

Allows you to specify optional fields and linked objects to include in the response.

 

Handling the response

Below is a table of available response fields and objects that are returned within the response object of the returned object. The optional fields and objects can be requested in the _fields parameter; see included examples. Underlined values are default.

idunsigned int 
namestring 
websitestring 
standingstring 
statusunsigned int or object 
phonestring 
faxstring 
date_createdunsigned int 
date_modifiedunsigned int 
commentsstring 
contactunsigned int or object 

Fields that can be object indicate the field can be requested as a resource. For example.

Code Block
languagebash
GET /companies.json?_fields=contact

would return the contacts id. Where as,

Code Block
languagebash
GET /companies.json?_fields=contact()

...

NOTE: The fields that you can specify depend on the object against the saved filter. Please check the specific object documentation for detailed fields.

 

Handling the response

Sample Response

Code Block
languagebash
GET /filters/4/companiesrun.json?_fields=contactaffiliation(status),standing&_limit=2
Code Block
languagejavascript
{
    "responsemeta" : [
      {

        "namemore_info" : "ADTOAhttps://affinitylive.jira.com/wiki/display/APIS/Status+Codes#ok",
         "contactmessage" : {"Everything executed as  expected.",
        "emailstatus" : "rpepper@ihug.com.au"ok"
    },
    "response": [
      "firstname" : "Ronald",{
            "idaffiliation": {
  : "1",             "mobile" : "1234"0425,
  239 666",             "surnamestatus" : "Pepper IHUG"
  1",
      },          "standingid" : "active1",
         "id"        "email": "1email@example.com"
      },      },
  {          "nameid" : "1"Balgownie,
  Veterinary Hospital",         "name": "contactname a"
 : {      },
      "email" : "mark@balgownievet.com.au", {
            "firstnamename" : "Markname b",
            "id" : "2",
            "mobileaffiliation": {
:   "",             "surnameid" : "Allison2"
  ,
      },          "standingemail" : "activeemail@example.com",
         "id" : "2"     "status": "1",
}    ],
   "meta" : {       "more_infomobile" : "/public_api/docs/status/ok","
        "status" : "ok",  }
    "message" : "Everything executed as}
expected."    }]
}