Introduction
Clients are the entries in AffinityLive where you note the companies whom you provide services to. These can range from partners and vendors to your actual customers, and can even include you! These Client entries also act as the central repository for all information related to that group, including correspondence, project and sales updates, and contact information for their employees.
Endpoints
Resource | Description |
---|---|
GET jobs | Returns a list of jobs. |
GET jobs/count | Returns the number of jobs found in AffinityLive. |
GET jobs/recent | Returns the most recently created jobs. |
GET jobs/newest | Returns the most recently modified jobs. |
GET jobs/:job_id | Returns a job identified by its id. |
PUT jobs/:job_id | Updates a job identified by its id. |
DELETE jobs/:job_id | Deletes a job identified by its id. |
POST jobs | Create a new job object. |
Filters
Job filters can be used to filter through lists of jobs. You can defined filters in the _filter parameter.
modified_before | Unix Timestamp. e.g 1341281246- Filter out jobs that were not modified before this date. |
---|---|
modified_after | Unix Timestamp. e.g 1341281246- Filter out jobs that were not modified after this date. |
created_before | Unix Timestamp. e.g 1341281246- Filter out jobs that were not created before this date. |
created_after | Unix Timestamp. e.g 1341281246- Filter out jobs that were not created after this date. |
manager_id | Array of number. e.g 13,10,15- Filter out jobs that do not have a manager with supplied manager id. |
standing | Array of standing status strings. For example standing(pending,active)- filter out jobs that do not have the supplied standing. |
The following sample will return jobs created before Tue, 03 Jul 2012 02:07:26 GMT< that have a manager with an id 10, 11 or 100 and are currently "pending".
/jobs?_filter=created_before(1341281246),manager_id(10,11,100),standing(pending)