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