Tags
· Revision #2
Create Tag Endpoint
Structure
Tag
Name
|
Type
|
Description
|
Required
|
id |
int |
The id for the tag |
No |
name |
string |
The name of the tag |
Yes |
slug |
string |
The slug of the tag, if not present it is auto-generated from name |
Conditional |
reference |
string |
The reference of the tag |
No |
image |
object |
The Image of the tag |
No |
has_slug |
boolean |
Whether the tag has a slug or not (defaults to false unless slug is provided) |
No |
Image
Name
|
Type
|
Description
|
Required
|
src |
string |
The source url of the image |
Yes |
Example Request
POST /api/tag-groups/{id|name}/tags
{
"name": "Medium",
"slug": "med-ium"
}
Example Response
{
"tag": {
"id": 1
}
}