How to change tags of a story

For this you will need the Graphql id of the story (see How to get a Story).

This example demonstrates how to add/remove Tags and Hashtags.

mutation storyTagExample($input: StoryPostInput!) {
  storyTag(input: $input) {
    story {
      tags {
        id
        name
      }
      hashtags {
        id
        name
      }
    }
  }
}

variables:

{
  "input": {
    "id": "STORY_ID",
    "addedTags": [
      "TAG_ID_1",
      "TAG_ID_2"
    ],
    "removedTags": [
      "TAG_ID_3"
    ],
    "addedHashtags": [
      "HASHTAG_ID_1"
    ],
    "removedHashtags": []
  }
}

Expected result:

{
  "data": {
    "storyTag": {
      "story": {
        "tags": [
          {"id": "TAG_ID_1", "name": "Tag 1"},
          {"id": "TAG_ID_1", "name": "Tag 2"}
        ],
        "hashtags": [
          {"id": "HASHTAG_ID_1", "name": "Hashtag 1"}
        ]
      }
    }
  }
}