Update media item using wordpress rest api in python

What you are trying to do is not something that endpoint is capable of. You can create attachments, you can even rotate and crop the file, but you cannot replace the attached file. When cropping/scaling/rotating an image, a new attachment and ID are created for the newly edited image. However, sending an UPDATE/PUT/POST request to … Read more