Managing a Portal Access Group Using Mashery V2 or V3 API
How to Assign a Plan to a Portal Access Group
PUT /packages/{id}/plans/{id}
{"roles":[{"id":"{id}","name":"","action":"register_keys"},{"id":"{id}
","name":"","action":"register_keys"}]}
Example:
Request URL: PUT /packages/edee1414-a06a-4639-a33f-f4653482532b/plans/0ed905cc-a5c0-4848-b618-5d3d0c848137
Request:
{
"roles": [
{
"id": "ec02df40-27b0-4d76-8bfd-fb166a4d180c",
"name": "",
"action": "register_keys"
}
]
}
Response:
{
"updated": "2022-05-05T12:10:24.194+0000",
"created": "2022-04-27T04:17:41.000+0000",
"listed": false,
"production": false,
"maxNumKeysAllowed": 4,
"numKeysBeforeReview": 0,
"qpsLimitCeiling": 2,
"rateLimitCeiling": 5000,
"rateLimitPeriod": "day",
"adminKeyProvisioningEnabled": true,
"qpsLimitExempt": false,
"qpsLimitKeyOverrideAllowed": true,
"rateLimitExempt": false,
"rateLimitKeyOverrideAllowed": true,
"responseFilterOverrideAllowed": true,
"selfServiceKeyProvisioningEnabled": true,
"name": "Pln1704",
"id": "0ed905cc-a5c0-4848-b618-5d3d0c848137",
"status": "active",
"description": "Test"
}
Docs Navigation
- API Documentation Portal
- IO Docs Definition
- Mashery API Documentation
- Mashery 3.0 API Guide
- Mashery 2.0 API Guide
- OAuth Supporting Methods
- Examples
- JSON RPC
- Authentication
- API Objects
- Fetching Objects
- Query Language
- Creating Objects
- Updating Objects
- Validating Fields
- Deleting Objects
- Applications
- General Object Methods
- Members
- Packages
- Plans
- Package Keys
- Keys
- Developer Classes
- Services
- Roles
- Mashery 2.0 Reporting API Guide
- Event Trigger API
- Differences between Roles and Portal Access Groups
- Managing a Portal Access Group Using Mashery V2 or V3 API
- Mashery Reporting Event Post API Guide
- Tips and Tricks
- Your Portal
- API Traffic Manager
- I/O Docs WSDL requirements