Skip to content

Create a Tag

POST
https://mapi.storyblok.com/v1/spaces/:space_id/tags

Create a new tag and assign it to a story.

  • :space_id required number

    Numeric ID of a space.

  • name required string

    The name of the tag.

  • story_id number

    The ID of the tagged story.

  • tag object
    Show child properties
    • name string

      The name of the tag.

    • story_id number

      The ID of the tagged story.

curl "https://mapi.storyblok.com/v1/spaces/288868932106293/tags" \
-X POST \
-H "Authorization: YOUR_OAUTH_TOKEN" \
-H "Content-Type: application/json" \
-d "{\"tag\":{\"name\":\"Editor's choice\",\"story_id\":202}}"