Add tags to keywords
Put static tags on keywords.
POST https://cotlet.dev/api/v1/accuranker/domains/{domain_id}/tags
write
Returns how many keywords were tagged and the tags applied. The tags are static and stay until removed. It reaches no one and is undone with remove_tags, so it does not wait for your OK.
Parameters
| Name | Type | Description |
|---|---|---|
| domain_id string required | string | Domain ID from list_domains. |
| keyword_ids string[] required | string[] | Keyword IDs from list_keywords. |
| tags string[] required | string[] | Tag names. A tag that does not exist is created. |
Request
curl -X POST https://cotlet.dev/api/v1/accuranker/domains/48213/tags \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"keyword_ids":["k_90311","k_90312","k_90340"],"tags":["pricing-pages"]}' result = client.call("accuranker", "add_tags", {"domain_id":"48213","keyword_ids":["k_90311","k_90312","k_90340"],"tags":["pricing-pages"]}) const result = await cotlet.call('accuranker', 'add_tags', {"domain_id":"48213","keyword_ids":["k_90311","k_90312","k_90340"],"tags":["pricing-pages"]}); cotlet call accuranker add_tags --data '{"domain_id":"48213","keyword_ids":["k_90311","k_90312","k_90340"],"tags":["pricing-pages"]}' Example response
{
"tagged_keywords": 3,
"tags_applied": [
"pricing-pages"
],
"tag_type": "static"
}