Get submission data
GET/submission/:submissionId
Get submission data
Request
Path Parameters
submissionId submissionIdrequired
The submissionId to get the data of
Responses
- 200
- 403
- 404
- 500
- default
Submission successfully retrieved
- application/json
- Schema
- Example (from schema)
Schema
voteCount integer
Integer representing amount of votes on submission
source string
Submission source
thumbnail string
Thumbnail image relative to the submission
description string
Submission description
commentCount integer
Integer representing amount of comments on submission
id string
Unique submission identifier
data string
Structural data about the submission
state string
Possible values: [draft
, pendingValidation
]
State in which the submission is
schemaId stringrequired
Unique identifier for Schema
ownerId string
Unique identifier of the owner
creatorDisplayThumbnailData string
Thumbnail data
createdAt date-time
Submission creation time
postTitle string
Submission title
computation string
Computation technique
name string
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"
}
Forbidden
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
{
"error": "string"
}
{
"error": "Forbidden access"
}
NotFound
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
{
"error": "string"
}
{
"error": "A mandatory item was not found"
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
{
"error": "string"
}
{
"error": "Internal Server Error"
}
Unexpected error
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
{
"error": "string"
}
{
"error": "An unexpected error occured"
}
Loading...