Get all submissions of userId, filter by projectId, state
GET/submissions/by/user
Get all submissions of userId, filter by projectId, state
Request
Query Parameters
Possible values: [draft
, pendingValidation
, submitted
, approved
, rejected
, pendingClaim
, rewarded
, claimed
]
Search for submission by name
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
- 401
- 403
- 500
- default
Submissions successfully retrieved
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Integer representing amount of votes on submission
Submission source
Thumbnail image relative to the submission
Submission description
Integer representing amount of comments on submission
Unique submission identifier
Structural data about the submission
Possible values: [draft
, pendingValidation
]
State in which the submission is
Unique identifier for Schema
Unique identifier of the owner
Thumbnail data
Submission creation time
Submission title
Computation technique
Submission name
[
{
"voteCount": 0,
"source": "",
"thumbnail": "https://file.playmakers.co/S1gf0qsVq/thumbnail.png",
"description": "This is a new submission for a facepaint",
"commentCount": 0,
"id": "S1gf0qsVq",
"data": "{\"schema\":\"facepaint\",\"children\":{\"albedo\":{\"schema\":\"albedo\",\"image\":\"https://file.playmakers.co/S1gf0qsVq/data/facepaint.png\"}}}",
"state": "draft",
"schemaId": "s2S7KuFGc",
"ownerId": "ab1a4ade-6eb9-40cd-bb3e-f274af238649",
"creatorDisplayThumbnailData": "",
"createdAt": "2024-09-11T10:30:56.168Z",
"postTitle": " Code face paint for the latest release",
"computation": "default",
"name": "Screaming Facepaint"
}
]
Unauthorized
- application/json
- Schema
- Example (from schema)
- Example
Schema
{
"error": "string"
}
{
"error": "Unauthorized access"
}
Forbidden
- application/json
- Schema
- Example (from schema)
- Example
Schema
{
"error": "string"
}
{
"error": "Forbidden access"
}
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"
}