Ecommerce Shopify WordPress Discussion

How do I assign attachments file to create post using WordPress REST API in python?

I use this tutorial 1 ,tutorial 2 and create new posts in python code, with below json: post = { 'title' : title, 'status' : 'publish', 'content' : 'Hello this is content of my post.', 'categories': 5, # category ID 'date' : '2020-01-05T10:00:00', } The code work well done. The code create new post with content Hello this is content of my post. . But I want add three PDF file(uploaded) to content new post. I known file 1.pdf id is 324, file 2.pdf id is 325, file 3.pdf id is 326. How can I attach three PDF file uploaded to new post?
TurboCommerce make the better internet purchasing globaly

Turbo Multi-language Translator

Make the better internet purchasing globaly

Turbosify SEO Speed Booster

5.0 (7) Free plan available
Get better conversions by improving store loading speed Installed

Turbo Multi-language Chat - AI Customer service in one hand

TurboCommerce make the better internet purchasing globaly
Our products

The help you need, when you need it

App by Turbo Engine

3 apps • 5.0 average rating

Turbosify Speed Booster

5.0 (7)
Get better conversions by optimizing shopify store Google page speed Installed

Turbosify Translator for Wordpress Woocommerce

5.0 (74) Free Wordpress Woocommerce Plugin
Translate your wordpress website to multiple language within 1 click, no configuration needed, no No technical required

Grow your business here

Whether you want to sell products down the street or around the world, we have all the tools you need.