Mutation
createCollection
Create a Collection (a saved tag set) in the current workspace.
Arguments
Object, input and enum types open in place — use + to reveal their fields. A type that is already open above the row stops at a ↻ circular marker, and anything nested past the depth limit links out to its own page instead.
- input CreateCollectionInput! required
- Mutation input.
- name String! required
- Display name for the new Collection. Stored with surrounding whitespace and invisible characters removed and NFC-normalized; that stored form must be unique within the workspace (compared exactly, so names differing only in case are distinct).
Returns
- collection Collection
- The newly created Collection. Null on validation failure.
- createdAt DateTimeWithZone!
- When the Collection was created.
- group ViewGroup
- Group this Collection belongs to, or null when ungrouped. Populated by
moveCollectionToGroup. Always null for workspaces whose Collections use the older storage. - collections [Collection!]! ↻ circular view Collection →
- Collections that belong to this group, ordered by their position within the group.
- contentViews [ContentView!]!
- Content Views that belong to this group, ordered by their position within the group.
- createdAt DateTimeWithZone!
- When the view was created.
- customAttributeConditions JSON!
- Custom-attribute conditions narrowing the filter set, as stored:
operatorandtypehold the lowercase stored values (e.g. "is_not_empty", "text_list"), not the FilterOperator / CustomAttributeType names. The view create and update mutations accept this list back unchanged ascustomAttributeConditionswhen it is passed through variables, so a view can be cloned verbatim. - filters JSON!
- Opaque filter blob defining which items belong to the view.
- group ViewGroup ↻ circular view ViewGroup →
- Group this view belongs to, or null when the view is ungrouped. Populated by
moveContentViewToGroup. - id ID!
- Unique identifier (FilterPreset UUID). Use this with
items(presetId:). - name String!
- Display name of the view.
- showReportingStats Boolean!
- Whether reporting stats are surfaced in the UI for this view.
- sort JSON!
- Sort directives applied when listing items via this view. Each entry is { field, direction }:
fieldis one oftaken_at,merged_view_play_count,like_count,comment_count,share_count,earned_media_value,linear_virality,exponential_virality,resolved_virality,account_name,followers_count;directionis ASC or DESC (case-insensitive). - updatedAt DateTimeWithZone!
- When the view was last updated.
- createdAt DateTimeWithZone!
- When the group was created.
- creatorViews [CreatorView!]!
- Creator Views that belong to this group, ordered by their position within the group.
- createdAt DateTimeWithZone!
- When the view was created.
- customAttributeConditions JSON!
- Custom-attribute conditions narrowing the filter set, as stored:
operatorandtypehold the lowercase stored values (e.g. "is_not_empty", "text_list"), not the FilterOperator / CustomAttributeType names. The view create and update mutations accept this list back unchanged ascustomAttributeConditionswhen it is passed through variables, so a view can be cloned verbatim. - filters JSON!
- Opaque filter blob, stored and echoed back but not applied when reading the view: creators(presetId:) narrows only by this view's customAttributeConditions and sort. Use customAttributeConditions to filter which creators the view returns.
- group ViewGroup ↻ circular view ViewGroup →
- Group this view belongs to, or null when the view is ungrouped. Populated by
moveCreatorViewToGroup. - id ID!
- Unique identifier of this saved view. Use the returned id with
creators(presetId:)to fetch the view's creators. - name String!
- Display name of the view.
- showReportingStats Boolean!
- Whether reporting stats are surfaced in the UI for this view.
- sort JSON!
- Sort directives applied when listing creators via this view.
- updatedAt DateTimeWithZone!
- When the view was last updated.
- id ID!
- Unique identifier.
- name String!
- Display name of the group.
- socialProfileViews [SocialProfileView!]!
- Social Profile Views that belong to this group, ordered by their position within the group.
- createdAt DateTimeWithZone!
- When the view was created.
- customAttributeConditions JSON!
- Custom-attribute conditions narrowing the filter set, as stored:
operatorandtypehold the lowercase stored values (e.g. "is_not_empty", "text_list"), not the FilterOperator / CustomAttributeType names. The view create and update mutations accept this list back unchanged ascustomAttributeConditionswhen it is passed through variables, so a view can be cloned verbatim. - filters JSON!
- Opaque filter blob, stored and echoed back but not applied when reading the view: socialProfiles(presetId:) narrows only by this view's customAttributeConditions and sort. Use customAttributeConditions to filter which social profiles the view returns.
- group ViewGroup ↻ circular view ViewGroup →
- Group this view belongs to, or null when the view is ungrouped. Populated by
moveSocialProfileViewToGroup. - id ID!
- Unique identifier of this saved view. Use the returned id with
socialProfiles(presetId:)to fetch the view's social profiles. - name String!
- Display name of the view.
- showReportingStats Boolean!
- Whether reporting stats are surfaced in the UI for this view.
- sort JSON!
- Sort directives applied when listing social profiles via this view. Each entry is { field, direction }:
fieldis one ofmedia_items_taken_at_max,followers_count,source_tracking,source_content,source_tracking_until,source_last_pulled_at,account_name;directionis ASC or DESC (case-insensitive). - updatedAt DateTimeWithZone!
- When the view was last updated.
- updatedAt DateTimeWithZone!
- When the group was last updated.
- id ID!
- Unique identifier of the Collection in this workspace. Pass it to
addItemToCollections/removeItemFromCollectionsand tocollection(id:). - itemCount Int!
- Number of items in this workspace tagged with the Collection.
- name String!
- Display name of the Collection.
- updatedAt DateTimeWithZone!
- When the Collection was last updated.
- userErrors [UserError!]!
- List of user-facing validation errors. Empty on success.
- field [String!]
- Path to the input field that caused the error.
- message String!
- The error message.