Create a tag
POST
/admin/v1/tags
const url = 'https://your-store.example.com/admin/v1/tags';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"name":"example","slug":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://your-store.example.com/admin/v1/tags \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "slug": "example" }'Request Body required
Section titled “Request Body required ” Media type application/json
object
name
required
string
slug
string
Example generated
{ "name": "example", "slug": "example"}