Update an asset
id is not patchable — it is referenced from relations and studio URLs.
Supply either fields (replaces the whole bag) or patchFields (merges over what is stored), never both: the pair is ambiguous and is refused rather than resolved by a precedence you would have to guess.
Authorization
BearerAuth API authentication via Authorization: Bearer <your-api-key>. Obtain
your API key from Config → API in the Aplas web app.
In: header
Path Parameters
The workspace's slug.
The asset type's slug.
The asset's slug. Unique within its asset type, not across the workspace — which is why assets are addressed beneath their type.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X PATCH "https://api.au.aplas.com/api/v3/workspaces/string/asset-types/string/assets/string" \ -H "Content-Type: application/json" \ -d '{}'{
"id": "string",
"name": "string",
"shortName": "string",
"description": "string",
"status": 0,
"fields": {},
"sample": true,
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}{
"statusCode": 403,
"error": "Forbidden",
"message": "The permissions of your API key only allow read-only/GET calls."
}{
"statusCode": 403,
"error": "Forbidden",
"message": "The permissions of your API key only allow read-only/GET calls."
}{
"statusCode": 403,
"error": "Forbidden",
"message": "The permissions of your API key only allow read-only/GET calls."
}{
"statusCode": 403,
"error": "Forbidden",
"message": "The permissions of your API key only allow read-only/GET calls."
}