Skip to main content

Undo AI library organization

Removes only links created by this operation and restores only scalar
fields whose current revision and value still match the recorded effect.

1 min read
post/library/profiles/{studioId}/items/ai/{operationId}/undo
Request example
Response
post/library/profiles/{studioId}/items/ai/{operationId}/undo

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.
operationIdstringrequired#
Client-generated idempotency identifier for the AI operation.

Responses

application/json
Undo result.
dataobjectrequired#
Show child attributes
itemobjectrequired#
Show child attributes
idstringrequired#
studioIdstringrequired#
createdBystringrequired#
kindstringrequired#
primaryUrlstringrequired#
titlestringrequired#
statusstringrequired#
archivedAtstring#
nextActionstring#
revisionintegerrequired#

Range: >= 1

notestring#
thumbnailUrlstring#
emailReminderEnabledboolean#
emailReminderOffsetDaysinteger#
emailReminderTimestring#
emailReminderTimeZonestring#
visibilityenum<string>required#
Options:memberssubscribersfollowerspublic
createdAtstringrequired#
updatedAtstringrequired#
undoneCountintegerrequired#

Range: >= 0

skippedCountintegerrequired#

Range: >= 0

request_idstring#