Retrieve an existing asset
GET/asset/:assetId
Retrieve an existing asset
Request
Path Parameters
assetId assetIdrequired
ID of the asset to retrieve
Responses
- 200
- 401
- 403
- 404
- 500
- default
Asset successfully retrieved
- application/json
- Schema
- Example (from schema)
Schema
id string
Unique identifier for Asset
type string
createdAt date-time
Time representation of Asset creation
url string
Asset URL
schemaId schemaId (string)
Unique identifier for Schema
description string
Asset description
tags string[]
Asset tags
data string
Asset data
projectId projectId (string)
Unique identifier for Project
name stringrequired
Asset name
{
"id": "a7qDzJ7XD",
"type": "tutorial",
"createdAt": "2024-01-01T09:00:00.00Z",
"url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"schemaId": "s2S7KuFGc",
"description": "In today's video, I'll be showing you...",
"tags": [
"adobeillustrator",
"border",
"imageborder"
],
"data": "{\"type\":\"youtube\",\"youtubeId\":\"e6pbkJ37U\"}",
"projectId": "p2Duhf5N6",
"name": "How to Add a Border to an Image"
}
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"
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
{
"error": "string"
}
{
"error": "Internal Server Error"
}
Unexpected error
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
{
"error": "string"
}
{
"error": "An unexpected error occured"
}
Loading...