Skip to main content

Apply an AI-selected project to a task

Assigns an active project to an eligible parent task and its existing
subtasks in one transaction. The task timestamp and prior project must
still match the evaluated source.

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

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#
expectedProjectIdstringrequired#
projectIdstringrequired#
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#