PUT Namespace

PUT {{baseUrl}}/n/:namespaceName

By default, buckets created using the Amazon S3 Compatibility API or the Swift API are created in the root compartment of the Oracle Cloud Infrastructure tenancy.

You can change the default Swift/Amazon S3 compartmentId designation to a different compartmentId. All subsequent bucket creations will use the new default compartment, but no previously created buckets will be modified. A user must have OBJECTSTORAGENAMESPACEUPDATE permission to make changes to the default compartments for Amazon S3 and Swift.

Request Body

{"defaultS3CompartmentId"=>"in magna ullamco commodo in", "defaultSwiftCompartmentId"=>"labore tempor sed"}

HEADERS

KeyDatatypeRequiredDescription
opc-client-request-idstringThe client request ID for tracing.
Content-Typestring
Acceptstring

RESPONSES

status: OK

{"defaultS3CompartmentId":"cillum ut","defaultSwiftCompartmentId":"anim in aute pariatur","namespace":"adipisicing anim Ut eiusmod"}