--- title: Segment - GraphQL Admin description: A dynamic collection of customers based on specific criteria. api_version: 2024-10 api_name: admin type: object api_type: graphql source_url: html: 'https://shopify.dev/docs/api/admin-graphql/2024-10/objects/Segment' md: 'https://shopify.dev/docs/api/admin-graphql/2024-10/objects/Segment.txt' --- # Segment object Requires `read_customers` access scope. Also: The user must not have restricted access. A dynamic collection of customers based on specific criteria. ## Fields * creation​Date [Date​Time!](https://shopify.dev/docs/api/admin-graphql/2024-10/scalars/DateTime) non-null The date and time when the segment was added to the store. * id [ID!](https://shopify.dev/docs/api/admin-graphql/2024-10/scalars/ID) non-null A globally-unique ID. * last​Edit​Date [Date​Time!](https://shopify.dev/docs/api/admin-graphql/2024-10/scalars/DateTime) non-null The date and time when the segment was last updated. * name [String!](https://shopify.dev/docs/api/admin-graphql/2024-10/scalars/String) non-null The name of the segment. * query [String!](https://shopify.dev/docs/api/admin-graphql/2024-10/scalars/String) non-null A precise definition of the segment. The definition is composed of a combination of conditions on facts about customers. *** ## Map ### Fields and connections with this object * {}[DiscountCustomerSegments.segments](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/DiscountCustomerSegments#field-segments) * {}[PriceRuleCustomerSelection.segments](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/PriceRuleCustomerSelection#field-segments) * <->[SegmentConnection.nodes](https://shopify.dev/docs/api/admin-graphql/2024-10/connections/SegmentConnection#field-nodes) * {}[SegmentEdge.node](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/SegmentEdge#field-node) *** ## Queries * [segment](https://shopify.dev/docs/api/admin-graphql/2024-10/queries/segment) query The Customer Segment. * [segments](https://shopify.dev/docs/api/admin-graphql/2024-10/queries/segments) query A list of a shop's segments. *** ## \Segment Queries ### Queried by * \[segment](https://shopify.dev/docs/api/admin-graphql/2024-10/queries/Segment) * \[segments](https://shopify.dev/docs/api/admin-graphql/2024-10/queries/SegmentConnection) *** ## Mutations * [segment​Create](https://shopify.dev/docs/api/admin-graphql/2024-10/mutations/segmentCreate) mutation Creates a segment. * [segment​Update](https://shopify.dev/docs/api/admin-graphql/2024-10/mutations/segmentUpdate) mutation Updates a segment. *** ## <\~> Segment Mutations ### Mutated by * <\~>[segment​Create](https://shopify.dev/docs/api/admin-graphql/2024-10/mutations/segmentCreate) * <\~>[segment​Update](https://shopify.dev/docs/api/admin-graphql/2024-10/mutations/segmentUpdate) *** ## Interfaces * [Node](https://shopify.dev/docs/api/admin-graphql/2024-10/interfaces/Node) interface *** ## ||-Segment Implements ### Implements * ||-[Node](https://shopify.dev/docs/api/admin-graphql/2024-10/interfaces/Node)