Open MariusJulius opened 10 months ago
@thenouan Went over the media endpoints as well. Currently I guess we need 2 things.
POST /media/bulk endpoint should also accept some field for passing the type of a file (help_file in this case). Can just be the
"custom_properties": { "type": "STYLE_GUIDE" },
field, which is returned, when we fetch help_files from the project endpoint.
Some PUT /media/ endpoint, so we can change 1 of the files. Currently It seems we just need the capability of changing the type of a help_file. Not sure if other changes to files will also be possible in the future
FE part initially implemented in 517 task, will apply any changes, after BE part is done
Tested in 14.12 - It's OK
Currently saving help_files + help_file_types while creating a new order works fine, but the type doesn’t seem to get updated, when updating (PUT https://api.dev.tolkevarav.eki.ee/translation-order/api/projects/)
request example.txt
There is media endpoint Can't update just file and type.