Difference between revisions of "Create Jobs"

From MyMobileWorkers API
Jump to: navigation, search
Line 31: Line 31:
 
| varchar(45) <br />* must be unique|| &#10003;
 
| varchar(45) <br />* must be unique|| &#10003;
 
|-
 
|-
−
! Row heading A
+
! address_1
−
| Cell B
+
| varchar(45) || &#10003;
−
| Cell C
+
|-
 +
! address_2
 +
| varchar(45) ||
 +
|-
 +
! address_3
 +
| varchar(45) ||
 +
|-
 +
! address_4
 +
| varchar(45) ||
 +
|-
 +
! postcode
 +
| varchar(45) || &#10003;
 +
|-
 +
! contact_name
 +
| varchar(45) || &#10003;
 +
|-
 +
! contact_number
 +
| varchar(45) || &#10003;
 +
|-
 
|}
 
|}
  

Revision as of 09:38, 15 May 2013

Create Job
URL http://base_url/api_path/version/mobile_users
Type POST
Params: api_key
file
Response JSON

Contents

JSON Parameters

The JSON file is passed in the post as the "file"
Field Expected Data Required
job_number varchar(45)
* must be unique
✓
address_1 varchar(45) ✓
address_2 varchar(45)
address_3 varchar(45)
address_4 varchar(45)
postcode varchar(45) ✓
contact_name varchar(45) ✓
contact_number varchar(45) ✓

Example JSON

{"jobs":[{
"job_number":"SEJOB9",
"address_1":"Rover Lane",
"address_2":"Glasgow",
"contact_name":"Joe Bloggs",
"contact_number_1":"0770999999",
"contact_number_2":"",
"mobile_user":{"username":"MOB_01"},
"postcode":"G71 8TS","type":"repair",
"timeslot":"2013-04-09 17:54:39",
"special_instructions":"Door bell is faulty so knock on the door",
"repair_description":"Replace U Bend"
}]}

Example curl request

Responses

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox