Release version: β / RCversion
Can I register or update content via API using the files and images of draft-saved content as they are?
Yes.
You can register or update content via API by reusing the files and images of draft-saved content as they are, without uploading them again.
Specification
The Topics::draft_details API response (the same applies to data pending approval) now includes the file_id of the files and images saved as a draft.
"images": [
{
"id": "210861_ext_05_0",
"url": "https://.../files/temp/t=pv_.../topics/2c36f971ab1f93a1ecc0f1b21fe8673f/210861_ext_5_0.jpg",
"desc": "",
"url_org": "https://...",
"file_id": "files/temp/topics/2c36f971ab1f93a1ecc0f1b21fe8673f/210861_ext_5_0.jpg"
}
]
- You can obtain the
file_idfrom the response (e.g.files/temp/topics/.../210861_ext_5_0.jpg). - By specifying this
file_iddirectly in the file fields of theTopics::insert/Topics::updateAPI, you can add or update content while reusing the saved files and images as they are. - This works for both repeatable and non-repeatable file fields.
More information
Support
If you have any other questions, please contact us or check out Our Slack Community.