Update Asset Group
/v1/asset-groups/{groupId}Update an asset group.
Authentication
Authorization Bearer — JWT session or sk-* API key.
Path Parameters
groupIdstringrequiredAsset group ID.
status accepts active or inactive. Setting a group to inactive also makes the assets in that group inactive.
Only the group owner can change membership. addAssetIds and removeAssetIds support movable ordinary assets (USER_UPLOAD and AI_GENERATED); Real Face and Virtual Portrait assets cannot be moved through this endpoint.
Request Body
namestringOptional display name.
statusstringOptional status, such as active or inactive.
addAssetIdsarray<string>Optional asset IDs to add to the group.
removeAssetIdsarray<string>Optional asset IDs to remove from the group.
Response
codeintegerResponse status code.
dataobjectUpdated asset group.
data.assetGroupIdstringGroup public ID.
data.sharedbooleanWhether the group is shared with the caller.
data.sharePermissionstringShare permission when shared.
data.shareExpiresAtstringShare expiry time when shared.
data.namestringGroup name.
data.groupKindstringGroup kind.
data.statusstringGroup status.
data.verificationStatusstringReal Face verification status, when applicable.
data.activationAllowedbooleanWhether the group currently satisfies activation requirements.
data.activationBlockedReasonstringReason activation is blocked, when applicable.
data.assetCountintegerNumber of assets in the group.
data.h5LinkstringVerification link for REAL_FACE groups when pending.
data.defaultUploadTtlDaysintegerDefault upload TTL in days for USER_UPLOAD assets, if configured.
data.createdAtstringCreate timestamp.
data.updatedAtstringUpdate timestamp.
msgstringResponse message.
serviceCodestring | nullService error code on failure.