Saasco logoSaasco logo
Saasco logoSaasco logo

Introduction

Quick StartWhat is Saasco?

Analytics

CRM

getList AttributesdelDelete AttributepostDelete Attributes

Email Marketing

Knowledge

Support

Projects

Attributes

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.

DELETE
/projects/{projectId}/crm/attributes/{attributeDistinctId}

Authorization

Authorization
AuthorizationBearer <token>

In: header

Path Parameters

projectIdrequiredstring

ID of the project that owns the attribute.

attributeDistinctIdrequiredstring

Distinct ID of the attribute 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/attributes/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": "NOT_FOUND",
  "message": "Not found",
  "issues": []
}
{
  "code": "INTERNAL_SERVER_ERROR",
  "message": "Internal server error",
  "issues": []
}

List Attributes

Lists the contact attributes defined in this project: the property names available to filter and segment on, with their inferred types. Custom attributes appear once a contact has been written with that property; set `includeSystemAttributes` to also get Saasco's built-in `$`-prefixed ones.

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.