You are looking at the HTML representation of the XML format.
HTML is good for debugging, but is unsuitable for application use.
Specify the format parameter to change the output format.
To see the non HTML representation of the XML format, set format=xml.
See the complete documentation, or
API help for more information.
<?xml version="1.0"?>
<api>
<query-continue>
<allpages gapcontinue="Timezones" />
</query-continue>
<query>
<pages>
<page pageid="272" ns="0" title="Setting the status of a job">
<revisions>
<rev xml:space="preserve">The status of a job can be changed remotely by placing requests against the API.
== Summary ==
{| border="1" class="wikitable"
! Update job status
! colspan="2" |
|-
! URL
| colspan="2" | https://:base_url/:api_path/:version/jobs//job/status/update?api_key=YOUR_KEY&&job_number=JOB_NUMBER&status=JOB_STATUS
|-
! Type
| colspan="2" | POST
|-
! Params:
| api_key || required
|-
!
| job_number || required
|-
!
| status || required
|-
! Response
| colspan="2" | JSON
|}
== Valid status transitions ==
{| border="1" class="wikitable"
! Current status
| colspan="2" | Possible status
|-
! NEW
| colspan="2" | JOB_COMPLETED
|-
! NEW
| colspan="2" | JOB_FAILED
|-
! NEW
| colspan="2" | CUSTOM_COMPLETED_TYPE
|-
! NEW
| colspan="2" | CUSTOM_NEW_TYPE
|-
! JOB_COMPLETED
| colspan="2" | JOB_FAILED
|-
! JOB_FAILED
| colspan="2" | JOB_COMPLETED
|-
! CUSTOM_COMPLETED_TYPE
| colspan="2" | CUSTOM_COMPLETED_TYPE
|-
|}
- CUSTOM_COMPLETED_TYPE statuses are defined within the web portal under the settings menu. They will always be defaulted to uppercase.
== Example success response ==
<source lang="java">{"successful":[{"job_number":"123456"}]}</source>
== Example failure response ==
<source lang="java">{"failed":[{"job_number":"123456","errors":[{"error_code":"STA001","error_message":"Invalid job status specified"}]}]}</source>
== Example curl request ==
curl -X POST "<nowiki>https://api.mymobileworkers.com:8181/api/1/jobs/job/status/update?api_key=APIKEY&job_number=JOB_NUMBER&status=JOB_COMPLETED</nowiki>"
curl -X POST "<nowiki>https://api.mymobileworkers.com:8181/api/1/jobs/job/status/update?api_key=APIKEY&job_number=JOB_NUMBER&status=JOB_FAILED</nowiki>"</rev>
</revisions>
</page>
<page pageid="262" ns="0" title="SignatureActivity">
<revisions>
<rev xml:space="preserve">== Settings ==
* disclaimer - text for disclaimer
* satisfaction - boolean , toggles satisfaction
* name - signature name, ie customer, engineer etc</rev>
</revisions>
</page>
</pages>
</query>
</api>