Mutation
createSocialProfileView
Create a saved Social Profile View for 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 CreateSocialProfileViewInput! required
- Mutation input.
- customAttributeConditions [CustomAttributeConditionInput!] default []
- Custom-attribute conditions to narrow the filter set.
- field String! required
- Key of the custom attribute to filter on, as returned by customAttributeSchemas (e.g. "sentiment").
- operator FilterOperator! required
- Comparison operator. The valid set depends on the attribute type; see FilterOperator.
- BETWEEN
- Inclusive range match for number and date types; value is { from, to }.
- CONTAINS
- For text-like types: substring match. For multi-select and list types: matches records containing ANY of the provided values (OR semantics).
- CONTAINS_ALL
- For multi-select custom attributes: matches records whose value array contains ALL of the provided values (AND semantics).
- DOES_NOT_CONTAIN
- For text-like types: excludes substring matches. For multi-select and list types: excludes records containing any of the provided values.
- ENDS_WITH
- Suffix match, for text-like types.
- EQUAL
- Equality, for number and date types.
- IS
- Exact match. For text and single-select types (for selects, value is the option ID) and BOOLEAN (value is true/false).
- IS_EMPTY
- Matches records with no value set. Value is ignored; pass null.
- IS_NOT
- Exact non-match, for text and single-select types.
- IS_NOT_EMPTY
- Matches records with any value set. Value is ignored; pass null.
- IS_RELATIVE_TO_TODAY
- Matches date values in a period relative to today; value is { relation: "past"|"this"|"next", period: "day"|"week"|"month"|"year" } (offset optional: a whole number of periods, at most 100 years; tz optional: an IANA time zone).
- LESS_THAN
- Strictly less than, for number and date types.
- LESS_THAN_OR_EQUAL
- Less than or equal, for number and date types.
- MORE_THAN
- Strictly greater than, for number and date types.
- MORE_THAN_OR_EQUAL
- Greater than or equal, for number and date types.
- NOT_EQUAL
- Inequality, for number and date types.
- STARTS_WITH
- Prefix match, for text-like types.
- type CustomAttributeType! required
- Type of the custom attribute, as returned by customAttributeSchemas. Determines the expected value shape and the valid operators.
- BOOLEAN
- True/false value.
- BOOLEAN_LIST
- List of true/false values.
- DATE
- Calendar date value (ISO 8601, no time component).
- DATETIME
- Date-and-time value (ISO 8601).
- DATETIME_LIST
- List of date-and-time values (ISO 8601).
- DATE_LIST
- List of calendar date values (ISO 8601, no time component).
- Email address value.
- MULTIPLE_SELECT
- Multiple choices from a predefined option list; the stored value is an array of option IDs.
- MULTIPLE_SELECT_V2
- Multiple choices from a predefined option list; the stored value is an array of option IDs. Successor revision of MULTIPLE_SELECT with identical filtering behavior.
- NUMBER
- Numeric value.
- NUMBER_LIST
- List of numeric values.
- PHONE
- Phone number value.
- SHIPPING_ADDRESS
- Structured shipping address. Not filterable: conditions with this type are rejected with a validation error; read the value from the record's customAttributes instead.
- SINGLE_SELECT_V2
- Single choice from a predefined option list; the stored value is an option ID.
- SINGLE_SELECT_V3
- Single choice from a predefined option list; the stored value is an option ID. Successor revision of SINGLE_SELECT_V2 with identical filtering behavior.
- TEXT
- Free-form text value.
- TEXT_LIST
- List of free-form text values.
- URL
- URL value.
- value JSON
- Comparison value; the shape depends on type: a string for text-like types, an option ID for single-selects, a number for NUMBER, an ISO 8601 string for dates, true/false for BOOLEAN, an array for multi-select and list types. BETWEEN takes { from, to }. Pass null for IS_EMPTY / IS_NOT_EMPTY.
- displaySettings SocialProfileViewDisplaySettingsInput
- Which columns the Archive app shows for the view. Settings you leave out are true.
- showCommentsTotal Boolean
- Show the total comments column.
- showContent Boolean
- Show the content column.
- showEmvTotal Boolean
- Show the total EMV (earned media value) column.
- showFollowersSocial Boolean
- Show the followers column.
- showFullName Boolean
- Show the full name column.
- showIgPosts Boolean
- Show the Instagram posts column.
- showIgReels Boolean
- Show the Instagram Reels column.
- showIgStories Boolean
- Show the Instagram Stories column.
- showLabels Boolean
- Show the labels column.
- showLastPost Boolean
- Show the last post column.
- showLastPulledAt Boolean
- Show the last refresh time column.
- showLikesTotal Boolean
- Show the total likes column.
- showPostsTotal Boolean
- Show the total posts column.
- showSharesTotal Boolean
- Show the total shares column.
- showTracking Boolean
- Show the tracking column.
- showTrackingUntil Boolean
- Show the tracking end date column.
- showTtStories Boolean
- Show the TikTok Stories column.
- showTtVideos Boolean
- Show the TikTok videos column.
- showViewsTotal Boolean
- Show the total views column.
- showYtShorts Boolean
- Show the YouTube Shorts column.
- showYtVideos Boolean
- Show the YouTube videos column.
- filters JSON! required
- Opaque filter blob, stored and echoed back. socialProfiles(presetId:) applies it only with applyViewFilters: true; otherwise it narrows only by this view's customAttributeConditions and sort. Use customAttributeConditions to narrow which social profiles the view returns. Pass {} unless cloning an existing view verbatim.
- name String! required
- Display name for the new social profile view. Stored trimmed of surrounding whitespace and invisible characters and NFC-normalized; a blank, over-255-character or control-character name is a userError on input.name.
- showReportingStats Boolean default true
- Whether reporting stats should be surfaced. Defaults to true.
- sort JSON default []
- Sort directives applied when listing social profiles via this view. Defaults to []. 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).
Returns
- socialProfileView SocialProfileView
- The newly created social profile view. Null on validation failure.
- 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 these stored values when the list is passed back ascustomAttributeConditionsthrough variables, but they validate it as they would any other input: a list the app saved can be refused (for example a list condition with no values, more conditions or values than the limits allow, or a condition on an attribute the workspace no longer has or whose type no longer matches), so check the userErrors when cloning a view this way. - displaySettings SocialProfileViewDisplaySettings!
- Which columns the Archive app shows for this view. Set with
displaySettingson create or update. - showCommentsTotal Boolean!
- Show the total comments column.
- showContent Boolean!
- Show the content column.
- showEmvTotal Boolean!
- Show the total EMV (earned media value) column.
- showFollowersSocial Boolean!
- Show the followers column.
- showFullName Boolean!
- Show the full name column.
- showIgPosts Boolean!
- Show the Instagram posts column.
- showIgReels Boolean!
- Show the Instagram Reels column.
- showIgStories Boolean!
- Show the Instagram Stories column.
- showLabels Boolean!
- Show the labels column.
- showLastPost Boolean!
- Show the last post column.
- showLastPulledAt Boolean!
- Show the last refresh time column.
- showLikesTotal Boolean!
- Show the total likes column.
- showPostsTotal Boolean!
- Show the total posts column.
- showSharesTotal Boolean!
- Show the total shares column.
- showTracking Boolean!
- Show the tracking column.
- showTrackingUntil Boolean!
- Show the tracking end date column.
- showTtStories Boolean!
- Show the TikTok Stories column.
- showTtVideos Boolean!
- Show the TikTok videos column.
- showViewsTotal Boolean!
- Show the total views column.
- showYtShorts Boolean!
- Show the YouTube Shorts column.
- showYtVideos Boolean!
- Show the YouTube videos column.
- filters JSON!
- Opaque filter blob, stored and echoed back. socialProfiles(presetId:) applies it only with applyViewFilters: true; otherwise it narrows only by this view's customAttributeConditions and sort. Use customAttributeConditions to filter which social profiles the view returns.
- group ViewGroup
- The primary group of this view: the first entry of
groups, which is the oldest group it belongs to. Null when the view is ungrouped. - collections [Collection!]!
- Collections that belong to this group, ordered by their position within the group.
- createdAt DateTimeWithZone!
- When the Collection was created.
- customAttributeOptionId ID
- Id of the option that represents this Collection in the ITEM
collectionscustom attribute schema (customAttributeSchemas(entity: ITEM)). It differs fromid: use it as the value of acollectionscustom-attribute condition and to match values in an item'scustomAttributes. Null for workspaces whose Collections use the older storage. - group ViewGroup ↻ circular view ViewGroup →
- Group this Collection belongs to, or null when ungrouped. Populated by
moveCollectionToGroup. Always null for workspaces whose Collections use the older storage. - 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.
- 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 these stored values when the list is passed back ascustomAttributeConditionsthrough variables, but they validate it as they would any other input: a list the app saved can be refused (for example a list condition with no values, more conditions or values than the limits allow, or a condition on an attribute the workspace no longer has or whose type no longer matches), so check the userErrors when cloning a view this way. - displaySettings ContentViewDisplaySettings!
- Which columns the Archive app shows for this view. Set with
displaySettingson create or update. - showComments Boolean!
- Show the comments column.
- showCreatorLabels Boolean!
- Show the creator labels column.
- showEmv Boolean!
- Show the EMV (earned media value) column.
- showFollowers Boolean!
- Show the followers count column.
- showLikes Boolean!
- Show the likes column.
- showPostDate Boolean!
- Show the post date column.
- showShares Boolean!
- Show the shares column.
- showSocialProfile Boolean!
- Show the social profile column.
- showViews Boolean!
- Show the views column: views and plays, the count the API returns as
impressions. - filters JSON!
- Opaque filter blob defining which items belong to the view.
- group ViewGroup ↻ circular view ViewGroup →
- The primary group of this view: the first entry of
groups, which is the oldest group it belongs to. Null when the view is ungrouped. - groups [ViewGroup!]! ↻ circular view ViewGroup →
- Every view group this view belongs to, oldest group first. The app lets a view sit in several groups;
addViewToGroupandremoveViewFromGroupchange one membership. Empty when the view is ungrouped. - id ID!
- Unique identifier (FilterPreset UUID). Use this with
items(presetId:). - name String!
- Display name of the view.
- position Int
- Display slot of this view; lower values come first. Inside a ViewGroup member list, or a list filtered by
groupId, it is the slot within that group. Elsewhere it is the slot in the default list of this view kind, set byreorderDefaultViewList. Null when the slot is unset. Hidden views are not exposed through the public API. - 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 these stored values when the list is passed back ascustomAttributeConditionsthrough variables, but they validate it as they would any other input: a list the app saved can be refused (for example a list condition with no values, more conditions or values than the limits allow, or a condition on an attribute the workspace no longer has or whose type no longer matches), so check the userErrors when cloning a view this way. - filters JSON!
- Opaque filter blob, stored and echoed back. creators(presetId:) applies it only with applyViewFilters: true; otherwise it narrows only by this view's customAttributeConditions and sort. Use customAttributeConditions to filter which creators the view returns.
- group ViewGroup ↻ circular view ViewGroup →
- The primary group of this view: the first entry of
groups, which is the oldest group it belongs to. Null when the view is ungrouped. - groups [ViewGroup!]! ↻ circular view ViewGroup →
- Every view group this view belongs to, oldest group first. The app lets a view sit in several groups;
addViewToGroupandremoveViewFromGroupchange one membership. Empty when the view is ungrouped. - 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.
- position Int
- Display slot of this view; lower values come first. Inside a ViewGroup member list, or a list filtered by
groupId, it is the slot within that group. Elsewhere it is the slot in the default list of this view kind, set byreorderDefaultViewList. Null when the slot is unset. Hidden views are not exposed through the public API. - 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.
- memberIds [ID!]!
- Ids of every member of this group in group order, across all kinds. It includes app view kinds the API does not model, such as Manage Rights views, and omits hidden views the app never lists. Pass it, reordered, to
reorderViewsInGroupto rewrite the full order. - name String!
- Display name of the group.
- socialProfileViews [SocialProfileView!]! ↻ circular view SocialProfileView →
- Social Profile Views that belong to this group, ordered by their position within the group.
- updatedAt DateTimeWithZone!
- When the group was last updated.
- groups [ViewGroup!]!
- Every view group this view belongs to, oldest group first. The app lets a view sit in several groups;
addViewToGroupandremoveViewFromGroupchange one membership. Empty when the view is ungrouped. - collections [Collection!]!
- Collections that belong to this group, ordered by their position within the group.
- createdAt DateTimeWithZone!
- When the Collection was created.
- customAttributeOptionId ID
- Id of the option that represents this Collection in the ITEM
collectionscustom attribute schema (customAttributeSchemas(entity: ITEM)). It differs fromid: use it as the value of acollectionscustom-attribute condition and to match values in an item'scustomAttributes. Null for workspaces whose Collections use the older storage. - group ViewGroup ↻ circular view ViewGroup →
- Group this Collection belongs to, or null when ungrouped. Populated by
moveCollectionToGroup. Always null for workspaces whose Collections use the older storage. - 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.
- 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 these stored values when the list is passed back ascustomAttributeConditionsthrough variables, but they validate it as they would any other input: a list the app saved can be refused (for example a list condition with no values, more conditions or values than the limits allow, or a condition on an attribute the workspace no longer has or whose type no longer matches), so check the userErrors when cloning a view this way. - displaySettings ContentViewDisplaySettings!
- Which columns the Archive app shows for this view. Set with
displaySettingson create or update. - showComments Boolean!
- Show the comments column.
- showCreatorLabels Boolean!
- Show the creator labels column.
- showEmv Boolean!
- Show the EMV (earned media value) column.
- showFollowers Boolean!
- Show the followers count column.
- showLikes Boolean!
- Show the likes column.
- showPostDate Boolean!
- Show the post date column.
- showShares Boolean!
- Show the shares column.
- showSocialProfile Boolean!
- Show the social profile column.
- showViews Boolean!
- Show the views column: views and plays, the count the API returns as
impressions. - filters JSON!
- Opaque filter blob defining which items belong to the view.
- group ViewGroup ↻ circular view ViewGroup →
- The primary group of this view: the first entry of
groups, which is the oldest group it belongs to. Null when the view is ungrouped. - groups [ViewGroup!]! ↻ circular view ViewGroup →
- Every view group this view belongs to, oldest group first. The app lets a view sit in several groups;
addViewToGroupandremoveViewFromGroupchange one membership. Empty when the view is ungrouped. - id ID!
- Unique identifier (FilterPreset UUID). Use this with
items(presetId:). - name String!
- Display name of the view.
- position Int
- Display slot of this view; lower values come first. Inside a ViewGroup member list, or a list filtered by
groupId, it is the slot within that group. Elsewhere it is the slot in the default list of this view kind, set byreorderDefaultViewList. Null when the slot is unset. Hidden views are not exposed through the public API. - 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 these stored values when the list is passed back ascustomAttributeConditionsthrough variables, but they validate it as they would any other input: a list the app saved can be refused (for example a list condition with no values, more conditions or values than the limits allow, or a condition on an attribute the workspace no longer has or whose type no longer matches), so check the userErrors when cloning a view this way. - filters JSON!
- Opaque filter blob, stored and echoed back. creators(presetId:) applies it only with applyViewFilters: true; otherwise it narrows only by this view's customAttributeConditions and sort. Use customAttributeConditions to filter which creators the view returns.
- group ViewGroup ↻ circular view ViewGroup →
- The primary group of this view: the first entry of
groups, which is the oldest group it belongs to. Null when the view is ungrouped. - groups [ViewGroup!]! ↻ circular view ViewGroup →
- Every view group this view belongs to, oldest group first. The app lets a view sit in several groups;
addViewToGroupandremoveViewFromGroupchange one membership. Empty when the view is ungrouped. - 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.
- position Int
- Display slot of this view; lower values come first. Inside a ViewGroup member list, or a list filtered by
groupId, it is the slot within that group. Elsewhere it is the slot in the default list of this view kind, set byreorderDefaultViewList. Null when the slot is unset. Hidden views are not exposed through the public API. - 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.
- memberIds [ID!]!
- Ids of every member of this group in group order, across all kinds. It includes app view kinds the API does not model, such as Manage Rights views, and omits hidden views the app never lists. Pass it, reordered, to
reorderViewsInGroupto rewrite the full order. - name String!
- Display name of the group.
- socialProfileViews [SocialProfileView!]! ↻ circular view SocialProfileView →
- Social Profile Views that belong to this group, ordered by their position within the group.
- updatedAt DateTimeWithZone!
- When the group was last updated.
- 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.
- position Int
- Display slot of this view; lower values come first. Inside a ViewGroup member list, or a list filtered by
groupId, it is the slot within that group. Elsewhere it is the slot in the default list of this view kind, set byreorderDefaultViewList. Null when the slot is unset. Hidden views are not exposed through the public API. - 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.
- 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.