Archive API docs
    Jump to

    Narrow by kind with a prefix — q: queries, m: mutations, t: types, g: guides, f: fields and arguments.

    Input object

    CreateContentViewInput

    Input for the createContentView mutation.

    Fields

    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.

    customAttributeConditions [CustomAttributeConditionInput!] default []
    Custom-attribute conditions to narrow the filter set.
    displaySettings ContentViewDisplaySettingsInput
    Which columns the Archive app shows for the view. Settings you leave out are true.
    filter ItemFilterInput
    Typed filter defining which items belong to the view: the same ItemFilterInput items(filter:) takes. Preferred when composing a view. The view is stored the way the Archive app stores it, so it opens there with the same filters: filters comes back with camelCase keys and the app's enum spellings (platform: "tiktok", contentTypes: ["VIDEO"], crmUsageRightsStatus: ["In_Queue"]), and the date range, campaigns and, in a workspace on custom-attribute Collections, the collections come back as post_date, campaign_ids and collections entries in customAttributeConditions. The view matches the same items. A filter the app cannot show (socialProfileIds, brandRelatedOnly, provider INTERNAL, a collection id no collection option matches, both collection lists in a workspace on legacy Collections, collection ids in a workspace whose app reads collections from the other storage) is a userError; items(filter:) still searches by it. A customAttributeConditions entry on a field the filter already sets is a userError. Provide exactly one of filter or filters.
    filters JSON
    Filter blob defining which items belong to the view. Use it to clone an existing view: send its filters and customAttributeConditions together; prefer filter otherwise. The view is stored the way the Archive app stores it, so it opens there with the same filters: filters comes back with camelCase keys and the app's enum spellings (platform: "tiktok", contentTypes: ["VIDEO"], crmUsageRightsStatus: ["In_Queue"]), and the date range, campaigns and, in a workspace on custom-attribute Collections, the collections come back as post_date, campaign_ids and collections entries in customAttributeConditions. The view matches the same items. A filter the app cannot show (socialProfileIds, brandRelatedOnly, provider INTERNAL, a collection id no collection option matches, both collection lists in a workspace on legacy Collections, collection ids in a workspace whose app reads collections from the other storage) is a userError; items(filter:) still searches by it. A customAttributeConditions entry on a field the filter already sets is a userError. Provide exactly one of filter or filters.
    name String! required
    Display name for the new content 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 items via this view. Defaults to []. Provide at most one of sorting or sort. Each entry is { field, direction }: field is one of taken_at, merged_view_play_count, like_count, comment_count, share_count, earned_media_value, linear_virality, exponential_virality, resolved_virality, account_name, followers_count; direction is ASC or DESC (case-insensitive).
    sorting [ItemSortingInput!]
    Typed sort applied when listing items via this view: the same list items(sorting:) takes. Stored as sort ([{field, direction}]). Provide at most one of sorting or sort; with neither, the view stores [].