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
schemaId stringrequired
Unique identifier for Schema
computation string
Computation technique
data string
Structural data about the submission
state string
Possible values: [draft
, pendingValidation
]
State in which the submission is
id string
Unique submission identifier
source string
Submission source
name submissionName (string)
Possible values: <= 32 characters
Name of the submission
createdAt date-time
Submission creation time
thumbnail string
Thumbnail image relative to the submission
voteCount integer
Integer representing amount of votes on submission
commentCount integer
Integer representing amount of comments on submission
description string
Submission description
postTitle string
Submission title
creatorDisplayThumbnailData string
Thumbnail data
ownerId string
Unique identifier of the owner
{
"schemaId": "s2S7KuFGc",
"computation": "default",
"data": "{\"schema\":\"facepaint\",\"children\":{\"albedo\":{\"schema\":\"albedo\",\"image\":\"https://file.playmakers.co/S1gf0qsVq/data/facepaint.png\"}}}",
"state": "draft",
"id": "S1gf0qsVq",
"source": "",
"name": "Screaming Facepaint",
"createdAt": "2024-09-11T10:30:56.168Z",
"thumbnail": "https://file.playmakers.co/S1gf0qsVq/thumbnail.png",
"voteCount": 0,
"commentCount": 0,
"description": "This is a new submission for a facepaint",
"postTitle": " Code face paint for the latest release",
"creatorDisplayThumbnailData": "",
"ownerId": "ab1a4ade-6eb9-40cd-bb3e-f274af238649"
}
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...