Versions Compared

Key

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

...

FieldValue typeMandatoryDescriptionExample
IDCFstring ID of the job type being created. Job type information can be retrieved from here.7090fad1-c4da-4488-9ceb-55ee9847edcc
VDatestring UTC date in ISO 8601 format2010-08-20T15:00:00Z
VDecdecimal 

Number value for Numeric and Measurement fields.

Note

With measure values, measures are stored as kg or cubic meters depending on the measure type. These measure are then converted based on the users personal preferences.

23.45
VStrstring String value for String fieldsHello this is a string
VIDstring 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]

...