query SegmentDefinitionsById($ids: [ID!]!) {
segmentDefinitionsById(ids: $ids) {
cardDefinitionId
createdAt
defaultContentFilterProperties
description
iconUrl
id
}
}{
"ids": [
"id"
]
}{
"data": {
"segmentDefinitionsById": [
{
"cardDefinitionId": "id",
"createdAt": "value",
"defaultContentFilterProperties": [
"string"
],
"description": "string",
"iconUrl": "string",
"id": "id"
}
]
}
}segmentDefinitionsById
Gets several segment definitions by global id. Fails when any id doesn’t exist.
segmentDefinitionsById(ids: [ID!]!): [SegmentDefinition!]!Arguments
Global ids of the segment definitions (SegmentDefinition.id).
Returns
Global id of the card definition whose cards the segments pick (CardDefinition.id).
When the segment definition was created (UTC).
Ids stored on the segment definition. Can't be set through this API, and the API doesn't act on them.
Free-text note about the segment definition.
URL of the icon. Null when not set.
Global id of the segment definition: base64 of SegmentDefinition:<raw id>. segmentDefinitionById and the segment definition mutations take it. Criteria use the raw id (SegmentsCriteriaInput.segmentDefinitionId).
When the segment definition last changed (UTC).
Id of the user or application that last changed the segment definition.
Name of the segment definition.
Custom segment properties each segment can hold a value for, in Segment.properties. Can't be set through this API.
Segments in the segment definition, archived ones included.
Returns the elements in the list that come after the specified cursor.
Returns the elements in the list that come before the specified cursor.
Returns the first n elements from the list.
Returns the last n elements from the list.
query SegmentDefinitionsById($ids: [ID!]!) {
segmentDefinitionsById(ids: $ids) {
cardDefinitionId
createdAt
defaultContentFilterProperties
description
iconUrl
id
}
}{
"ids": [
"id"
]
}{
"data": {
"segmentDefinitionsById": [
{
"cardDefinitionId": "id",
"createdAt": "value",
"defaultContentFilterProperties": [
"string"
],
"description": "string",
"iconUrl": "string",
"id": "id"
}
]
}
}Was this page helpful?