You have created a container in Oracle Storage Cloud Service. How would you upload a file to that container
when using a REST API call?
A.
You cannot upload files using REST API calls.
B.
Send a PUT request to {accountURL}/{containerName}.
C.
Send a PUT request to {accountURL}/{containerName}/{objectName}.
D.
Send a POST request to {accountURL}/{containerName}/{objectName}.
E.
Send a POST request to {accountURL}.
D
I agree that the answer should be C.
You need the POST to create the object, but the PUT updates the new object with the file you are uploading.
In the Student Guide from the IaaS Fundamentals course, there was a quiz on chapter 14, page 17, that asked exactly this question. The instructor answered PUT.
The Answer is C.
https://docs.oracle.com/en/cloud/iaas/storage-cloud/ssapi/api-Objects.html
Create or replace object
Method: PUT
Path: /v1/{account}/{container}/{object}
A-team blog also certifies it.
http://www.ateam-oracle.com/uploading-a-file-to-oracle-storage-cloud-service-using-rest-api/