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
...
AffinityLive's Jobs (or Projects) module helps you to plan, delegate and track client and internal projects. Projects can be as simple or complex as you like, and there's an array of billing options to suit your need.
TYPE | RESOURCE | DESCRIPTION | |
---|---|---|---|
GET | /jobs | Returns a list of jobs. | |
GET | jobs/jobs/count | Returns the number of jobs found in AffinityLive. | |
GET | jobs/jobs/recent | Returns the most recently created jobs. | |
GET | jobs/jobs/newest | Returns the most recently modified jobs. | |
GET | jobs/jobs/:job_id | Returns a job identified by its id. | |
GET | /jobs/:job_id/extensions/values | Retrieve extension values for a given job | |
PUT | /jobs/:job_id | Updates a job identified by its id. | |
PUT | /jobs/:job_id/extensions/values | Update a Job's extension value object | |
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".
...
language | bash |
---|
...
GET | /jobs/:id/progressions | Returns an array of available progressions for the job. |
[PUT|POST] | /jobs/:id/progressions/:progression_id/auto | Runs a status update for the given progression on the given job. |
GET | /jobs/extensions/fields | Returns an array of extension fields for job. |
POST | /jobs/:job_id/extensions/fields/extension_field_id | Creates an extension value for a job. |
GET | /jobs/:job_id/collections | Returns a list of collections for the given job. |
POST | /jobs/:job_id/collections/:collection_id/resources | Uploads resource(attachment) to the given collection. |