Update an asset
Update the name of an owned asset.
Basic information
| Item | Value |
|---|---|
| Method | POST |
| Path | /hyperone/xapi/api/ark_asset/{shortId} |
| Authentication | AGIOne System API AK/SK + HMAC-SHA256 |
shortId is the four-digit asset service identifier supplied by the instance administrator, not an asset, group or model ID.
Request parameters
Headers
| Header | Required | Description |
|---|---|---|
| Authorization | Yes | HMAC-SHA256 signature computed with AGIOne AK/SK. |
| Host | Yes | Actual API host, matching the signed host. |
| X-Date | Yes | UTC time, YYYYMMDDTHHMMSSZ. |
| X-Content-Sha256 | Used by the example | Lowercase SHA-256 hex digest of the actual UTF-8 body. |
| Content-Type | Required for POST | application/json |
| Accept | Recommended | application/json |
| Accept-Language | No | zh-CN / en-US |
If the deployment requires a routing header, use the name and value supplied by its administrator. Attribution headers cannot change the caller’s user, tenant or project.
Query parameters
| Parameter | Required | Value |
|---|---|---|
| Action | Yes | UpdateAsset |
| Version | Recommended | 2024-01-01 |
Body
| Parameter | Type | Required | Description |
|---|---|---|---|
| Id | String | Yes | Asset ID. |
| Name | String | No | New name, up to 64 characters; this operation renames the asset. |
ProjectName can be omitted. If provided, it must be default (case-sensitive). It is the upstream resource project, not an AGIOne business project.
Example body
This illustrates the field structure. Replace resource identifiers and URLs with values available to the caller.
{
"Id": "asset-example",
"Name": "portrait-example-updated"
}Response parameters
Read successful data from Result; use ResponseMetadata.RequestId for tracing. Depend on the documented fields and ignore additional fields. This differs from the Platform API status/result envelope.
| Field | Type | Description |
|---|---|---|
| Id | String | Updated asset ID. |
Example success shape
{
"ResponseMetadata": {
"RequestId": "request-example",
"Action": "UpdateAsset",
"Version": "2024-01-01"
},
"Result": {
"Id": "asset-example"
}
}Access scope and error handling
Access follows the System AK/SK owner’s user and tenant. A personal system credential does not grant access to project assets or another user’s assets. Keep the same shortId and user throughout the flow.
Error handling and troubleshooting
Reference
Upstream field reference: Update an asset.