REST / Tags / Create

URI

POST /wp-json/gh/v3/tags

Method

This endpoint supports the POST method.

Request

You can create single or multiple tags using this endpoint.

PARAM TYPE REQUIRED DESCRIPTION
tags array yes Tag name.

Example

Here is a full example of the POST request to create multiple tags using this endpoint.

{
    "tags": [
         "Tag 1",
         "Tag 2",
         "Tag 3"
    ]
}

Response

If the tags are added successfully you will receive a 200 OK response with the tag IDs. An example response is below.

{
    "tags": {
        "6": "Tag 1",
        "7": "Tag 2",
        "8": "Tag 3"
    },
    "status": "success"
}
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us