How to create a new Service Contract (Subscription) using the Red Hat 3scale API?

Solution Verified - Updated -

Issue

  • The 3scale admin API docs list the following endpoints related to service subscriptions:

    GET /admin/api/accounts/{account_id}/service_contracts.xml
    DELETE /admin/api/accounts/{account_id}/service_contracts/{id}.xml
    

    This allows me to view or delete service_contract records. But I also need to be able to create them to fully automate the creation of a new API (Service). How can I do this?

Environment

  • Red Hat 3scale API Management
    • 2.X On-premises
    • SaaS

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