Saasco logoSaasco logo
Saasco logoSaasco logo

Introduction

Quick StartWhat is Saasco?

Analytics

CRM

getList AttributesdelDelete AttributepostDelete Attributes

Email Marketing

Knowledge

Support

Projects

Attributes

Delete Attributes

The bulk form of Delete Attribute, removing several attributes from every contact in one call. Same asynchronous behaviour: one background job per attribute, returned as job handles. Cannot be undone.

POST
/projects/{projectId}/crm/attributes/bulk-delete

Authorization

Authorization
AuthorizationBearer <token>

In: header

Path Parameters

projectIdrequiredstring

ID of the project that owns the attributes.

Request Body

application/json

attributeDistinctIdsrequiredarray<string>

Distinct IDs of the attributes to delete.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://www.saasco.com/api/v2/projects/string/crm/attributes/bulk-delete" \  -H "Content-Type: application/json" \  -d '{    "attributeDistinctIds": [      "string"    ]  }'
[
  {
    "delete_id": "string",
    "id": "string",
    "import_id": "string",
    "job": {
      "created_at": "string",
      "datasource": {
        "id": "string",
        "name": "string"
      },
      "delete_condition": "string",
      "id": "string",
      "is_cancellable": true,
      "job_id": "string",
      "kind": "string",
      "started_at": "string",
      "status": "string",
      "updated_at": "string"
    },
    "job_id": "string",
    "job_url": "http://example.com",
    "status": "string"
  }
]
{
  "code": "BAD_REQUEST",
  "message": "Invalid input data",
  "issues": []
}
{
  "code": "UNAUTHORIZED",
  "message": "Authorization not provided",
  "issues": []
}
{
  "code": "FORBIDDEN",
  "message": "Insufficient access",
  "issues": []
}
{
  "code": "INTERNAL_SERVER_ERROR",
  "message": "Internal server error",
  "issues": []
}

Delete Attribute

Removes an attribute from every contact in the project, deleting that property's stored values. Runs as a background job. The response contains job handles rather than a finished result, so the attribute keeps appearing in queries until the job completes. Anything filtering on it, such as a dynamic list, will stop matching. Cannot be undone.

List All

Lists a project's contact lists with a total `count`. Narrow to one kind with `type`, or pass `contactId` to find the lists a particular contact belongs to.