Saasco logoSaasco logo
Saasco logoSaasco logo

Introduction

OverviewGetting startedWhat is Saasco?

SDK

Quick startTrackingIdentifyConfigurationWidgetsProperties

MCP

Quick startHow it worksAuthorizationTool reference

REST API

Quick start
Set up CRMLoad an audience
getList TypespostCreate TypeputUpdate TypedelDelete TypegetList PreferencesgetSubscribe Status
CRMNotifications

Update Type

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

PUT
/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 update.

Request Body

application/json

changesrequiredobject

Fields to change on the notification type.

namerequiredstring
descriptionstring | null

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PUT "https://www.saasco.com/api/v2/projects/string/crm/notification-types/string" \  -H "Content-Type: application/json" \  -d '{    "changes": {      "name": "string"    }  }'
{
  "id": "string",
  "createdAt": "string",
  "updatedAt": "string",
  "name": "string",
  "description": "string",
  "projectId": "string"
}
{
  "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": []
}

Create Type

Creates a notification type: a subscription category contacts can opt in and out of separately from the project-wide subscribe flag.

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.