Update Asset
/v1/assets/{assetId}Update an asset.
Authentication
Authorization Bearer — JWT session or sk-* API key.
Path Parameters
assetIdstringrequiredAsset ID.
groupId can move only ordinary USER_UPLOAD or AI_GENERATED assets to a compatible group. Real Face and Virtual Portrait assets cannot be moved with this endpoint. expiresAt is available only for ordinary assets that support expiration.
Setting status to active requires the asset's group to be active and the asset not to be expired.
Request Body
namestringOptional new display name.
groupIdstringOptional target asset group ID.
statusstringSet to active or inactive.
expiresAtstringOptional ISO-8601 expiration time.
Response
codeintegerResponse status code.
dataobjectUpdated asset record.
data.assetIdstringAsset public ID.
data.sharedbooleanWhether the asset is shared with the caller.
data.sharePermissionstringShare permission when shared.
data.shareExpiresAtstringShare expiry time when shared.
data.assetGroupIdstringAsset group public ID.
data.groupNamestringAsset group name.
data.mediaTypestringImage/video/audio.
data.assetKindstringAsset kind.
data.sourceTypestringAsset source type.
data.statusstringAsset status.
data.providerLastErrorobjectStable public error code and message, if available.
data.namestringDisplay name.
data.filenamestringOriginal filename.
data.mimeTypestringMIME type.
data.sizeBytesstringAsset size in bytes.
data.fileTypestringFile extension/format.
data.widthintegerWidth in pixels.
data.heightintegerHeight in pixels.
data.aspectRatiostringCalculated aspect ratio.
data.durationSecondsnumberMedia duration in seconds.
data.frameRatenumberVideo frame rate.
data.urlstringAccessible content URL.
data.thumbnailUrlstringThumbnail URL, if available.
data.expiresAtstringAsset expiry timestamp.
data.requestIdstringRequest ID from asset generation provenance.
data.modelNamestringModel name used to generate the asset.
data.modelTypestringModel type used to generate the asset.
data.createdAtstringCreate timestamp.
data.updatedAtstringUpdate timestamp.
msgstringResponse message.
serviceCodestring | nullService error code on failure.