Skip to main content

Apply project AI organization

Conditionally moves default-inbox task cascades, inserts unlinked resources, and stores risk.
1 min read
post/projects/profiles/{studioId}/{projectId}/ai-organize
Request example
Response
post/projects/profiles/{studioId}/{projectId}/ai-organize

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

Body

application/json
operationIdstringrequired#
leaseOwnerstringrequired#
fencingTokenintegerrequired#

Range: >= 1

expectedProjectUpdatedAtstringrequired#
tasksobject[]required#

Items: max 5

Show child attributes
taskIdstringrequired#
expectedUpdatedAtstringrequired#
riskobject#
Show child attributes
riskenum<string>required#
Options:on_trackneeds_attentionblocked
evidenceIdsstring[]required#

Items: max 20

sourceFingerprintstringrequired#

Length: min 1

Responses

application/json
Conditional organization result.
dataobjectrequired#
Show child attributes
statusenum<string>required#
Options:appliedpartialstaleineligibleunchanged
movedTaskIdsstring[]required#
riskFindingobject#
Show child attributes
riskenum<string>required#
Options:on_trackneeds_attentionblocked
evidenceIdsstring[]required#

Items: max 20

revisionintegerrequired#

Range: >= 1

dismissedAtstring#
sourceVersionintegerrequired#

Range: >= 1

skippedCountintegerrequired#

Range: >= 0

request_idstring#