Set SEO for a record
fabrement-set-seoSet the Yoast fields of ONE record (contentId), ONE term archive (termId — a category, tag or term of a custom taxonomy) or ONE post-type archive (archive: the post type, e.g. "book" for /books/): title, metaDesc, focusKeyword, canonical, noindex/nofollow, robotsAdvanced, schemaPageType/ArticleType, og*/twitter*. A term takes title, metaDesc, focusKeyword, canonical, noindex, breadcrumbTitle, cornerstone, og*/twitter* only. Send only what changes; "" or null clears a field. Refused when Yoast is not active. Custom schema nodes go through set-schema. Verify with get-seo {contentId} / {termId} / {archive}. Rules: get-skill-doc {id:"seo-contract"} — read it before the first call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | ||
| termId | No | A term (list-terms): the SEO of its archive page. | |
| archive | No | A post type (list-archive-records): the SEO of its archive — the record that describes it. | |
| noindex | No | ||
| ogTitle | No | ||
| metaDesc | No | ||
| nofollow | No | ||
| canonical | No | ||
| contentId | No | A page, post or custom record. Give this, termId OR archive. | |
| ogImageId | No | ||
| cornerstone | No | ||
| focusKeyword | No | ||
| twitterTitle | No | ||
| ogDescription | No | ||
| robotsAdvanced | No | ||
| schemaPageType | No | ||
| twitterImageId | No | ||
| breadcrumbTitle | No | ||
| schemaArticleType | No | ||
| twitterDescription | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| stored | No | ||
| termId | No | ||
| archive | No | ||
| written | Yes | ||
| warnings | No | ||
| contentId | No | ||
| effective | No |