...
Field | Value type | Mandatory | Description | Example | ||
---|---|---|---|---|---|---|
IDCF | string | ID of the job type being created. Job type information can be retrieved from here. | 7090fad1-c4da-4488-9ceb-55ee9847edcc | |||
VDate | string | UTC date in ISO 8601 format | 2010-08-20T15:00:00Z | |||
VDec | decimal | Number value for Numeric and Measurement fields.
| 23.45 | |||
VStr | string | String value for String fields | Hello this is a string | |||
VID | string | Value selected if field is a selector field. | 7090fad1-c4da-4488-9ceb-55ee9847edcc |
Examples
Get a customers job details
Sample cURL call:
Code Block |
---|
curl -H "Content-Type: application/json" \ -H "API-AppID: 7090fad1-c4da-4488-9ceb-55ee9847edcc" \ -H "Api-Username: jsmith" \ -H "API-Password: abc123" \ http://[companyID].crittah.com/ws/apiv2/json/jobs/c1ed6b2c-40c2-4d98-8445-148ae1890b67 |
...
Code Block |
---|
curl -X POST -d update_customerjob.data \ -H "Content-Type: application/json" \ -H "API-AppID: 7090fad1-c4da-4488-9ceb-55ee9847edcc" \ -H "Api-Username: jsmith" \ -H "API-Password: abc123" \ http://YourCompanyID.crittah.com/ws/apiv2/json/jobs/[IDJob] |
...