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