/produce

This endpoint is used to produce a new version of the file. It allows to crop and rotate images. The new file gets a new id. The produce_version setting from the parent is inherited.

Differs from easydb 5: easydb 5 accepts a description field (optional l10n) in the produce body; fylr ignores it — the request only reads eas_parent_id, format and transform.

POST /eas/produce

post
Authorizations
AuthorizationstringRequired

Access token in the Authorization header: Authorization: Bearer <token>.

Query parameters
obj_uuidstringOptional

The _uuid of the object the file is linked into. This is used for the permission check.

Body
eas_parent_idnumber · int64Optional

The file "original" the new produced version should be created from.

formatstring · enumOptional

The target format of the produced file. Defaults to the extension of the file parent.

Possible values:
Responses
200

The newly created file will be returned.

application/json
objectOptional

The file rendering in long format.

Last updated