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

    UpdateContentViewInput

    Partial-update input for the updateContentView mutation. Only provided fields are updated; omitted fields are left unchanged.

    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!]
    Custom-attribute conditions. When provided, replaces the existing list wholesale. An empty array clears all conditions.
    displaySettings ContentViewDisplaySettingsInput
    Column settings to change. Settings you leave out, or send as null, keep their value.
    filter ItemFilterInput
    Typed filter: the same ItemFilterInput items(filter:) takes. When provided, replaces the stored filter blob wholesale. 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. When the update leaves customAttributeConditions out, the conditions the filter sets replace the stored conditions on the same fields and the other stored conditions are kept; send customAttributeConditions to remove a stored date range. Provide at most one of filter or filters.
    filters JSON
    Filter blob. When provided, replaces the existing filter blob wholesale (no element-level merge). 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. When the update leaves customAttributeConditions out, the conditions the filter sets replace the stored conditions on the same fields and the other stored conditions are kept; send customAttributeConditions to remove a stored date range. Provide at most one of filter or filters.
    name String
    Display name. When provided, replaces the existing name, under the same rules as CreateContentViewInput.name; sending the current name back unchanged keeps it as stored.
    showReportingStats Boolean
    Whether reporting stats should be surfaced. When provided, replaces the existing flag.
    sort JSON
    Sort directives. When provided, replaces the existing sort wholesale. 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: the same list items(sorting:) takes. When provided, replaces the existing sort wholesale. Provide at most one of sorting or sort.