Update a schema thumbnail
PUT/schema/:schemaId/thumbnail
Update a schema thumbnail
Request
Path Parameters
schemaId schemaIdrequired
The schemaId to update
- multipart/form-data
Body
Schema thumbnail
files binary[]
Thumbnail for the schema
Responses
- 200
- 401
- 403
- 404
- 500
- default
Schema successfully updated
- application/json
- Schema
- Example (from schema)
Schema
category object[]
Categories for schema
projectId projectId (string)required
Unique identifier for Project
categoryId string
Unique identifier for Category
id string
Unique identifier for Schema
displayInteractive string
voteThresholdSettings string
Vote threshold
approvalMethod string
tags string[]
postProcessing string
A json holding certain regulations for the post processing of submissions assigned to the schema
state schemaState (string)
Possible values: [draft
, open
, closed
]
description string
Possible values: <= 3000 characters
data stringrequired
type string
credits integer
The amount of project credits required to create a submission for this schema
displayThumbnail string
createdAt date-time
Time representation of schema creation
thumbnail urinullable
Url for schema's thumbnail
name schemaName (string)required
Possible values: <= 32 characters
Name of the schema
{
"category": [
{
"C12JOqkBM": "Potion"
},
{
"C4DiVkafk": "Speed Potion"
}
],
"projectId": "p2Duhf5N6",
"categoryId": "C16w81Bvr0",
"id": "s11EFBu2XW",
"displayInteractive": "{\"type\":\"DisplayBabylon\",\"lighting\":\"default\",...",
"voteThresholdSettings": "",
"approvalMethod": "manual",
"tags": [
"potion",
"health",
"speed"
],
"postProcessing": "{\"unity\":{\"createAssetBundle\":\"true\",...",
"state": "draft",
"description": "This is restores is a legendary potion that restores health and speed",
"data": "{\"label\":\"facepaint\",\"children\":{\"albedo\":{\"label\":\"albedo\",...",
"type": "material",
"credits": 20,
"displayThumbnail": "{\"type\":\"DisplayImagePostBlender\",\"width\":512,...",
"createdAt": "2024-01-01T09:00:00.00Z",
"thumbnail": "https://file.playmakers.co/s34hfnB4f/djJryHfgW.jpg",
"name": "string"
}
Unauthorized
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
{
"error": "string"
}
{
"error": "Unauthorized access"
}
Forbidden
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
{
"error": "string"
}
{
"error": "Forbidden access"
}
NotFound
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
{
"error": "string"
}
{
"error": "A mandatory item was not found"
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
{
"error": "string"
}
{
"error": "Internal Server Error"
}
Unexpected error
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
{
"error": "string"
}
{
"error": "An unexpected error occured"
}
Loading...