Versions Compared

Key

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

Table of contents

Table of Contents

Searching for jobs

The following table provides the URI and method that can be used to search for jobs in Crittah.

MethodResult
URIhttps://[CompanyID].crittah.com/ws/apiv2/[json or xml]/jobs/search
POST

Post a JSON or XML object with search criteria.

Search Fields

FieldValue typeMandatoryDescriptionExample
DateSrchTypestring

Status
colourRed
titleYes

Defiones which date to apply the date range search on. Accepted values are DUEDATE, CREATEDDATE, UPDATEDDATE, FOLLOWUPDATE, STARTDATE, FINISHDATEDUEDATE
FromDateTimestring

Status
colourRed
titleYes

UTC date in ISO 8601 format.2010-08-20T15:00:00Z
ToDateTimestring

Status
colourRed
titleYes

UTC date in ISO 8601 format.2010-08-20T15:00:00Z
CompanyNamestring
Name of company assigned to the job. Partial matches will return results also.Megga Corp
CompanyNostring
Company number of comapny assigned to the job. Partial matches will return results also.5466542
Citystring
City of company assigned to the job. Partial matches will return results also.Sydney
PostalCodestring
Postcode of company assign to the job. Partial matches will return results also.2201
ContactFirstNamestring
Contacts first name assign to job. Partial matches will return results also.John
ContactLastNamestring
Contacts last name assigned to the job. Partial matches will return results also.Smith
IDSitesArray of Type IDVal

An array of Site ID's

"IDSites": [

{ "IDVal": "20058233-7388-418b-9193-6b57e28604f9" },

{ "IDVal": "a6224de2-2aae-4b52-8f7f-c2dcd4186b34" }
]

IDLeadSourcesArray of Type IDVal
An array of lead source ID's.

"IDLeadSources": [
{ "IDVal": "6ea9bb82-906e-4eea-b77d-d39e9622e032" },
{ "IDVal": "e4aacffc-ac5e-4858-821e-9b9d51acb512"}
],

Example Search

Perform a POST to the following URL https://[companyID].crittah.com/ws/apiv2/json/jobs/search

Code Block
{
  "DateSrchType": "DUEDATE",
  "FromDateTime": "201609091521",
  "ToDateTime": "201609161551",
  "CompanyName": "CompanyName",
  "ContactFirstName": "John",
  "ContactLastName": "Smith",
  "IDSites": [
    {
      "IDVal": "20058233-7388-418b-9193-6b57e28604f9"
    },
    {
      "IDVal": "a6224de2-2aae-4b52-8f7f-c2dcd4186b34"
    }
  ]
}


Working with a single job

The following table provides the URI and methods that can be used to add, updated, delete and get a job from Crittah.

MethodResult
URIhttps://[CompanyID].crittah.com/ws/apiv2/[json or xml]/jobs/[IDJob]
DELETEDeletes one job
GETReturns data for one job
POSTCreate or modify only the supplied data for one job; returns job data after request
PUTNot supported

Data fields

FieldValue typeMandatoryDescriptionExample
IDJobTypestring
Status
colourRed
titleYes
ID of the job type being created. Job type information can be retrieved from here.7090fad1-c4da-4488-9ceb-55ee9847edcc
IDLeadSourcestring
 

ID of the lead source. A list of Lead source ID's can be retrieved by calling a help web service here.926a4185-6cb3-4a2a-a8ec-1fadc1cf4caa
IDStatusstring
 

ID of the job status. Job statuses can be retries from here  .926a4185-6cb3-4a2a-a8ec-1fadc1cf4caa
IDSitestring
Status
colourRed
titleYes
ID of the site the job belongs to.20058233-7388-418b-9193-6b57e28604f9
IDCustomerstringEither IDCustomer and/or IDContact is RequiredID of the customer. More information on the API for customers can be found here.c0fd94f3-2ddd-4eea-bc24-40189480d10f
IDContactstringEither IDCustomer and/or IDContact is RequiredID of the contact. More information on the API for contacts can be found here.20058233-7388-418b-9193-6b57e28604f9
DueDatestring
 

