Update an existing asset
PUT/asset/:assetId
Update an existing asset
Request
Path Parameters
assetId assetIdrequired
ID of the asset to update
- application/json
Body
Asset update data
data stringnullable
Updated asset data
name assetName (string)
Possible values: <= 32 characters
Name of the asset
description stringnullable
Updated asset description
tags string[]nullable
Asset tags
url stringnullable
Updated asset URL
Responses
- 200
- 401
- 403
- 404
- default
Asset successfully updated
- application/json
- Schema
- Example (from schema)
Schema
url string
Asset URL
description string
Asset description
type string
id string
Unique identifier for Asset
projectId projectId (string)
Unique identifier for Project
data string
Asset data
createdAt date-time
Time representation of Asset creation
tags string[]
Asset tags
schemaId schemaId (string)
Unique identifier for Schema
name assetName (string)required
Possible values: <= 32 characters
Name of the asset
{
"url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"description": "In today's video, I'll be showing you...",
"type": "tutorial",
"id": "a7qDzJ7XD",
"projectId": "p2Duhf5N6",
"data": "{\"type\":\"youtube\",\"youtubeId\":\"e6pbkJ37U\"}",
"createdAt": "2024-01-01T09:00:00.00Z",
"tags": [
"adobeillustrator",
"border",
"imageborder"
],
"schemaId": "s2S7KuFGc",
"name": "Profile picture"
}
Unauthorized
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
{
"error": "string"
}
{
"error": "Unauthorized access"
}
Forbidden
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
{
"error": "string"
}
{
"error": "Forbidden access"
}
NotFound
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
{
"error": "string"
}
{
"error": "A mandatory item was not found"
}
Unexpected error
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
{
"error": "string"
}
{
"error": "An unexpected error occured"
}
Loading...