Tags
Create Tag
Changed onCreate a new tag
post/tags
Request
- Base URLhttps://api.buttondown.com/v1
- URLhttps://api.buttondown.com/v1/tags
- AuthAPI key in header Authorization
Headers
X-Buttondown-Collision-Behavior'no_op' | 'overwrite'
Behavior applied when a tag with the same name already exists on create.
The behavior to apply when a tag with the same name already exists. Defaults to "no_op", which returns a 400 error. Set to "overwrite" to update the existing tag with the supplied values and return it with a 200 status code instead.
Request body
Example request
{
"name": "VIP",
"color": "#FFD700"
}Response
OK
Changes
- warning
changed the pattern of the request property
from^[ -~]*[A-Za-z0-9][ -~]*$to^[^\x00-\x1f\x7f-\x9f]*[^\W_][^\x00-\x1f\x7f-\x9f]*$
- warning
- info
added the new optional
headerrequest parameterX-Buttondown-Collision-Behavior - info
added the non-success response with the status
- info
added the success response with the status
- info