REST API V3 / Tags / Edit
URL
PUT /wp-json/gh/v3/tags
Method
This endpoint supports the PUT
method.
Request
This endpoint provides functionality to edit tags.
PARAM | TYPE | REQUIRED | DESCRIPTION |
tag_id |
int | yes | ID of a tag that you want to edit. |
tag_name |
string | no | Edited name of a tag. |
tag_description |
string | no | Edited description of a tag |
Example
Here is an example of a request body that updates the tag name and description.
{ "tag_id" : "5", "tag_name" : "test", "tag_description":"Test Tag" }
Response
If the request to the URI is successful you will get a 200 OK response with the status and update message.
{ "code": "success", "message": "Tag updated successfully." }