UTC date in ISO 8601 format2010-08-20T15:00:00Z
FollowUpDatestring
 

UTC date in ISO 8601 format. If omitted the follow up time will default to the current time.2010-08-20T15:00:00Z
ChargeAmountdecimal
 

Amount to charge for the job. If omitted the default charge amount will be used as configured in the job type.20.52
StartDatestring
 

UTC date in ISO 8601 format. Omit this values if the job has not started.2010-08-20T15:00:00Z
FinishDatestring
 

UTC date in ISO 8601 format. Omit this values if the job has not finished.2010-08-20T15:00:00Z
Durationint
 

Duration of job in minutes20
AddressAddress Object 
 

Address of the job.

See Address Object

AddressDeliveryAddress Object 
 

Delivery address if the job has a start and a destination. This address will be displayed if the job type has been configured to use a delivery address.See Address Object
CustFieldsArray of custom fields objects
 

An array of all custom field data for the job. Custom field attributes are described below.
 

NotesArray of Notes Object
 

Notes for the job.See Notes Object
ItemsArray of Items objects
 

Inventory items used on the job. These items can be items from the inventory information in Crittah or free text line items.
 

Custom field, fields

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 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
 <JobObj xmlns="http://schemas.datacontract.org/2004/07/Spinifex.lib.objects" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
    <IDJob>c1ed6b2c-40c2-4d98-8445-148ae1890b67</IDJob>
    <IDShift>00000000-0000-0000-0000-000000000000</IDShift>
    <JobOrder>0</JobOrder>
    <JobReference>AHC817040595</JobReference>
    <IDJobType>49b86bf8-a610-4594-baea-30b76c21974d</IDJobType>
    <JobType>AdHoc</JobType>
    <Colour>#f5c9cb</Colour>
    <IDStatus>a610305a-1a34-4c3d-b271-d710ba6b3be3</IDStatus>
    <Status>New</Status>
    <Customer>
        <IDCustomer>5f3f2135-d0f5-47a4-906e-7274b0128054</IDCustomer>
        <IDSite>20058233-7388-418b-9193-6b57e28604f9</IDSite>
        <Site>SYD</Site>
        <Types>
            <TypeObj>
                <IDType>4d819963-731c-41fd-9378-fd7a10199b78</IDType>
                <Type>Associates</Type>
            </TypeObj>
            <TypeObj>
                <IDType>27ec5309-9426-4a05-b51c-532f8582c436</IDType>
                <Type>Financial</Type>
            </TypeObj>
            <TypeObj>
                <IDType>21a952eb-089e-467a-98bf-f8cb9a0ebd88</IDType>
                <Type>Producer</Type>
            </TypeObj>
        </Types>
        <IDStatus>926a4185-6cb3-4a2a-a8ec-1fadc1cf4caa</IDStatus>
        <Status>Active</Status>
        <Parent i:nil="true" />
        <CompanyName>North Bunting Supplies</CompanyName>
        <CompanyNo>111 222 3333</CompanyNo>
        <CustomerRef>7193032</CustomerRef>
        <Phone>9575 545</Phone>
        <Mobile>0414 656 654</Mobile>
        <Fax>654 654 124</Fax>
        <Council>Sydney</Council>
        <WebSite>http://www.buntingsupplies.com.au</WebSite>
        <AddressBilling>
            <IDAddress>368321fe-de7e-4f38-80a7-e7ea8e34fe26</IDAddress>
            <AddressLine1>99 Castlereagh Street</AddressLine1>
            <AddressLine2 i:nil="true" />
            <City>NORTH SYDNEY</City>
            <State>NSW</State>
            <IDCountry>1013</IDCountry>
            <Country>Australia</Country>
            <PostCode>2001</PostCode>
            <LocRef>
                <IDLocation>6db14940-f906-4c20-949a-e332f6798336</IDLocation>
                <LatLng>
                    <Lat>-33.869738</Lat>
                    <Lng>151.209448</Lng>
                </LatLng>
            </LocRef>
        </AddressBilling>
        <Address>
            <IDAddress>2d69c03b-5b57-46b4-8d67-43d2f27d225a</IDAddress>
            <AddressLine1>91 Castlereagh Street</AddressLine1>
            <AddressLine2 i:nil="true" />
            <City>NORTH SYDNEY</City>
            <State>NSW</State>
            <IDCountry>1013</IDCountry>
            <Country>Australia</Country>
            <PostCode>2000</PostCode>
            <LocRef>
                <IDLocation>e97c85a5-62c0-4e13-bb63-ed8a43050360</IDLocation>
                <LatLng>
                    <Lat>-33.869738</Lat>
                    <Lng>151.209448</Lng>
                </LatLng>
            </LocRef>
        </Address>
        <AccountOwner>00000000-0000-0000-0000-000000000000</AccountOwner>
        <Notes>
            <NoteObj>
                <IDNote>05629a9b-2869-4197-82af-b6f975be93c8</IDNote>
                <IDEntity>5f3f2135-d0f5-47a4-906e-7274b0128054</IDEntity>
                <IDNoteType>77d5d244-eb29-4b5b-8b14-87d92b4215ea</IDNoteType>
                <Type>General</Type>
                <NoteInfo>Contact the front desk for assistance</NoteInfo>
            </NoteObj>
            <NoteObj>
                <IDNote>cf67b514-3ba2-44d9-82f0-c0d5f8d57816</IDNote>
                <IDEntity>5f3f2135-d0f5-47a4-906e-7274b0128054</IDEntity>
                <IDNoteType>77d5d244-eb29-4b5b-8b14-87d92b4215ea</IDNoteType>
                <Type>General</Type>
                <NoteInfo>Entry is via 120 King st - last driveway on right before Castlereagh st.</NoteInfo>
            </NoteObj>
        </Notes>
    </Customer>
    <Contact>
        <IDContact>cd62aad8-9e0d-408a-827b-c620ff9b3598</IDContact>
        <ContactRef>4713828</ContactRef>
        <IDSite>20058233-7388-418b-9193-6b57e28604f9</IDSite>
        <Site>SYD</Site>
        <Types />
        <Salutation>Mr</Salutation>
        <FirstName>John</FirstName>
        <LastName>Peterson</LastName>
        <Email>j.peterson@gmal.com</Email>
        <Phone>(02) 9506 3560</Phone>
        <Mobile>0412 544 654</Mobile>
        <Fax>9567 680</Fax>
        <BirthDate i:nil="true" />
        <Position />
        <Department />
        <IDStatus>926a4185-6cb3-4a2a-a8ec-1fadc1cf4caa</IDStatus>
        <Status>Active</Status>
        <Customer>
            <IDCustomer>5f3f2135-d0f5-47a4-906e-7274b0128054</IDCustomer>
            <IDSite>20058233-7388-418b-9193-6b57e28604f9</IDSite>
            <Site>SYD</Site>
            <Types>
                <TypeObj>
                    <IDType>4d819963-731c-41fd-9378-fd7a10199b78</IDType>
                    <Type>Associates</Type>
                </TypeObj>
                <TypeObj>
                    <IDType>27ec5309-9426-4a05-b51c-532f8582c436</IDType>
                    <Type>Financial</Type>
                </TypeObj>
                <TypeObj>
                    <IDType>21a952eb-089e-467a-98bf-f8cb9a0ebd88</IDType>
                    <Type>Producer</Type>
                </TypeObj>
            </Types>
            <IDStatus>926a4185-6cb3-4a2a-a8ec-1fadc1cf4caa</IDStatus>
            <Status>Active</Status>
            <Parent i:nil="true" />
            <CompanyName>North Bunting Supplies</CompanyName>
            <CompanyNo>111 222 3333</CompanyNo>
            <CustomerRef>7193032</CustomerRef>
            <Phone>9575 545</Phone>
            <Mobile>0414 656 654</Mobile>
            <Fax>654 654 124</Fax>
            <Council>Sydney</Council>
            <WebSite>http://www.buntingsupplies.com.au</WebSite>
            <AddressBilling>
                <IDAddress>368321fe-de7e-4f38-80a7-e7ea8e34fe26</IDAddress>
                <AddressLine1>99 Castlereagh Street</AddressLine1>
                <AddressLine2 i:nil="true" />
                <City>NORTH SYDNEY</City>
                <State>NSW</State>
                <IDCountry>1013</IDCountry>
                <Country>Australia</Country>
                <PostCode>2001</PostCode>
                <LocRef>
                    <IDLocation>6db14940-f906-4c20-949a-e332f6798336</IDLocation>
                    <LatLng>
                        <Lat>-33.869738</Lat>
                        <Lng>151.209448</Lng>
                    </LatLng>
                </LocRef>
            </AddressBilling>
            <Address>
                <IDAddress>2d69c03b-5b57-46b4-8d67-43d2f27d225a</IDAddress>
                <AddressLine1>91 Castlereagh Street</AddressLine1>
                <AddressLine2 i:nil="true" />
                <City>NORTH SYDNEY</City>
                <State>NSW</State>
                <IDCountry>1013</IDCountry>
                <Country>Australia</Country>
                <PostCode>2000</PostCode>
                <LocRef>
                    <IDLocation>e97c85a5-62c0-4e13-bb63-ed8a43050360</IDLocation>
                    <LatLng>
                        <Lat>-33.869738</Lat>
                        <Lng>151.209448</Lng>
                    </LatLng>
                </LocRef>
            </Address>
            <AccountOwner>00000000-0000-0000-0000-000000000000</AccountOwner>
            <Notes>
                <NoteObj>
                    <IDNote>05629a9b-2869-4197-82af-b6f975be93c8</IDNote>
                    <IDEntity>5f3f2135-d0f5-47a4-906e-7274b0128054</IDEntity>
                    <IDNoteType>77d5d244-eb29-4b5b-8b14-87d92b4215ea</IDNoteType>
                    <Type>General</Type>
                    <NoteInfo>Contact the front desk for assistance</NoteInfo>
                </NoteObj>
                <NoteObj>
                    <IDNote>cf67b514-3ba2-44d9-82f0-c0d5f8d57816</IDNote>
                    <IDEntity>5f3f2135-d0f5-47a4-906e-7274b0128054</IDEntity>
                    <IDNoteType>77d5d244-eb29-4b5b-8b14-87d92b4215ea</IDNoteType>
                    <Type>General</Type>
                    <NoteInfo>Entry is via 120 King st - last driveway on right before Castlereagh st.</NoteInfo>
                </NoteObj>
            </Notes>
        </Customer>
        <Address>
            <IDAddress>b8ec4614-cbcc-4a20-9bc3-64ab2ba89fda</IDAddress>
            <AddressLine1>26 Wolongong ROad</AddressLine1>
            <AddressLine2 i:nil="true" />
            <City>ARNCLIFFE</City>
            <State>NSW</State>
            <IDCountry>1013</IDCountry>
            <Country>Australia</Country>
            <PostCode>2205</PostCode>
            <LocRef>
                <IDLocation>2be70140-b953-4935-b075-02660288bb1e</IDLocation>
                <LatLng>
                    <Lat>-33.934813</Lat>
                    <Lng>151.146104</Lng>
                </LatLng>
            </LocRef>
        </Address>
        <Notes>
            <NoteObj>
                <IDNote>5b4dac63-e226-4270-99d3-17e289115ba7</IDNote>
                <IDEntity>cd62aad8-9e0d-408a-827b-c620ff9b3598</IDEntity>
                <IDNoteType>2b11efc3-2a43-4c03-92ac-923e77f821a2</IDNoteType>
                <Type>Important</Type>
                <NoteInfo>Maincontact for organisation</NoteInfo>
            </NoteObj>
        </Notes>
    </Contact>
    <DueDate>2014-10-06T10:55:00Z</DueDate>
    <Address>
        <IDAddress>362eb124-d124-4a47-ba94-6585e8bf4426</IDAddress>
        <AddressLine1>91 Castlereagh Street</AddressLine1>
        <AddressLine2 i:nil="true" />
        <City>NORTH SYDNEY</City>
        <State>NSW</State>
        <IDCountry>1013</IDCountry>
        <Country>Australia</Country>
        <PostCode>2000</PostCode>
        <LocRef>
            <IDLocation>3ac45077-b768-4264-b085-506892b46691</IDLocation>
            <LatLng>
                <Lat>-33.869738</Lat>
                <Lng>151.209448</Lng>
            </LatLng>
        </LocRef>
    </Address>
    <AddressDelivery>
        <IDAddress>9f446daf-c80f-4112-9e1f-c8d867632e38</IDAddress>
        <AddressLine1>91 Castlereagh Street</AddressLine1>
        <AddressLine2 i:nil="true" />
        <City>NORTH SYDNEY</City>
        <State>NSW</State>
        <IDCountry>1013</IDCountry>
        <Country>Australia</Country>
        <PostCode>2000</PostCode>
        <LocRef>
            <IDLocation>4e878177-7de5-431e-b843-3ecdc4b6e8f0</IDLocation>
            <LatLng>
                <Lat>-33.869738</Lat>
                <Lng>151.209448</Lng>
            </LatLng>
        </LocRef>
    </AddressDelivery>
    <CustFields xmlns:a="http://schemas.datacontract.org/2004/07/">
        <a:CF>
            <a:CustomFieldObj>
                <a:Order>1</a:Order>
                <a:IDCF>ac0a7cf2-2496-4147-a8e0-f679a538f3bc</a:IDCF>
                <a:Name># Containers</a:Name>
                <a:Type>Number</a:Type>
                <a:Descr>Number of containers required</a:Descr>
                <a:DV>0</a:DV>
                <a:DP>0</a:DP>
                <a:AddV>1</a:AddV>
                <a:Mand>true</a:Mand>
                <a:ML>0</a:ML>
                <a:Abrev>NCNT</a:Abrev>
                <a:VDate />
                <a:VDec>22</a:VDec>
                <a:VStr />
                <a:VID i:nil="true" />
            </a:CustomFieldObj>
            <a:CustomFieldObj>
                <a:Order>2</a:Order>
                <a:IDCF>55535646-a0d5-48d9-b718-e5abdc792192</a:IDCF>
                <a:Name>Fruit/Veg/Salad</a:Name>
                <a:Type>Measurement</a:Type>
                <a:Descr>Fruit, Vegetables and Salad</a:Descr>
                <a:DV>0</a:DV>
                <a:DP>0</a:DP>
                <a:AddV>1</a:AddV>
                <a:Mand>true</a:Mand>
                <a:ML>0</a:ML>
                <a:Abrev>FVS</a:Abrev>
                <a:VDate />
                <a:VDec>1</a:VDec>
                <a:VStr />
                <a:VID i:nil="true" />
            </a:CustomFieldObj>
            <a:CustomFieldObj>
                <a:Order>3</a:Order>
                <a:IDCF>d4602f75-d0b1-46b4-968b-549cfac7ef79</a:IDCF>
                <a:Name>Cooked Meals</a:Name>
                <a:Type>Measurement</a:Type>
                <a:Descr>Cooked Meals</a:Descr>
                <a:DV>0</a:DV>
                <a:DP>0</a:DP>
                <a:AddV>1</a:AddV>
                <a:Mand>true</a:Mand>
                <a:ML>0</a:ML>
                <a:Abrev>CM</a:Abrev>
                <a:VDate />
                <a:VDec>2</a:VDec>
                <a:VStr />
                <a:VID i:nil="true" />
            </a:CustomFieldObj>
            <a:CustomFieldObj>
                <a:Order>4</a:Order>
                <a:IDCF>122727dc-b753-4a39-8fb2-921a2b483523</a:IDCF>
                <a:Name>Sandwiches</a:Name>
                <a:Type>Measurement</a:Type>
                <a:Descr>Sandwiches</a:Descr>
                <a:DV>0</a:DV>
                <a:DP>0</a:DP>
                <a:AddV>1</a:AddV>
                <a:Mand>true</a:Mand>
                <a:ML>0</a:ML>
                <a:Abrev>S</a:Abrev>
                <a:VDate />
                <a:VDec>3</a:VDec>
                <a:VStr />
                <a:VID i:nil="true" />
            </a:CustomFieldObj>
            <a:CustomFieldObj>
                <a:Order>5</a:Order>
                <a:IDCF>b980cf94-c37c-49fe-bcc1-ff63c552923f</a:IDCF>
                <a:Name>Dairy</a:Name>
                <a:Type>Measurement</a:Type>
                <a:Descr>Dairy</a:Descr>
                <a:DV>0</a:DV>
                <a:DP>0</a:DP>
                <a:AddV>1</a:AddV>
                <a:Mand>true</a:Mand>
                <a:ML>0</a:ML>
                <a:Abrev>D</a:Abrev>
                <a:VDate />
                <a:VDec>45</a:VDec>
                <a:VStr />
                <a:VID i:nil="true" />
            </a:CustomFieldObj>
            <a:CustomFieldObj>
                <a:Order>6</a:Order>
                <a:IDCF>9edc2d59-36d9-40ce-87d0-cb0250098787</a:IDCF>
                <a:Name>Raw Meat</a:Name>
                <a:Type>Measurement</a:Type>
                <a:Descr>Raw Meat</a:Descr>
                <a:DV>0</a:DV>
                <a:DP>0</a:DP>
                <a:AddV>1</a:AddV>
                <a:Mand>true</a:Mand>
                <a:ML>0</a:ML>
                <a:Abrev>RM</a:Abrev>
                <a:VDate />
                <a:VDec>6</a:VDec>
                <a:VStr />
                <a:VID i:nil="true" />
            </a:CustomFieldObj>
            <a:CustomFieldObj>
                <a:Order>7</a:Order>
                <a:IDCF>fa609e1c-4775-414f-af6c-e957cff27eaf</a:IDCF>
                <a:Name>Raw Meat Used By</a:Name>
                <a:Type>Date</a:Type>
                <a:Descr>Raw Meat Used By date. The date in which the raw meat expires.</a:Descr>
                <a:DV />
                <a:DP>0</a:DP>
                <a:AddV>1</a:AddV>
                <a:Mand>false</a:Mand>
                <a:ML>0</a:ML>
                <a:Abrev>RME</a:Abrev>
                <a:VDate />
                <a:VDec>0</a:VDec>
                <a:VStr />
                <a:VID i:nil="true" />
            </a:CustomFieldObj>
            <a:CustomFieldObj>
                <a:Order>8</a:Order>
                <a:IDCF>313c714f-2f8d-4638-98f2-b18be1155e1d</a:IDCF>
                <a:Name>Deserts and Pastries</a:Name>
                <a:Type>Measurement</a:Type>
                <a:Descr>Deserts and Pastries</a:Descr>
                <a:DV>0</a:DV>
                <a:DP>0</a:DP>
                <a:AddV>1</a:AddV>
                <a:Mand>true</a:Mand>
                <a:ML>0</a:ML>
                <a:Abrev>DP</a:Abrev>
                <a:VDate />
                <a:VDec>0</a:VDec>
                <a:VStr />
                <a:VID i:nil="true" />
            </a:CustomFieldObj>
            <a:CustomFieldObj>
                <a:Order>9</a:Order>
                <a:IDCF>e24167b0-6bb0-4cc6-8e03-ee85ee233d52</a:IDCF>
                <a:Name>Bread</a:Name>
                <a:Type>Measurement</a:Type>
                <a:Descr>Bread</a:Descr>
                <a:DV>0</a:DV>
                <a:DP>0</a:DP>
                <a:AddV>1</a:AddV>
                <a:Mand>true</a:Mand>
                <a:ML>0</a:ML>
                <a:Abrev>B</a:Abrev>
                <a:VDate />
                <a:VDec>0</a:VDec>
                <a:VStr />
                <a:VID i:nil="true" />
            </a:CustomFieldObj>
            <a:CustomFieldObj>
                <a:Order>10</a:Order>
                <a:IDCF>3013af25-b9c8-4c5d-b74d-a6c9bddf2120</a:IDCF>
                <a:Name>Dry Stock</a:Name>
                <a:Type>Measurement</a:Type>
                <a:Descr>Dry Stock</a:Descr>
                <a:DV>0</a:DV>
                <a:DP>0</a:DP>
                <a:AddV>1</a:AddV>
                <a:Mand>true</a:Mand>
                <a:ML>0</a:ML>
                <a:Abrev>DS</a:Abrev>
                <a:VDate />
                <a:VDec>0</a:VDec>
                <a:VStr />
                <a:VID i:nil="true" />
            </a:CustomFieldObj>
            <a:CustomFieldObj>
                <a:Order>11</a:Order>
                <a:IDCF>7c8039fe-681d-4ffe-a0c6-1b58c2c5c635</a:IDCF>
                <a:Name>Dry Stock Used By</a:Name>
                <a:Type>Date</a:Type>
                <a:Descr>Dry Stock used by date</a:Descr>
                <a:DV />
                <a:DP>0</a:DP>
                <a:AddV>1</a:AddV>
                <a:Mand>false</a:Mand>
                <a:ML>0</a:ML>
                <a:Abrev>DSU</a:Abrev>
                <a:VDate />
                <a:VDec>0</a:VDec>
                <a:VStr />
                <a:VID i:nil="true" />
            </a:CustomFieldObj>
            <a:CustomFieldObj>
                <a:Order>12</a:Order>
                <a:IDCF>6117a168-bfc3-482a-b0ef-74edb8b85ca8</a:IDCF>
                <a:Name>Drinks</a:Name>
                <a:Type>Measurement</a:Type>
                <a:Descr>Drinks</a:Descr>
                <a:DV>0</a:DV>
                <a:DP>0</a:DP>
                <a:AddV>1</a:AddV>
                <a:Mand>true</a:Mand>
                <a:ML>0</a:ML>
                <a:Abrev>DRINK</a:Abrev>
                <a:VDate />
                <a:VDec>0</a:VDec>
                <a:VStr />
                <a:VID i:nil="true" />
            </a:CustomFieldObj>
        </a:CF>
    </CustFields>
    <Notes />
    <Items />
</JobObj>

Add Job Basic

Add the following contents to a file called "add_job_basic.data"

...

Code Block
curl -X POST -d add_job_basic.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

Add Job Complicated

Add the following contents to a file called "add_job_complicated.data"

...

Code Block
curl -X POST -d add_job_complicated.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

Update job

Add the following contents to a file calls "update_job.data"

...

Code Block
curl -X POST -d update_job.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]

...


Delete a job

Code Block
curl  -X DELETE \
-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/delete/fde3e1d7-5a7c-493d-b49f-dd514fa3b3af