Get all submissions of schemaId
GET/submissions/by/schema/:schemaId
Get all submissions of schemaId
Request
Path Parameters
The schemaId to grab data about
Query Parameters
Search for submission by name
Search for submission by state
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 projects per page (default is 10, 0 gets all results).
Possible values: [createdAt
, 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
- 500
- default
Submissions successfully retrieved
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Integer representing amount of votes on submission
Submission creation time
Thumbnail image relative to the submission
Submission title
Submission source
Submission description
Structural data about the submission
Unique submission identifier
Thumbnail data
Integer representing amount of comments on submission
Computation technique
Unique identifier for Schema
Possible values: [draft
, pendingValidation
]
State in which the submission is
Possible values: <= 32 characters
Name of the submission
Unique identifier of the owner
[
{
"voteCount": 0,
"createdAt": "2024-09-11T10:30:56.168Z",
"thumbnail": "https://file.playmakers.co/S1gf0qsVq/thumbnail.png",
"postTitle": " Code face paint for the latest release",
"source": "",
"description": "This is a new submission for a facepaint",
"data": "{\"schema\":\"facepaint\",\"children\":{\"albedo\":{\"schema\":\"albedo\",\"image\":\"https://file.playmakers.co/S1gf0qsVq/data/facepaint.png\"}}}",
"id": "S1gf0qsVq",
"creatorDisplayThumbnailData": "",
"commentCount": 0,
"computation": "default",
"schemaId": "s2S7KuFGc",
"state": "draft",
"name": "Screaming Facepaint",
"ownerId": "ab1a4ade-6eb9-40cd-bb3e-f274af238649"
}
]
Internal Server Error
- application/json
- Schema
- Example (from schema)
- Example
Schema
{
"error": "string"
}
{
"error": "Internal Server Error"
}
Unexpected error
- application/json
- Schema
- Example (from schema)
- Example
Schema
{
"error": "string"
}
{
"error": "An unexpected error occured"
}