Difference between revisions of "Get Asset Statuses"

From MyMobileWorkers API
Jump to: navigation, search
(→‎Response Parameters)
(→‎Example curl request)
 
Line 68: Line 68:
 
== Example curl request ==
 
== Example curl request ==
  
−
curl "http://live.mymobileworkers.com:8080/api/1/assets/asset/statuses/?api_key=darrenwebapi"
+
curl "http://api.mymobileworkers.com:8080/api/1/assets/asset/statuses/?api_key=darrenwebapi"

Latest revision as of 12:40, 14 November 2016

Contents

[edit] Summary

Asset Statuses
URL http://:base_url/:api_path/:version/assets/asset/statuses
Type GET
Params: api_key required
Response JSON

The Get Asset Statuses method returns all asset statuses corresponding to the company making the method call.

[edit] Response Parameters

Field Description
status Name of the status
external_id Status external id
available_on_device Whether or not status is available on device
available_on_portal Whether or not status is available on portal
default_on_pda_in_job Whether or not status is the default status on pda in job
default_on_pda_home Whether or not status is the default status on pda on home

[edit] Example response

[
	{
	"status":"test",
	"external_id":null,
	"available_on_device":true,
	"available_on_portal":true,
	"default_on_pda_in_job":true,
	"default_on_pda_home":true
	}
]

[edit] Example curl request

curl "http://api.mymobileworkers.com:8080/api/1/assets/asset/statuses/?api_key=darrenwebapi"

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox