REST API-How to create new tag?

Viewing 6 posts - 1 through 6 (of 6 total)
#189641

Steven Weng
Participant

Hi,
My payload as following:
{ “name”: “add-on”,
“slug”: “add-on”,
“description”: “”
}
but I got status 400.
The response as following:
{
“code”: “rest_empty_tag_term”,
“message”: “Must provide tag name.”,
“data”: {
“status”: 400
}
}
Please help.
Thanks.

#189655

Humayon
Spectator

Hello Steven,

Thank you for writing to us.

Regarding the Tags have you followed our documentation: https://imsas.github.io/wpdm-rest-api-docs/#get-all-tags appropriately?

Regards

#189667

Steven Weng
Participant
This reply has been marked as private.
#189671

Humayon
Spectator

Hello Steven,

Thank you for your response.

Can you please try one more time after following our documentation regarding the Tag creation here: https://imsas.github.io/wpdm-rest-api-docs/#create-a-tag

I hope it will work.

Regards

#189673

Steven Weng
Participant
This reply has been marked as private.
#189676

Humayon
Spectator

Hello there,

I will forward your thoughts to our related team and hopefully, they will adjust the doc accordingly.

Regards

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘REST API-How to create new tag?’ is closed to new replies.