Update submission
PUT/submission/:submissionId
Update submission
Request
Path Parameters
The submissionId to update
- multipart/form-data
- application/json
Body
Submission data
Submission description
Possible values: <= 32 characters
Name of the submission
Possible values: [draft
, pendingValidation
, submitted
, approved
, rejected
]
The state of the submission.
Array of files to be uploaded
Submission title
Body
Submission data
Submission title
Possible values: [draft
, submitted
, approved
, rejected
, pendingValidation
]
The state of the submission.
Submission description
Submission name
Responses
- 200
- 401
- 403
- 404
- default
Submission successfully updated
- application/json
- Schema
- Example (from schema)
Schema
Thumbnail data
Thumbnail image relative to the submission
Submission source
Possible values: [draft
, pendingValidation
]
State in which the submission is
Submission title
Submission description
Possible values: <= 32 characters
Name of the submission
Unique submission identifier
Unique identifier for Schema
Computation technique
Integer representing amount of votes on submission
Submission creation time
Unique identifier of the owner
Integer representing amount of comments on submission
Structural data about the submission
{
"creatorDisplayThumbnailData": "",
"thumbnail": "https://file.playmakers.co/S1gf0qsVq/thumbnail.png",
"source": "",
"state": "draft",
"postTitle": " Code face paint for the latest release",
"description": "This is a new submission for a facepaint",
"name": "Screaming Facepaint",
"id": "S1gf0qsVq",
"schemaId": "s2S7KuFGc",
"computation": "default",
"voteCount": 0,
"createdAt": "2024-09-11T10:30:56.168Z",
"ownerId": "ab1a4ade-6eb9-40cd-bb3e-f274af238649",
"commentCount": 0,
"data": "{\"schema\":\"facepaint\",\"children\":{\"albedo\":{\"schema\":\"albedo\",\"image\":\"https://file.playmakers.co/S1gf0qsVq/data/facepaint.png\"}}}"
}
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"
}
NotFound
- application/json
- Schema
- Example (from schema)
- Example
Schema
{
"error": "string"
}
{
"error": "A mandatory item was not found"
}
Unexpected error
- application/json
- Schema
- Example (from schema)
- Example
Schema
{
"error": "string"
}
{
"error": "An unexpected error occured"
}