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
url stringnullable
Updated asset URL
tags string[]nullable
Asset tags
description stringnullable
Updated asset description
data stringnullable
Updated asset data
name string
Updated asset name
Responses
- 200
- 401
- 403
- 404
- default
Asset successfully updated
- application/json
- Schema
- Example (from schema)
Schema
name stringrequired
Asset name
url string
Asset URL
schemaId schemaId (string)
Unique identifier for Schema
type string
data string
Asset data
id string
Unique identifier for Asset
tags string[]
Asset tags
projectId projectId (string)
Unique identifier for Project
createdAt date-time
Time representation of Asset creation
description string
Asset description
{
"name": "How to Add a Border to an Image",
"url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"schemaId": "s2S7KuFGc",
"type": "tutorial",
"data": "{\"type\":\"youtube\",\"youtubeId\":\"e6pbkJ37U\"}",
"id": "a7qDzJ7XD",
"tags": [
"adobeillustrator",
"border",
"imageborder"
],
"projectId": "p2Duhf5N6",
"createdAt": "2024-01-01T09:00:00.00Z",
"description": "In today's video, I'll be showing you..."
}
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...