Update the location associated with the work order (address, saved location, or coordinates).
access_token OAuth 2.0 Access Token
In: query
Work Order ID
application/json
work order schedule pay model
Mode
"custom" | "remote" | "location"Address line 1
Address line 2
City
State
Postal/ZIP code
Country
Location type
Saved location
Display name
Save location name
Save location group ID
curl -X PUT "https://api-sandbox.fndev.net/api/rest/v2/workorders/0/location" \ -H "Content-Type: application/json" \ -d '{ "mode": "location", "address1": "123 Main St", "city": "Minneapolis", "state": "MN", "zip": "55401", "country": "US", "saved_location": { "id": 99 } }'{
"coordinates": {
"latitude": 44.9778,
"longitude": -93.265,
"exact": true
},
"work_order_id": 1001,
"mode": "string_value",
"address1": "123 Main St",
"address2": "Suite 100",
"city": "Minneapolis",
"state": "MN",
"zip": "90210",
"country": "USA",
"notes": [],
"type": {
"id": 123,
"name": "Sample Name"
},
"saved_location": {
"id": 123,
"name": "Sample Name",
"display_name": "string_value",
"contact": {
"name": "Sample Name",
"phone": "555-0199"
},
"group": {
"id": 123,
"name": "Sample Name"
}
},
"display_name": "string_value",
"status_id": 0,
"correlation_id": "string_value",
"zoom": "string_value",
"map": {
"url": "https://fieldnation.com",
"href": "string_value"
},
"actions": []
}{
"status": 500,
"message": "Operation successful."
}{
"status": 500,
"message": "Operation successful."
}{
"status": 500,
"message": "Operation successful."
}application/json
application/json
application/json
application/json
Last updated on
curl -X PUT "https://api-sandbox.fndev.net/api/rest/v2/workorders/0/location" \
-H "Content-Type: application/json" \
-d '{
"mode": "location",
"address1": "123 Main St",
"city": "Minneapolis",
"state": "MN",
"zip": "55401",
"country": "US",
"saved_location": {
"id": 99
}
}'