Tags

Create Tag

Create a new tag.

Required Fields:

  • name: Tag name
  • slug: URL slug (must be unique within the blog)

Response Codes:

  • 201: Tag created successfully
  • 409: Slug already exists
post/tags

Request

Request body

Example request

{
  "jsonapi": {
    "version": "1.0"
  },
  "data": {
    "attributes": {
      "name": "React",
      "slug": "react"
    }
  }
}

Response

Tag created successfully

Example response

{
  "jsonapi": {
    "version": "1.0"
  },
  "data": {
    "type": "tags",
    "attributes": {
      "name": "JavaScript",
      "slug": "javascript"
    }
  }
}

Changes

No recorded changes to this operation across all 4 revisions of this API.