Skip to main content

Apply an AI-selected task priority

Updates priority on an eligible task only while the timestamp and prior
priority still match the evaluated source.

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

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#
expectedPrioritystringrequired#
priorityenum<string>required#
Options:lowmediumhigh
sourceFingerprintstringrequired#

Length: min 1

Responses

application/json
Apply result; may be applied, unchanged, stale, or ineligible.
dataobjectrequired#
Show child attributes
statusenum<string>required#
Options:appliedunchangedstaleineligible
taskobject#
Show child attributes
idstringrequired#
projectIdstringrequired#
prioritystringrequired#
updatedAtstringrequired#
affectedChildCountintegerrequired#

Range: >= 0

request_idstring#