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