Create a new schema for projectId
POST/schema
Create a new schema for projectId
Request
- application/json
Body
Schema data
Possible values: [draft
, open
, closed
]
Possible values: <= 3000 characters
Vote threshold
Unique identifier for Project
Unique identifier for Category
A json holding certain regulations for the post processing of submissions assigned to the schema
Responses
- 201
- 400
- 401
- 403
- 404
- 500
- default
Schema successfully created
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [draft
, open
, closed
]
Possible values: <= 3000 characters
Vote threshold
Unique identifier for Project
Unique identifier for Category
Unique identifier for Schema
Time representation of schema creation
Url for thumbnail
Categories for schema
A json holding certain regulations for the post processing of submissions assigned to the schema
{
"state": "draft",
"type": "material",
"description": "This is restores is a legendary potion that restores health and speed",
"approvalMethod": "manual",
"voteThresholdSettings": "",
"tags": [
"potion",
"health",
"speed"
],
"data": "{\"label\":\"facepaint\",\"children\":{\"albedo\":{\"label\":\"albedo\",...",
"projectId": "p2Duhf5N6",
"name": "Wild Flower Potion",
"categoryId": "C16w81Bvr0",
"id": "s11EFBu2XW",
"createdAt": "2024-01-01T09:00:00.00Z",
"thumbnail": "https://file.playmakers.co/p34hfnB4f/djJryHfgW.jpg",
"displayInteractive": "{\"type\":\"DisplayBabylon\",\"lighting\":\"default\",...",
"category": [
{
"C12JOqkBM": "Potion"
},
{
"C4DiVkafk": "Speed Potion"
}
],
"displayThumbnail": "{\"type\":\"DisplayImagePostBlender\",\"width\":512,...",
"postProcessing": "{\"unity\":{\"createAssetBundle\":\"true\",..."
}
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"
}
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"
}