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