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