The /katello/api/v2/systems/ requires system UUID twice as parameter

Solution Verified - Updated -

Issue

  • Unable to attach subscription to system using /katello/api/v2/systems/ REST API. It fails with error as below,
# curl -X PUT -u admin:redrhn -H "Content-Type:application/json" -k -d '{"service_level":"Self-Support"}'    --cacert ssl-build/katello-server-ca.crt     https://my.satellite.com/katello/api/v2/systems/ec250dc5-7923-43e9-92f3-cece9b9c44df

Even with correct system UUID mentioned I can see error as below,

{"displayMessage":"Missing values for system.","errors":["key not found: system"]}

Environment

  • Red Hat Satellite 6.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content