Skip to main content

Add AI-selected tags to a task

Adds existing general or tasks tags without replacing current links.
The task timestamp and document version are revalidated, duplicates are
ignored, and the task's five-tag limit is enforced transactionally.

1 min read
post/tasks/profiles/{studioId}/{taskId}/ai-tags
Request example
Response
post/tasks/profiles/{studioId}/{taskId}/ai-tags

Authorization

Authorizationstringheaderrequired#
Better Auth session token. Go resolves the token in the session table and maps it to users.id via auth_user_id. The profile is taken from the path param :studioId when applicable.

Path parameters

studioIdstringrequired#
Studio identifier used for authorization and operation scope.
taskIdstringrequired#

Body

application/json
operationIdstringrequired#
leaseOwnerstringrequired#
fencingTokenintegerrequired#

Range: >= 1

expectedUpdatedAtstringrequired#
expectedDocumentVersionintegerrequired#

Range: >= 0

tagIdsstring[]required#

Items: 1–5, unique

sourceFingerprintstringrequired#

Length: min 1

Responses

application/json
Apply result with the tag identifiers actually added.
dataobjectrequired#
Show child attributes
statusenum<string>required#
Options:appliedpartialunchangedstaleineligible
addedTagIdsstring[]required#
skippedCountintegerrequired#

Range: >= 0

request_idstring#