Request encoded variants
POST/api/v1/materials/:material_id/variants
Queues server-side encodes (basisu) of the material's runtime textures. Send either a preset or a
list of variants; textures the material has no source for are skipped. Requesting settings that
already have a ready file encodes a new version, and the current one is served until it is ready.
y_flip is the material's (change it with PATCH on the material). Answers 202 with the queued variants;
poll GET until each status is ready or failed. Allowed for the material's editors.
Request
Responses
- 202
- 403
- 404
- 422
- 503
Encodes queued
Not allowed to edit this material
Material not found
Unknown preset, nothing to encode, or every request invalid (then the body has variants and errors as for 202)
No texture encoder available on the job hosts