-
Notifications
You must be signed in to change notification settings - Fork 2
instance head tags
Stuart Runyan edited this page Aug 27, 2019
·
1 revision
HTML documents contain a <head>
tag which allows for child <meta>
, <link>
, <stylesheet>
and <script>
tags. The HeadTags SDK allows for CRUD operations to manage the available tags on a per content item basis.
All examples assume a properly authenticated SDK instance
Get all head tags:
try {
const res = await sdk.instance.getHeadTags();
} catch (err) {
console.error(err);
}
Get a single head tag by ZUID: :
const headTagZUID = `21-...`; // Head Tag ZUIDs begin with 21
try {
const res = await sdk.instance.getHeadTag(headTagZUID);
} catch (err) {
console.error(err);
}