Skip to content

Tags

Tags are labels you can attach to wins for filtering and organization.

GET /api/v1/tags

Returns a paginated list of tags with win counts, ordered alphabetically.

ParameterTypeDescription
pageintegerPage number (default: 1)
per_pageintegerItems per page (default: 25, max: 100)
Terminal window
curl https://app.myhypedoc.com/api/v1/tags \
-H "Authorization: Bearer YOUR_TOKEN"

PATCH /api/v1/tags/:id

Renames a tag. The new name applies to all wins that use this tag.

ParameterTypeRequiredDescription
tag[name]stringYesNew name for the tag (max 30 characters)
Terminal window
curl -X PATCH https://app.myhypedoc.com/api/v1/tags/1 \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"tag": {"name": "high-impact"}}'
StatusDescription
404Tag not found
422Validation error (e.g. name already taken, blank, or too long)

DELETE /api/v1/tags/:id

Deletes a tag. Wins that had this tag are kept; only the tag association is removed.

Terminal window
curl -X DELETE https://app.myhypedoc.com/api/v1/tags/3 \
-H "Authorization: Bearer YOUR_TOKEN"

Returns 204 No Content on success.

StatusDescription
404Tag not found