Update application subscriptions
POST
/api/v2/client/applications/{application_id}/subscriptions
const url = 'https://app.affisemmp.com/api/v2/client/applications/1/subscriptions';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"subscriptions":["example"],"paddle":{"webhook_secret":"b"}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://app.affisemmp.com/api/v2/client/applications/1/subscriptions \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "subscriptions": [ "example" ], "paddle": { "webhook_secret": "b" } }'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” application_id
required
integer
The ID of the application.
Example
1Request Body
Section titled “Request Body ” Media type application/json
object
subscriptions
Array<string>
paddle
object
webhook_secret
Must not be greater than 255 characters.
string
Example
bResponses
Section titled “ Responses ” Media type application/json
object
message
string
Example
{ "message": "Application subscriptions successfully updated"}