Features
Update a feature
Updates an existing feature's properties including name, description, and privileges. The feature code itself cannot be changed. When updating privileges, the entire privileges array is replaced - to add or remove individual privileges, you must provide the complete desired list. Changes to features automatically propagate to all plans and subscriptions using them, though assigned values remain unchanged.
put/features/{feature_code}
Request
- Base URLhttps://api-m.sandbox.paypal.com
- AuthOAuth 2Client credentialsToken URL/api/oauth-proxyScopesread, write
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
feature_codestring required
The unique identifier code of the feature. This is the code that was specified when the feature was created.
Request body
Example request
{
"name": "Number of seats",
"description": "Number of users allowed in the account",
"privileges": [
{
"code": "MAX-USERS",
"name": "Maximum seats",
"value_type": "INTEGER",
"config": {
"select_options": [
"google",
"okta",
"azure"
]
}
}
]
}Response
Feature was successfully updated with the new configuration
Example response
{
"code": "USER-SEATS",
"name": "Number of seats",
"description": "Number of users allowed in the account",
"privileges": [
{
"code": "MAX-USERS",
"name": "Maximum seats",
"value_type": "INTEGER",
"config": {
"select_options": [
"google",
"okta",
"azure"
]
}
}
],
"created_at": "2023-10-01T12:00:00Z"
}Changes
No recorded changes to this operation across all 1 revision of this API.