Add a subscription of a specific type
Changed onCreate a new subscription to watch a tag and get notifications of changes
Request
- Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
- URL: /subscriptions
- Auth: none declared
Headers
An account name to change the resource scope of the request to that account, if permissions allow (admin only)
Request body
Example request
{
"subscription_value": "subscription_value",
"subscription_key": "subscription_key",
"subscription_type": "subscription_type"
}Response
Subscription add success
Example response
[
{
"subscription_id": "subscription_id",
"subscription_value": "subscription_value",
"active": true,
"subscription_key": "subscription_key",
"subscription_type": "subscription_type",
"userId": "userId"
}
]Changes
- breaking
removed the enum value
analysis_updateof the request property - breaking
removed the enum value
policy_evalof the request property - breaking
removed the enum value
repo_updateof the request property - breaking
removed the enum value
tag_updateof the request property - breaking
removed the enum value
vuln_updateof the request property - info
removed the
analysis_updateenum value from the/response property for the response status - info
removed the
policy_evalenum value from the/response property for the response status - info
removed the
repo_updateenum value from the/response property for the response status - info
removed the
tag_updateenum value from the/response property for the response status - info
removed the
vuln_updateenum value from the/response property for the response status
- breaking
- breaking
request property
was restricted to a list of enum values - warning
added the new
analysis_updateenum value to the/response property for the response status - warning
added the new
policy_evalenum value to the/response property for the response status - warning
added the new
repo_updateenum value to the/response property for the response status - warning
added the new
tag_updateenum value to the/response property for the response status - warning
added the new
vuln_updateenum value to the/response property for the response status - info
added the new
analysis_updateenum value to the request property - info
added the new
policy_evalenum value to the request property - info
added the new
repo_updateenum value to the request property - info
added the new
tag_updateenum value to the request property - info
added the new
vuln_updateenum value to the request property
- breaking