Skip to main content

Update Tag

PATCH/api/v1/dashboard/content/tags/{tag_id}

Overview

Updates an existing tag. Only the fields included in the request body are updated. Changing a tag name or slug automatically updates all posts that reference this tag.

Authentication

info

Bearer authentication required - Pass your credentials as Authorization: Bearer <client_id>:<api_key>:<api_secret>.

Headers

HeaderTypeRequiredDescription
AuthorizationstringYesBearer <client_id>:<api_key>:<api_secret>
Content-TypestringYesapplication/json

Path Parameters

ParameterTypeRequiredDescription
tag_idstring (UUID)YesThe unique identifier of the tag

Request Body

All fields are optional.

ParameterTypeDescription
namestringTag display name
slugstringURL-friendly slug
descriptionstringTag description

Response

Returns the full updated tag object.

Example Request

curl -X PATCH "https://spideriq.ai/api/v1/dashboard/content/tags/tag-004-uuid" \
-H "Authorization: Bearer $CLIENT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Lead Gen",
"description": "Updated description for lead generation tag"
}'

Example Response

{
"id": "tag-004-uuid",
"name": "Lead Gen",
"slug": "lead-generation",
"description": "Updated description for lead generation tag"
}

Status Codes

Status CodeMeaningDescription
200OKTag updated successfully
400Bad RequestInvalid field values
401UnauthorizedInvalid or missing Bearer token
404Not FoundTag not found or belongs to another client
409ConflictSlug already in use by another tag