Stories

Stories, story sections, and story items.

Queries

searchStories

Searches Stories

Arguments

  • after (String) — A cursor to search after (only include first & after or last & before)
  • before (String) — A cursor to search before (only include first & after or last & before)
  • filters ([SearchFilterInput!]) — A set of filters to apply
  • first (Int) — The number of results to fetch when searching forward (only include first & after or last & before)
  • last (Int) — The number of results to fetch when searching backward (only include first & after or last & before)
  • search (String) — A search query to filter results
  • sortBy (SortStoriesBy) — The sort key
  • sortDir (SortDirection) — The sort direction

Returns: StoryConnection! — A connection to a list of items.

storiesByIds

A list of Stories by IDs

Arguments

  • ids ([ID!]!) — The IDs of the Stories

Returns: [Story]! — A collection of items to share

story

A single Story by ID

Arguments

  • id (ID!) — The unique identifier of the Story

Returns: Story — A collection of items to share

storyItem

A single StoryItem by ID

Arguments

  • id (ID!) — The unique identifier of the StoryItem

Returns: StoryItem — An item within a Story

storyItems

Lists StoryItems

Arguments

  • after (String) — A cursor to search after (only include first & after or last & before)
  • before (String) — A cursor to search before (only include first & after or last & before)
  • first (Int) — The number of results to fetch when searching forward (only include first & after or last & before)
  • last (Int) — The number of results to fetch when searching backward (only include first & after or last & before)
  • search (String) — A search query to filter results
  • sortBy (SortStoryItemsBy) — The sort key
  • sortDir (SortDirection) — The sort direction
  • storyId (ID!) — An ID for a Story to filter by
  • storySectionId (ID!) — An ID for a StorySection to filter by

Returns: StoryItemConnection! — A connection to a list of items.

storySection

A single StorySection by ID

Arguments

  • id (ID!) — The unique identifier of the StorySection

Returns: StorySection — A section with a Story

Mutations

addSectionToStory

Adds a StorySection to a Story

Arguments

  • storyId (ID!) — The unique identifier of the Story

Returns: AddSectionToStoryPayload!

createStory

Creates a Story

Arguments

  • checkoutIntegrationId (ID) — The ID of the checkout-enabled Integration to use for the Story
  • description (String) — The description of the Story
  • items ([StoryItemInput!]) — Items to create the Story with
  • title (String) — The title of the Story

Returns: CreateStoryPayload!

removeItemFromStorySection

Removes a StoryItem from a StorySection

Arguments

  • storyItemId (ID!) — The unique identifier of the StoryItem
  • storySectionId (ID!) — The unique identifier of the StorySection

Returns: RemoveItemFromStorySectionPayload!

removeSectionFromStory

Removes a StorySection from a Story

Arguments

  • storyId (ID!) — The unique identifier of the Story
  • storySectionId (ID!) — The unique identifier of the StorySection

Returns: RemoveSectionFromStoryPayload!

reorderStoryItems

Updates a StoryItem's position in a StorySection

Arguments

  • id (ID!) — The unique identifier of the StoryItem
  • position (NonNegativeInt!) — The position of the StoryItem

Returns: ReorderStoryItemsPayload!

reorderStorySections

Updates a StorySection's position in a Story

Arguments

  • id (ID!) — The unique identifier of the StorySection
  • position (NonNegativeInt!) — The position of the StorySection

Returns: ReorderStorySectionsPayload!

updateStory

Updates a Story

Arguments

  • description (String) — The description of the Story
  • id (ID!) — The unique identifier of the Story
  • title (String) — The title of the Story

Returns: UpdateStoryPayload!

updateStoryItem

Updates a StoryItem

Arguments

  • comments (String) — The comments of the StoryItem
  • id (ID!) — The unique identifier of the StoryItem
  • storyId (ID!) — The unique identifier of the Story
  • title (String) — The title of the StoryItem
  • useForCoverPhoto (Boolean) — Whether to use this item for the cover photo of the Story

