Misc

Promote an API-generated history item to a permanent web asset (Roles: user)

API/MCP generations expire 7 days after creation (their files live under the api/ storage prefix, which is lifecycle-pruned). Keeping an item copies its files out of the api/ prefix, rewrites the stored URLs, and clears the api flag - after which it behaves exactly like a studio generation: permanent, visible in the default library view, and usable in projects.

post/generation-history/keep

Request body

idstring required

GenerationHistory id of the API-generated item to keep

Response

Success

_idstring
user_idstring
type'generated_image' | 'generated_game' | 'three_d_asset' | 'video' | 'spritesheet' | 'audio' | 'map'
dateinteger
apiboolean
request_idstring
deletedboolean
help_requested_atinteger
help_messagestring

Changes

Changed in 1 of the 8 revisions of this API.1