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 Project
Asset data
Unique identifier for Asset
Asset URL
Unique identifier for Schema
Time representation of Asset creation
Asset tags
Asset description
Asset name
[
{
"projectId": "p2Duhf5N6",
"data": "{\"type\":\"youtube\",\"youtubeId\":\"e6pbkJ37U\"}",
"id": "a7qDzJ7XD",
"url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"schemaId": "s2S7KuFGc",
"type": "tutorial",
"createdAt": "2024-01-01T09:00:00.00Z",
"tags": [
"adobeillustrator",
"border",
"imageborder"
],
"description": "In today's video, I'll be showing you...",
"name": "How to Add a Border to an Image"
}
]
[
{
"name": "Medieval Sword",
"createdAt": "2024-01-02T10:00:00.00Z",
"type": "gameAsset",
"tags": [
"3D model",
"sword",
"medieval",
"fantasy"
],
"description": "A high-quality 3D model of a medieval sword, perfect for fantasy RPGs.",
"projectId": "p2Duhf5N6",
"id": "apitCBWUR",
"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..",
"url": "https://example.com/assets/medieval-sword.fbx",
"schemaId": "null"
},
{
"name": "Medieval Castle",
"createdAt": "2024-01-04T12:00:00.00Z",
"type": "gameAsset",
"tags": [
"3D model",
"castle",
"medieval",
"strategy"
],
"description": "A realistic 3D model of a medieval castle, suitable for strategy games.",
"projectId": "p2Duhf5N6",
"id": "a18xjUYAN",
"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..",
"url": "https://example.com/assets/medieval-castle.fbx",
"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"
}