Returns: UpdateStoryItemPayload!

updateStorySection

Updates a StorySection

Arguments

  • description (String) — The description of the StorySection
  • id (ID!) — The unique identifier of the StorySection
  • storyId (ID!) — The unique identifier of the Story
  • title (String) — The title of the StorySection

Returns: UpdateStorySectionPayload!

Objects

AddSectionToStoryError

Fields

AddSectionToStoryFailure

Fields

AddSectionToStorySuccess

Fields

CreateStoryError

Fields

CreateStoryFailure

Fields

CreateStorySuccess

Fields

RemoveItemFromStorySectionError

Fields

RemoveItemFromStorySectionFailure

Fields

RemoveItemFromStorySectionSuccess

Fields

RemoveSectionFromStoryError

Fields

RemoveSectionFromStoryFailure

Fields

RemoveSectionFromStorySuccess

Fields

ReorderStoryItemsError

Fields

ReorderStoryItemsFailure

Fields

ReorderStoryItemsSuccess

Fields

ReorderStorySectionsError

Fields

ReorderStorySectionsFailure

Fields

ReorderStorySectionsSuccess

Fields

Story

A collection of items to share

Fields

  • created_at (DateTime!) — The date the Story was created
  • created_in_team (Team) — The Team that the Story was created in
  • creator (User) — The User who created the Story
  • deleted_at (DateTime) — When the Story was deleted
  • description (String) — The description of the Story
  • id (ID!) — The unique identifier of the Story
  • preview_image_url (String!) — The preview image URL of the Story
  • preview_link_url (String!) — The preview link URL of the Story
  • sections ([StorySection!]!) — The sections of the Story
  • tags ([String!]!) — The tags of the Story
  • title (String) — The title of the Story
  • total_items (Int!) — The number of items in the Story
  • updated_at (DateTime!) — The date the Story was last updated

StoryConnection

A connection to a list of items.

Fields

StoryEdge

An edge in a connection.

Fields

  • cursor (String!) — A cursor for use in pagination
  • node (Story) — The item at the end of the edge

StoryItem

An item within a Story

Fields

  • comments (String) — The comments of the StoryItem
  • created_at (DateTime!) — The date the StoryItem was created
  • id (ID!) — The unique identifier of the StoryItem
  • media (StoryItemMedia!) — The media of the StoryItem
  • position (Int) — The position of the StoryItem
  • resource (StoryItemResource!) — The resource of the StoryItem
  • section (StorySection) — The StorySection the StoryItem belongs to
  • story (Story!) — The Story the StoryItem belongs to
  • title (String) — The title of the StoryItem
  • updated_at (DateTime!) — The date the StoryItem was last updated

StoryItemAsset

Fields

StoryItemConnection

A connection to a list of items.

Fields

StoryItemEdge

An edge in a connection.

Fields

  • cursor (String!) — A cursor for use in pagination
  • node (StoryItem) — The item at the end of the edge

StoryItemMediaFile

Fields

StoryItemMediaImage

Fields

StoryItemMediaVideo

Fields

StoryItemMediaVideoSource

Fields

StorySection

A section with a Story

Fields

  • created_at (DateTime!) — The date the StorySection was created
  • description (String) — The description of the StorySection
  • id (ID!) — The unique identifier of the StorySection
  • position (Int) — The position of the StorySection
  • story (Story!) — The Story the StorySection belongs to
  • title (String) — The title of the StorySection
  • updated_at (DateTime!) — The date the StorySection was last updated

UpdateStoryError

Fields

UpdateStoryFailure

Fields

UpdateStoryItemError

Fields

UpdateStoryItemFailure

Fields

UpdateStoryItemSuccess

Fields

UpdateStorySectionError

Fields

UpdateStorySectionFailure

Fields

UpdateStorySectionSuccess

Fields

UpdateStorySuccess

Fields

Unions

AddSectionToStoryPayload

Possible types

CreateStoryPayload

Possible types

