Sorry, no results found for "".
Must be exactly "upload_tag"
.
The tag name
"Pictures of me"
Returns a resource object of type upload_tag.
POST https://site-api.datocms.com/upload-tags HTTP/1.1Authorization: Bearer YOUR-API-TOKENAccept: application/jsonX-Api-Version: 3Content-Type: application/vnd.api+json
{ "data": { "type": "upload_tag", "attributes": { "name": "Pictures of me" } }}
curl -g 'https://site-api.datocms.com/upload-tags' \ -X POST \ -H "Authorization: Bearer YOUR-API-TOKEN" \ -H "Accept: application/json" \ -H "X-Api-Version: 3" \ -H "Content-Type: application/vnd.api+json" \ --data-binary '{"data":{"type":"upload_tag","attributes":{"name":"Pictures of me"}}}'
await fetch("https://site-api.datocms.com/upload-tags", { method: "POST", headers: { Authorization: "Bearer YOUR-API-TOKEN", Accept: "application/json", "X-Api-Version": "3", "Content-Type": "application/vnd.api+json", }, body: JSON.stringify({ data: { type: "upload_tag", attributes: { name: "Pictures of me" } }, }),});
HTTP/1.1 200 OKContent-Type: application/jsonCache-Control: cache-control: max-age=0, private, must-revalidateX-RateLimit-Limit: 30X-RateLimit-Remaining: 28
{ "data": { "type": "upload_tag", "id": "42", "attributes": { "name": "Pictures of me" } }}