How to create a new Work Order through Rest API? |
This knowledge article may contain information that does not apply to version 21.05 or later which runs in a container environment. Please refer to Article Number 000385088 for more information about troubleshooting BMC products in containers. First you need to configure the jetty server correctly on your ARServer and generate a AR-JWT token for the login account. Please consult the article linked below. AR Server REST API architecture and overview - Start here Using POST action to generate new entry based on "WOI:WorkOrderInterface_Create" the url would be: http://<servername>:<port>/api/arsys/v1/entry/WOI:WorkOrderInterface_Create/ Headers: Content-Type: application/json Authorization:AR-JWT {{token}} Following fields are required, they are set on the body: { "values": { "Detailed Description": "REST API TEST WO", "z1D_Action": "CREATE", "First Name": "Allen", "Last Name": "Allbrook", "Customer First Name": "Bob", "Customer Last Name": "Baxter", "Summary": "REST API TEST WO", "Status": "Assigned", "Company": "Calbro Services", "Customer Company": "Calbro Services", "Location Company": "Calbro Services" } } If you get application errors you may not have configured the permissions to create work orders properly. An example of how it would look in postman is attached. |