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 applyfirst(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 resultssortBy(SortStoriesBy) — The sort keysortDir(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 resultssortBy(SortStoryItemsBy) — The sort keysortDir(SortDirection) — The sort directionstoryId(ID!) — An ID for a Story to filter bystorySectionId(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 Storydescription(String) — The description of the Storyitems([StoryItemInput!]) — Items to create the Story withtitle(String) — The title of the Story
Returns: CreateStoryPayload!
removeItemFromStorySection
Removes a StoryItem from a StorySection
Arguments
storyItemId(ID!) — The unique identifier of the StoryItemstorySectionId(ID!) — The unique identifier of the StorySection
Returns: RemoveItemFromStorySectionPayload!
removeSectionFromStory
Removes a StorySection from a Story
Arguments
storyId(ID!) — The unique identifier of the StorystorySectionId(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 StoryItemposition(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 StorySectionposition(NonNegativeInt!) — The position of the StorySection
Returns: ReorderStorySectionsPayload!
updateStory
Updates a Story
Arguments
description(String) — The description of the Storyid(ID!) — The unique identifier of the Storytitle(String) — The title of the Story
Returns: UpdateStoryPayload!
updateStoryItem
Updates a StoryItem
Arguments
comments(String) — The comments of the StoryItemid(ID!) — The unique identifier of the StoryItemstoryId(ID!) — The unique identifier of the Storytitle(String) — The title of the StoryItemuseForCoverPhoto(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 StorySectionid(ID!) — The unique identifier of the StorySectionstoryId(ID!) — The unique identifier of the Storytitle(String) — The title of the StorySection
Returns: UpdateStorySectionPayload!
Objects
AddSectionToStoryError
Fields
code(AddSectionToStoryErrorCode!)human_readable_message(String!)
AddSectionToStoryFailure
Fields
errors([AddSectionToStoryError!]!)
AddSectionToStorySuccess
Fields
operation(OperationStatus!)
CreateStoryError
Fields
code(CreateStoryErrorCode!)human_readable_message(String!)
CreateStoryFailure
Fields
errors([CreateStoryError!]!)
CreateStorySuccess
Fields
story(Story!)
RemoveItemFromStorySectionError
Fields
code(RemoveItemFromStorySectionErrorCode!)human_readable_message(String!)
RemoveItemFromStorySectionFailure
Fields
errors([RemoveItemFromStorySectionError!]!)
RemoveItemFromStorySectionSuccess
Fields
operation(OperationStatus!)
RemoveSectionFromStoryError
Fields
code(RemoveSectionFromStoryErrorCode!)human_readable_message(String!)
RemoveSectionFromStoryFailure
Fields
errors([RemoveSectionFromStoryError!]!)
RemoveSectionFromStorySuccess
Fields
operation(OperationStatus!)
ReorderStoryItemsError
Fields
code(ReorderStoryItemsErrorCode!)human_readable_message(String!)
ReorderStoryItemsFailure
Fields
errors([ReorderStoryItemsError!]!)
ReorderStoryItemsSuccess
Fields
operation(OperationStatus!)
ReorderStorySectionsError
Fields
code(ReorderStorySectionsErrorCode!)human_readable_message(String!)
ReorderStorySectionsFailure
Fields
errors([ReorderStorySectionsError!]!)
ReorderStorySectionsSuccess
Fields
operation(OperationStatus!)
Story
A collection of items to share
Fields
created_at(DateTime!) — The date the Story was createdcreated_in_team(Team) — The Team that the Story was created increator(User) — The User who created the Storydeleted_at(DateTime) — When the Story was deleteddescription(String) — The description of the Storyid(ID!) — The unique identifier of the Storypreview_image_url(String!) — The preview image URL of the Storypreview_link_url(String!) — The preview link URL of the Storysections([StorySection!]!) — The sections of the Storytags([String!]!) — The tags of the Storytitle(String) — The title of the Storytotal_items(Int!) — The number of items in the Storyupdated_at(DateTime!) — The date the Story was last updated
StoryConnection
A connection to a list of items.
Fields
edges([StoryEdge]) — A list of edges.pageInfo(PageInfo!) — Information to aid in pagination.total(Int)
StoryEdge
An edge in a connection.
Fields
StoryItem
An item within a Story
Fields
comments(String) — The comments of the StoryItemcreated_at(DateTime!) — The date the StoryItem was createdid(ID!) — The unique identifier of the StoryItemmedia(StoryItemMedia!) — The media of the StoryItemposition(Int) — The position of the StoryItemresource(StoryItemResource!) — The resource of the StoryItemsection(StorySection) — The StorySection the StoryItem belongs tostory(Story!) — The Story the StoryItem belongs totitle(String) — The title of the StoryItemupdated_at(DateTime!) — The date the StoryItem was last updated
StoryItemAsset
Fields
aspect_ratio(NonNegativeFloat)height(NonNegativeInt)id(ID!)link_url(URL)mime_type(String)price(Money)size_in_bytes(NonNegativeInt)title(String)type(StoryItemAssetType!)width(NonNegativeInt)
StoryItemConnection
A connection to a list of items.
Fields
edges([StoryItemEdge]) — A list of edges.pageInfo(PageInfo!) — Information to aid in pagination.
StoryItemEdge
An edge in a connection.
Fields
cursor(String!) — A cursor for use in paginationnode(StoryItem) — The item at the end of the edge
StoryItemMediaFile
Fields
StoryItemMediaImage
Fields
alt(String)aspect_ratio(Float)height(Int)id(ID!)preview_url(URL)source(URL)source_set(String)width(Int)
StoryItemMediaVideo
Fields
alt(String)aspect_ratio(Float)height(Int)id(ID!)preview_url(URL)source(URL)sources([StoryItemMediaVideoSource!]!)width(Int)
StoryItemMediaVideoSource
Fields
StorySection
A section with a Story
Fields
created_at(DateTime!) — The date the StorySection was createddescription(String) — The description of the StorySectionid(ID!) — The unique identifier of the StorySectionposition(Int) — The position of the StorySectionstory(Story!) — The Story the StorySection belongs totitle(String) — The title of the StorySectionupdated_at(DateTime!) — The date the StorySection was last updated
UpdateStoryError
Fields
code(UpdateStoryErrorCode!)human_readable_message(String!)
UpdateStoryFailure
Fields
errors([UpdateStoryError!]!)
UpdateStoryItemError
Fields
code(UpdateStoryItemErrorCode!)human_readable_message(String!)
UpdateStoryItemFailure
Fields
errors([UpdateStoryItemError!]!)
UpdateStoryItemSuccess
Fields
storyItem(StoryItem!)
UpdateStorySectionError
Fields
code(UpdateStorySectionErrorCode!)human_readable_message(String!)
UpdateStorySectionFailure
Fields
errors([UpdateStorySectionError!]!)
UpdateStorySectionSuccess
Fields
storySection(StorySection!)
UpdateStorySuccess
Fields
story(Story!)
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 StoryItemresource(StoryItemResourceInput) — The resource of the StoryItemtitle(String) — The title of the StoryItemuse_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 Assetimage_source_url(HTTPURL!) — The URL of an image associated to the resourceproduct_variant_id(ID) — The ID of a ProductVariant
Enums
AddSectionToStoryErrorCode
Values
CONCURRENCY_ERROR— The story has been updated since this request was initiatedFORBIDDEN— You do not have permission to perform this actionSTORY_NOT_FOUND— The story was not foundSTORY_SECTION_LIMIT_REACHED— The story has reached the maximum number of sections allowed
CreateStoryErrorCode
Values
ASSET_NOT_FOUND— The asset was not foundCHECKOUT_INTEGRATION_NOT_ENABLED— The checkout integration is not enabledCHECKOUT_INTEGRATION_NOT_FOUND— The checkout integration was not foundFORBIDDEN— You do not have permission to perform this actionINVALID_ITEM_RESOURCE— The item resource is invalidPRODUCT_VARIANT_NOT_FOUND— The product variant was not found
RemoveItemFromStorySectionErrorCode
Values
CONCURRENCY_ERROR— The story section has been updated since this request was initiatedFORBIDDEN— You do not have permission to perform this actionSTORY_SECTION_NOT_FOUND— The story section was not found
RemoveSectionFromStoryErrorCode
Values
CONCURRENCY_ERROR— The story has been updated since this request was initiatedFORBIDDEN— You do not have permission to perform this actionSTORY_NOT_FOUND— The story was not found
ReorderStoryItemsErrorCode
Values
CONCURRENCY_ERROR— The story section has been updated since this request was initiatedFORBIDDEN— You do not have permission to perform this actionSTORY_ITEM_NOT_FOUND— The story item was not found
ReorderStorySectionsErrorCode
Values
CONCURRENCY_ERROR— The story has been updated since this request was initiatedFORBIDDEN— You do not have permission to perform this actionSTORY_SECTION_NOT_FOUND— The story section was not found
SortStoriesBy
The available keys to sort Stories
Values
CREATED_ATUPDATED_AT
SortStoryItemsBy
The available keys to sort StoryItems
Values
POSITION
StoryItemAssetType
Values
GIFIMAGEOTHERPDFVIDEO
UpdateStoryErrorCode
Values
CONCURRENCY_ERROR— The story has been updated since this request was initiatedFORBIDDEN— You do not have permission to perform this actionSTORY_NOT_FOUND— The story was not found
UpdateStoryItemErrorCode
Values
CONCURRENCY_ERROR— The story item has been updated since this request was initiatedFORBIDDEN— You do not have permission to perform this actionSTORY_ITEM_NOT_FOUND— The story item was not foundSTORY_NOT_FOUND— The story was not found
UpdateStorySectionErrorCode
Values
CONCURRENCY_ERROR— The story section has been updated since this request was initiatedFORBIDDEN— You do not have permission to perform this actionSTORY_NOT_FOUND— The story was not foundSTORY_SECTION_NOT_FOUND— The story section was not found
