Toggle notification forward target
POST
/api/v2/client/applications/{application_id}/notification-forward-targets/{notificationForwardTarget_id}/toggle
const url = 'https://app.affisemmp.com/api/v2/client/applications/1/notification-forward-targets/16/toggle';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"enabled":false}'};
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/notification-forward-targets/16/toggle \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "enabled": false }'Turns forwarding to this endpoint on or off without deleting it.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” application_id
required
integer
The ID of the application.
Example
1 notificationForwardTarget_id
required
integer
The ID of the notificationForwardTarget.
Example
16Request Body required
Section titled “Request Body required ” Media type application/json
object
enabled
required
boolean
Example
falseResponses
Section titled “ Responses ” Media type application/json
object
data
object
id
integer
application_id
integer
platform
string
environment
string
url
string
secret
string
enabled
boolean
created_at
string
updated_at
string
Example
{ "data": { "id": 35, "application_id": 372, "platform": "apple", "environment": "prod", "url": "https://hirthe.com/notifications", "secret": "f0413209-aaf6-4561-bafd-8b70eef28ed9", "enabled": true, "created_at": "2026-11-25T12:56:08Z", "updated_at": "2026-11-25T12:56:08Z" }}