Chapter 3: Getting Started Use the following examples to assist in creating a simple Pickup and Dropoff job request to an AMR associated with the Fleet Manager in your system. NOTE: These examples use goal names and namekeys that may not exist in your application. Use goal names and namekeys appropriate for your system. 3.1 PickupDropoff Job - REST Example The following JSON object will create a new PickupDropoff job at the goals on the Flow Man- ager map of p5 and p34. This job will have a pickup priority level of 10 and a dropoff priority level of 20. TestPickup101 is the namekey of the entity.
The namekey and jobId will be automatically generated because they are not specified in the JSON command body parameters. REST Command Details l Method: POST l Endpoint: https://[IP]:8443 l Resource: /PickupDropoff JSON Command Body To create a PickupDropoff job, issue a POST request https://[IP]:8443/PickupDropoff with the following JSON object body: { "pickupGoal": "p5", "pickupPriority": 10, "dropoffGoal": "p34", "dropoffPriority": 20 } cURL String Issue the following cURL string to create a PickupDropoff job: curl [options] -X POST "https://[IP]:8443/PickupDropoff" -H "accept: application/json; charset=utf-8" -H "Content-Type:
application/json; charset=utf-8" -d " {\"pickupGoal\":\"p5\",\"pickupPriority\":10,\"dropoffGoal\":\"p34\",\"dropoffPriorit y\":20}" Response Example { "code": 201, "entity": "PickupDropoff", "id": "7ddabddb-fcbe-4f49-b9a3-2bfd4f8d2e33", "message": "Entity created" } 20964-000 Rev. C Fleet Operation Workspace Core Integration Toolkit 19 User's Manual