Upload an asset file
PUT/asset/:assetId/upload
Upload an asset file
Request
Path Parameters
assetId stringrequired
ID of the asset to update
- multipart/form-data
Body
Asset data
files binary[]
Array of files to be uploaded
Responses
- 200
- 401
- 403
- 404
- default
Asset file successfully uploaded
- application/json
- Schema
- Example (from schema)
Schema
projectId projectId (string)
Unique identifier for Project
url string
Asset URL
type string
description string
Asset description
id string
Unique identifier for Asset
name assetName (string)required
Possible values: <= 32 characters
Name of the asset
schemaId schemaId (string)
Unique identifier for Schema
data string
Asset data
tags string[]
Asset tags
createdAt date-time
Time representation of Asset creation
{
"projectId": "p2Duhf5N6",
"url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"type": "tutorial",
"description": "In today's video, I'll be showing you...",
"id": "a7qDzJ7XD",
"name": "Profile picture",
"schemaId": "s2S7KuFGc",
"data": "{\"type\":\"youtube\",\"youtubeId\":\"e6pbkJ37U\"}",
"tags": [
"adobeillustrator",
"border",
"imageborder"
],
"createdAt": "2024-01-01T09:00:00.00Z"
}
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...