Hi
I'm using AWA 12.3 and trying to use the REST api to import objects.
I managed to export objects like this :
curl -H "authorization: Basic xxxxx" -X GET 'http://host:port/ae/api/v1/3500/objects/MYTESTJOB'
I get the following output :
{
"total" : 1,
"data" : {
"jobs" : {
"metadata" : {
"version" : "12.3.0"
},
"general_attributes" : {
"minimum_ae_version" : "11.2",
"auto_deactivation" : "A",
"child_flags" : "00000000000000000000000000000000",
"ert" : "1",
"platform" : "UNIX",
"last_runtimes" : "AQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAA==",
"max_parallel_action" : "1",
"mrt_time" : "000000",
"name" : "MYTESTJOB",
"type" : "JOBS",
"inherit_output_filter" : "N",
"queue" : "UC4_TEST",
"description" : "Test the REST API",
"versioning_id" : "-1247814801"
},
"job_attributes" : {
"platform" : "UNIX",
"agent" : "xxxx",
"login" : "xxxx",
"job_report_path" : "2",
"priority" : "0",
"unix_shell" : "bash",
"unix_shell_options" : "",
"unix_type" : "B",
"unix_cmd" : "hostname"
}
}
},
"path" : "TEST/RESTAPI",
"hasmore" : false
}
I can save this output to a file (output.json), then give it back to the AE :
curl -H "authorization: Basic xxxxxxxxxxxxxx" -X POST 'http://host:port/ae/api/v1/3500/objects' -d @./export.json
{
"code" : 45106,
"error" : "The request is invalid and cannot be processed by the Automation Engine.",
"details" : "No detail information available."
}
If I pass the string as pyaload instead of the file, I get the same error.
Any idea what I'm missing ?
Any way I can troubleshoot this ?
Thanks !