ackDB

Create a trait definition

Creates a new trait definition. Use this to register custom traits beyond the defaults provided by source definitions. If the trait already exists, it will be updated.

post/api/v1/ackdb/schemas/traits

Request

  • Base URL
    http://localhost:3009
  • Auth
    HTTP bearer

Request body

traitKeystring required

Unique trait key identifier.

valueType'string' | 'number' | 'boolean' | 'date' | 'string_array' required

Data type for this trait's values.

sourcestring required

Source that produces this trait.

descriptionstring

Human/AI-readable description of what this trait means.

Example request

{
  "traitKey": "custom_health_score",
  "valueType": "number",
  "source": "custom",
  "description": "Overall account health score (0-100)"
}

Response

Trait definition created

Example response

{
  "data": {
    "traitKey": "stripe_plan",
    "valueType": "number",
    "source": "stripe",
    "description": "Monthly recurring revenue in cents from Stripe"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.