ackDB
Create a segment
Creates a saved Segment from a name plus optional description, entityKind, filter, sort, and columns. The owner is stamped server-side from the caller's JWT (a client-supplied owner is ignored) and the segment is private to the owner by default (#284).
post/api/v1/ackdb/observe/segments
Request
- Base URLhttp://localhost:3009
- AuthHTTP bearer
Request body
Example request
{
"name": "Active paying companies",
"description": "Companies with a paid Stripe invoice",
"entityKind": "company",
"filter": {
"children": [
{
"traitKey": "hubspot_lifecycle_stage"
}
]
},
"sort": [
{
"field": "event_count"
}
],
"columns": [
{
"field": "name",
"frozen": true,
"width": 200
}
],
"baseSegmentId": "01J9Z8Q3K2X7M4N5P6R7S8T9V0"
}Response
Segment created.
Example response
{
"data": {
"id": "01J9Z8Q3K2X7M4N5P6R7S8T9V0",
"name": "Active paying companies",
"description": "Companies with a paid Stripe invoice",
"entityKind": "company",
"filter": {
"children": [
{
"traitKey": "hubspot_lifecycle_stage"
}
]
},
"sort": [
{
"field": "event_count"
}
],
"columns": [
{
"field": "name",
"frozen": true,
"width": 200
}
],
"ownerEmail": "rep@acme.com",
"access": "owner"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.