How to create a Work Order through REST API

Version 2
    Share This:

    This document contains official content from the BMC Software Knowledge Base. It is automatically updated when the knowledge article is modified.


    PRODUCT:

    Remedy AR System Server


    COMPONENT:

    AR System Server


    APPLIES TO:

    Rest API



    QUESTION:

    How to create a new Work Order through Rest API?


    ANSWER:

    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. 


    Article Number:

    000173920


    Article Type:

    FAQ/Procedural



      Looking for additional information?    Search BMC Support  or  Browse Knowledge Articles