How to
Step-by-step examples: read, post and edit stories, search by tags, query statistics, ask the AI.
11 articles
- Get a storyRead a story by its slug with the story query, or by its GraphQL ID with the node query.
- Get a story with assetsRead the files and links attached to a story, with fragments on FileAsset and URLAsset to get their download addresses and thumbnails.
- Post a storyCreate a story with the storyPost mutation: choose the space, the body format and whether to publish it.
- Post a story with a fileUpload a file to get a token, then create a story that uses the file as its main asset.
- Edit a storyCreate a new version of a story with the storyEdit mutation, for example to replace its main asset with another file.
- Change the tags of a storyFind or create the tags you need, then add and remove tags and hashtags on a story with the storyTag mutation.
- Search stories by tagsUse the search field on me to list the stories that carry a tag, limited to what the user is allowed to see.
- Change the owner of a storyMake another user the owner of a story with the storyChangeOwner mutation.
- Query statisticsRead activity figures for the whole platform, one space or one story: active users, activity over time, most active users.
- Ask Elium Answer a questionGet an AI answer from your knowledge base through the API, with the stories and files it was built from.
- Ask a Smart Assistant a questionList your Smart Assistants, then ask one of them a question through the API and read its sources.