Saasco logoSaasco logo
Saasco logoSaasco logo

Introduction

Quick StartWhat is Saasco?

Analytics

CRM

getList TypespostCreate TypeputUpdate TypedelDelete TypegetList PreferencespostUpdate PreferencegetSubscribe StatuspostUpdate Subscribe Status

Email Marketing

Knowledge

Support

Projects

Notifications

Delete Type

Deletes a notification type along with every contact preference recorded against it. Contacts who had opted out of this category lose that record, so recreating the type later starts everyone from the default. Returns false instead of an error status if the delete fails. Cannot be undone.

DELETE
/projects/{projectId}/crm/notification-types/{notificationTypeId}

Authorization

Authorization
AuthorizationBearer <token>

In: header

Path Parameters

projectIdrequiredstring

ID of the project that owns the notification type.

notificationTypeIdrequiredstring

ID of the notification type to delete.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://www.saasco.com/api/v2/projects/string/crm/notification-types/string"
true
{
  "code": "BAD_REQUEST",
  "message": "Invalid input data",
  "issues": []
}
{
  "code": "UNAUTHORIZED",
  "message": "Authorization not provided",
  "issues": []
}
{
  "code": "FORBIDDEN",
  "message": "Insufficient access",
  "issues": []
}
{
  "code": "NOT_FOUND",
  "message": "Not found",
  "issues": []
}
{
  "code": "INTERNAL_SERVER_ERROR",
  "message": "Internal server error",
  "issues": []
}

Update Type

Updates a notification type's name or description. Existing contact preferences for it are preserved.

List Preferences

Lists one contact's per-type subscription preferences, for rendering a preference centre. Only types the contact has an explicit preference for are returned. Pair this with List Types to show categories they have never chosen. Public and unauthenticated; use `encrypted` when the contact ID comes from an emailed link. Returns 404 if the contact does not exist.