query SegmentDefinitionById($id: ID!) {
segmentDefinitionById(id: $id) {
cardDefinitionId
createdAt
defaultContentFilterProperties
description
iconUrl
id
}
}{
"id": "id"
}{
"data": {
"segmentDefinitionById": {
"cardDefinitionId": "id",
"createdAt": "value",
"defaultContentFilterProperties": [
"string"
],
"description": "string",
"iconUrl": "string",
"id": "id"
}
}
}segmentDefinitionById
Gets a segment definition by its global id. Fails when no segment definition has it.
segmentDefinitionById(id: ID!): SegmentDefinition!Arguments
Global id of the segment definition (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 SegmentDefinitionById($id: ID!) {
segmentDefinitionById(id: $id) {
cardDefinitionId
createdAt
defaultContentFilterProperties
description
iconUrl
id
}
}{
"id": "id"
}{
"data": {
"segmentDefinitionById": {
"cardDefinitionId": "id",
"createdAt": "value",
"defaultContentFilterProperties": [
"string"
],
"description": "string",
"iconUrl": "string",
"id": "id"
}
}
}Was this page helpful?