Delete an event subscription
DELETE
/v2/models/{model_id}/event-subscriptions/{subscription_id}
const url = 'https://staging-pie.streamline.enterprises/v2/models/model_price_reco_v1/event-subscriptions/6ba7b811-9dad-11d1-80b4-00c04fd430c8';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://staging-pie.streamline.enterprises/v2/models/model_price_reco_v1/event-subscriptions/6ba7b811-9dad-11d1-80b4-00c04fd430c8 \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” model_id
required
string
Example
model_price_reco_v1 subscription_id
required
string format: uuid
Example
6ba7b811-9dad-11d1-80b4-00c04fd430c8Responses
Section titled “ Responses ”Event subscription deleted
Missing or invalid Authorization bearer token, expired token, or token rejected by the
authorization layer (e.g. API Gateway JWT authorizer or application validation).
Media type application/json
object
success
required
boolean
message
required
Human-readable error message
string
Example
{ "success": false}Authenticated caller lacks the permission required for this operation.
Media type application/json
object
success
required
boolean
message
required
Human-readable error message
string
Example
{ "success": false}Requested resource was not found.
Media type application/json
object
success
required
boolean
message
required
Human-readable error message
string
Example
{ "success": false}