Assets
Rename an Asset
Renames an Asset. The name is what the console shows and what a provider receives at future registrations. AdCrunch trims the name, and a name that is empty after the trim clears it back to the original filename. A Registration already made keeps the name it was given. An Asset belonging to another organization is reported as missing, so the surface cannot be used to discover that an id is real.
patch/assets/{id}
Request
- Base URL: https://api.adcrunch.dev
- URL: https://api.adcrunch.dev/assets/{id}
- Auth: HTTP bearer
Path parameters
idstring required
The Asset id.
Request body
Example request
{
"name": "Spring sale 9:16"
}Response
The Asset, with its new name. It carries no Registration — read the Asset for those.
Example response
{
"contentHash": "9d2f41b7c6e8a35014f7b2d9c3e6a810",
"createdAt": 1790000000000,
"createdBy": "usr_2e5b84",
"deletedAt": null,
"durationMs": 15000,
"filename": "spring-sale.mp4",
"height": 1920,
"id": "ast_7c1e9a",
"key": "org_3a7f10/ast_7c1e9a",
"kind": "video",
"mimeType": "video/mp4",
"name": "Spring sale 9:16",
"organizationId": "org_3a7f10",
"sizeBytes": 24117248,
"status": "ready",
"updatedAt": 1790000120000,
"width": 1080
}Changes
No recorded changes to this operation across all 1 revision of this API.