Create a new asset
POST/asset
Create a new asset
Request
- application/json
Body
Asset data
name assetName (string)required
Possible values: <= 32 characters
Name of the asset
tags string[]
Asset tags
url string
Asset URL
schemaId schemaId (string)
Unique identifier for Schema
description string
Asset description
projectId projectId (string)
Unique identifier for Project
data string
Asset data
type string
Responses
- 201
- 400
- 401
- 403
- 404
- 500
- default
Asset successfully created
- application/json
- Schema
- Example (from schema)
Schema
id string
Unique identifier for Asset
name assetName (string)required
Possible values: <= 32 characters
Name of the asset
tags string[]
Asset tags
url string
Asset URL
schemaId schemaId (string)
Unique identifier for Schema
description string
Asset description
projectId projectId (string)
Unique identifier for Project
createdAt date-time
Time representation of Asset creation
data string
Asset data
type string
{
"id": "a7qDzJ7XD",
"name": "Profile picture",
"tags": [
"adobeillustrator",
"border",
"imageborder"
],
"url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"schemaId": "s2S7KuFGc",
"description": "In today's video, I'll be showing you...",
"projectId": "p2Duhf5N6",
"createdAt": "2024-01-01T09:00:00.00Z",
"data": "{\"type\":\"youtube\",\"youtubeId\":\"e6pbkJ37U\"}",
"type": "tutorial"
}
Bad Request
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
{
"error": "string"
}
{
"error": "Bad Request"
}
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...