JSON unavailable for an API endpoint ?

28 views
Skip to first unread message

Xavier Humbert

unread,
Feb 24, 2023, 7:51:46 AM2/24/23
to rundeck-discuss
Hi,

Strange Error with the API

[xavier@imladris ~]$ export instance=https://<SERVER>/api/42/
[xavier@imladris ~]$ export token=********
[xavier@imladris ~]$ curl -H "X-Rundeck-Auth-Token: $token" -H "Accept:
application/json" -X GET $instance/job/4477<UUID>
<result error='true' apiversion='43'>
  <error code='api.error.item.unsupported-format'>
    <message>The format is not valid: json</message>
  </error>
</result>

Is JSON unavailable for this particular endpoint ?

Cheers

Xavier

--
Xavier Humbert
CRT Supervision et Exploitation de Niveau 1
Rectorat de Nancy-Metz
03 83 86 27 39

rac...@rundeck.com

unread,
Feb 24, 2023, 8:06:19 AM2/24/23
to rundeck-discuss
Hi Xavier,

Right, Rundeck job definitions support only two formats: YAML and XML, take a look at the endpoint doc entry.

Regards!
Reply all
Reply to author
Forward
0 new messages