RemoveItemFromStorySectionPayload

Possible types

RemoveSectionFromStoryPayload

Possible types

ReorderStoryItemsPayload

Possible types

ReorderStorySectionsPayload

Possible types

StoryItemMedia

Possible types

StoryItemResource

Possible types

UpdateStoryItemPayload

Possible types

UpdateStoryPayload

Possible types

UpdateStorySectionPayload

Possible types

Input Objects

StoryItemInput

An item for a Story

Fields

  • comments (String) — The comments of the StoryItem
  • resource (StoryItemResourceInput) — The resource of the StoryItem
  • title (String) — The title of the StoryItem
  • use_for_cover_photo (Boolean) — Whether to use this item for the cover photo of the Story

StoryItemResourceInput

A resource for a StoryItem

Fields

  • asset_id (ID) — The ID of an Asset
  • image_source_url (HTTPURL!) — The URL of an image associated to the resource
  • product_variant_id (ID) — The ID of a ProductVariant

Enums

AddSectionToStoryErrorCode

Values

  • CONCURRENCY_ERROR — The story has been updated since this request was initiated
  • FORBIDDEN — You do not have permission to perform this action
  • STORY_NOT_FOUND — The story was not found
  • STORY_SECTION_LIMIT_REACHED — The story has reached the maximum number of sections allowed

CreateStoryErrorCode

Values

  • ASSET_NOT_FOUND — The asset was not found
  • CHECKOUT_INTEGRATION_NOT_ENABLED — The checkout integration is not enabled
  • CHECKOUT_INTEGRATION_NOT_FOUND — The checkout integration was not found
  • FORBIDDEN — You do not have permission to perform this action
  • INVALID_ITEM_RESOURCE — The item resource is invalid
  • PRODUCT_VARIANT_NOT_FOUND — The product variant was not found

RemoveItemFromStorySectionErrorCode

Values

  • CONCURRENCY_ERROR — The story section has been updated since this request was initiated
  • FORBIDDEN — You do not have permission to perform this action
  • STORY_SECTION_NOT_FOUND — The story section was not found

RemoveSectionFromStoryErrorCode

Values

  • CONCURRENCY_ERROR — The story has been updated since this request was initiated
  • FORBIDDEN — You do not have permission to perform this action
  • STORY_NOT_FOUND — The story was not found

ReorderStoryItemsErrorCode

Values

  • CONCURRENCY_ERROR — The story section has been updated since this request was initiated
  • FORBIDDEN — You do not have permission to perform this action
  • STORY_ITEM_NOT_FOUND — The story item was not found

ReorderStorySectionsErrorCode

Values

  • CONCURRENCY_ERROR — The story has been updated since this request was initiated
  • FORBIDDEN — You do not have permission to perform this action
  • STORY_SECTION_NOT_FOUND — The story section was not found

SortStoriesBy

The available keys to sort Stories

Values

  • CREATED_AT
  • UPDATED_AT

SortStoryItemsBy

The available keys to sort StoryItems

Values

  • POSITION

StoryItemAssetType

Values

  • GIF
  • IMAGE
  • OTHER
  • PDF
  • VIDEO

UpdateStoryErrorCode

Values

  • CONCURRENCY_ERROR — The story has been updated since this request was initiated
  • FORBIDDEN — You do not have permission to perform this action
  • STORY_NOT_FOUND — The story was not found

UpdateStoryItemErrorCode

Values

  • CONCURRENCY_ERROR — The story item has been updated since this request was initiated
  • FORBIDDEN — You do not have permission to perform this action
  • STORY_ITEM_NOT_FOUND — The story item was not found
  • STORY_NOT_FOUND — The story was not found

UpdateStorySectionErrorCode

Values

  • CONCURRENCY_ERROR — The story section has been updated since this request was initiated
  • FORBIDDEN — You do not have permission to perform this action
  • STORY_NOT_FOUND — The story was not found
  • STORY_SECTION_NOT_FOUND — The story section was not found