Create a tag
How to create a tag via API
To create a new tag, send a POST
request to the /api/tags
endpoint, passing the resource arguments in the request body.
Request
POST https://yourdomain.commercelayer.io/api/tags
Arguments
Body Parameter | Type | Required |
---|---|---|
type |
| Required |
attributes.name |
| Required |
attributes.reference |
| Optional |
attributes.reference_origin |
| Optional |
attributes.metadata |
| Optional |
Example
The following request creates a new tag:
Last updated