API Management 10.4 | Administering API Portal | Managing API Packages and Plans | Creating a Plan
 
Creating a Plan
You can create a plan using a REST service. The following section illustrates the structures for the REST service to create a plan http://<host>:<portnumber>/abs/apirepository/v1/plans .
* To create a plan using REST service
*HTTP Method: POST
Parameters: NA
Request Payload
{
"name": "Blue Diamond Offer",
"description": "Blue Diamond Offer 1 Description",
"icon": "https://d30y9cdsu7xlg0.cloudfront.net/png/18095-200.png",
"deprecated": false,
"cost": {
"currency": null,
"value": "1000",
"duration": null
},
"terms": "Blue Diamond 1 Terms",
"license": "Blue Diamond 1",
"security": [
"APIKey"
],
"enforcements": [{
"name": "EnforcementA1",
"properties": [{
"key": "softlimit",
"value": "value11"
}, {
"key": "hardlimit",
"value": "value12"
}]
}, {
"name": "EnforcementA2",
"properties": [{
"key": "days",
"value": "value2"
}]
}]
}
Response Payload
{
"id": "69ce6721-5337-11e6-3564-0050569d1bdd",
"name": "SAG_Plan Offer",
"_link": "/abs/apirepository/v1/plans/69ce6721-5337-11e6-3564-0050569d1bdd"
}

Copyright © 2015- 2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Innovation Release