Update a segment
Use this method to update a segment.
Authorizations:
Scopes:
Request rate limit:
path Parameters
segmentId required | string Example: 42 A unique segment identifier. |
Request Body schema:
application/jsonname required | string A unique segment name. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
description | string Segment description. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
query required | object Allows to filter persons using simple queries. Supported logical operators
Supported comparison operators
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
events | Array of objects List of events that persons should match. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
|
Responses
OK
Bad Request
Unauthorized
Forbidden
Not Found
Too Many Requests
Internal Server Error
Request samples
- Payload
- cURL
- Java
- C#
- Go
- Python
- PHP
- JavaScript
- NodeJs
- Ruby
{- "name": "VIP Alex Clients",
- "description": "Persons named Alex with tag \"VIP Client\"",
- "query": {
- "#and": [
- {
- "firstName": "Alex"
}, - {
- "#contains": {
- "tags": "VIP Client"
}
}
]
}, - "events": [
- {
- "definitionId": "addedToCart",
- "occurrenceCondition": {
- "operation": "IS",
- "times": 5
}, - "timelineCondition": {
- "occurred": "ALL",
- "operator": "BETWEEN",
- "start": 60,
- "end": 30,
- "units": "DAYS"
}, - "payloadConditions": [
- {
- "attribute": "itemId",
- "operator": "EQ",
- "value": "10001"
}
]
}
]
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 429
- 500
{- "id": 42,
- "name": "VIP Alex Clients",
- "description": "Persons named Alex with tag \"VIP Client\"",
- "query": {
- "#and": [
- {
- "firstName": "Alex"
}, - {
- "#contains": {
- "tags": "VIP Client"
}
}
]
}, - "events": [
- {
- "definitionId": "addedToCart",
- "occurrenceCondition": {
- "operation": "IS",
- "times": 5
}, - "timelineCondition": {
- "occurred": "ALL",
- "operator": "BETWEEN",
- "start": 60,
- "end": 30,
- "units": "DAYS"
}, - "payloadConditions": [
- {
- "attribute": "itemId",
- "operator": "EQ",
- "value": "10001"
}
]
}
], - "createdAt": "2025-03-30T00:35:33Z",
- "modifiedAt": "2025-03-30T00:35:33Z"
}
Need assistance
Encountering issues
What's new? Check out
Unsure about a term? See