Automic Community Integrations

 View Only

  • 1.  Job execution via REST API using curl

    Posted Aug 20, 2024 06:01 AM

    Hi Team

    The customer has a requirement to execute a workflow via the REST API using curl but it's not working.

    The user do exist and listening on port 8088

    Currently the password is not encoded - next step

    Below is the code and output

    curl -D- --basic -u RESTAPI/JDE:'password' -X POST -H "Content-Type: application/json" http://serverxyz:8088/ae/api/v1/20/executions -d "{\"object_name\":\"DH.MAIN_WF\"}"

    OUTPUT:

    HTTP/1.1 401 Unauthorized
    Date: Tue, 20 Aug 2024 08:47:59 GMT
    Content-Type: application/json
    WWW-Authenticate: Basic realm="AUTOMIC"
    Content-Length: 116

    {
      "code" : 45254,
      "error" : "The credentials are not valid.",
      "details" : "No detail information available."

    Any help with be appreciated

    Klaus



  • 2.  RE: Job execution via REST API using curl

    Posted Aug 21, 2024 02:44 AM

    Thanks for the response

    Managed to resolve the issue

    Regards

    Klaus