JSON in HTTP job as parameters
search cancel

JSON in HTTP job as parameters

book

Article ID: 245597

calendar_today

Updated On:

Products

Autosys Workload Automation

Issue/Introduction

One of our users is asking if it’s possible to pass the following JSON Payload in HTTP job as parameters?

{

    "CustomServiceRequest": {

        "accountCodeSource": "1234V123",

        "reportingPeriod": "Weekly",

        "effectiveDate": null,

        "templateName": "Stress-123"

    },

    "BackupServiceRequest": {

        "accountCodeSource": "1234V123",

        "reportingPeriod": "Weekly",

        "effectiveDate": null,

        "templateName": "Stres23Wky"

    },

    "templateName": "Template-stress-wkly"

}

 

Environment

Release : 12.0

Component : Workload Automation System Agent

Resolution

Add the parameters to the JIL after adding the media_type attribute with the blob_input.

media_type: application/json

blob_input: <auto_blobt>{"CustomServiceRequest": {

                    "accountCodeSource": "1234V123",

                    "reportingPeriod": "Weekly",

                    "effectiveDate": null,

                    "templateName": "Stress-123"

                },

                "BackupServiceRequest": {

                    "accountCodeSource": "1234V123",

                    "reportingPeriod": "Weekly",

                    "effectiveDate": null,

                    "templateName": "Stres23Wky"

                },

                "templateName": "Template-stress-wkly"}</auto_blobt>