While scheduling an errata for any client systems using Satellite API and curl, it fails with error "There was a problem in the JSON you submitted: XXX: unexpected token at '{errata_ids:'"}"

Solution Verified - Updated -

Issue

  • When I try to install an errata using Satellite API and curl, there is an error.
# curl -X PUT -u username:password  -H "Accept:application/json" -H "Content-Type: application/json"  \
https://satellite.example.com/katello/api/v2/systems/dc8a11b7-32cd-4a0b-b23c-8f8c236d1309/errata \
-d {"errata_ids": "RHSA-2016:0010"}

->  {"status":400,"error":"There was a problem in the JSON you submitted: 784: unexpected token at '{errata_ids:'"}

Environment

  • Red Hat Satellite all version
  • API

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.