Create a new submission for schemaId
POST/submission
Create a new submission for schemaId
Request
- multipart/form-data
- application/json
Body
Submission data
Submission files to be uploaded
Possible values: [draft
, pendingValidation
]
State in which the submission is
Unique identifier for Schema
Submission description
Submission title
Submission name
Body
Submission data
Submission title
Submission name
Unique identifier for Schema
Submission description
Thumbnail data
Submission source
Possible values: [draft
, pendingValidation
]
State in which the submission is
Responses
- 201
- 400
- 401
- 403
- 404
- 429
- 500
- default
Submission successfully created
- application/json
- Schema
- Example (from schema)
Schema
Submission title
Thumbnail image relative to the submission
Unique identifier of the owner
Submission creation time
Unique submission identifier
Computation technique
Structural data about the submission
Submission name
Integer representing amount of votes on submission
Unique identifier for Schema
Integer representing amount of comments on submission
Submission description
Thumbnail data
Submission source
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"
}
Bad Request
- application/json
- Schema
- Example (from schema)
- Example
Schema
{
"error": "string"
}
{
"error": "Bad Request"
}
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"
}
Rate limit exceeded: 10 submissions/day
Internal Server Error
- application/json
- Schema
- Example (from schema)
- Example
Schema
{
"error": "string"
}
{
"error": "Internal Server Error"
}
Unexpected error
- application/json
- Schema
- Example (from schema)
- Example
Schema
{
"error": "string"
}
{
"error": "An unexpected error occured"
}