Get all assets of a project
GET/assets/by/project/:projectId
Get all assets of a project
Request
Path Parameters
The projectId to grab data about
Query Parameters
The tags of the assets to grab
The type of the assets to grab
Search by start date
Search by end date
Possible values: >= 1
Default value: 1
Specify the page number for pagination (default is 1).
Default value: 10
Specify the number of assets per page (default is 10, 0 gets all results).
Possible values: [createdAt
, type
, name
, state
]
Field to order the results by (e.g., 'createdAt', 'ownerId'). Default is 'createdAt'.
Possible values: [asc
, desc
]
Default value: desc
'asc' for ascending or 'desc' for descending order. Default is 'desc'.
Responses
- 200
- 404
- default
List of assets for a projectId
- application/json
- Schema
- Example (from schema)
- Example
Schema
Array [
]
Unique identifier for Asset
Time representation of Asset creation
Asset URL
Unique identifier for Schema
Asset description
Asset tags
Asset data
Unique identifier for Project
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"
}
]
[
{
"url": "https://example.com/assets/medieval-sword.fbx",
"createdAt": "2024-01-02T10:00:00.00Z",
"schemaId": "null",
"description": "A high-quality 3D model of a medieval sword, perfect for fantasy RPGs.",
"id": "apitCBWUR",
"type": "gameAsset",
"tags": [
"3D model",
"sword",
"medieval",
"fantasy"
],
"data": "{\"mesh\":{\"vertices\":[[-1.0,1.0,0.0],[1.0,1.0,0.0],[1.0,-1.0,0.0],[-1.0,-1.0,0.0]],\"faces..",
"projectId": "p2Duhf5N6",
"name": "Medieval Sword"
},
{
"projectId": "p2Duhf5N6",
"name": "Medieval Castle",
"tags": [
"3D model",
"castle",
"medieval",
"strategy"
],
"data": "{\"mesh\":{\"vertices\":[[-1.0,1.0,0.0],[1.0,1.0,0.0],[1.0,-1.0,0.0],[-1.0,-1.0,0.0]],\"faces..",
"type": "gameAsset",
"id": "a18xjUYAN",
"description": "A realistic 3D model of a medieval castle, suitable for strategy games.",
"url": "https://example.com/assets/medieval-castle.fbx",
"createdAt": "2024-01-04T12:00:00.00Z",
"schemaId": "null"
}
]
NotFound
- application/json
- Schema
- Example (from schema)
- Example
Schema
{
"error": "string"
}
{
"error": "A mandatory item was not found"
}
Unexpected error
- application/json
- Schema
- Example (from schema)
- Example
Schema
{
"error": "string"
}
{
"error": "An unexpected error occured"
}