> For the complete documentation index, see [llms.txt](https://docs.cloudeka.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cloudeka.ai/release-notes/cloudeka-api/backend/update-object-storage-cors.md).

# Update object storage CORS

Updates CORS rules for a bucket.

```json
{"openapi":"3.1.1","info":{"title":"Service Portal Cloudeka - API Documentation","version":"1.0.0"},"tags":[{"name":"Backend","description":"API endpoints for Backend (base: /core)"}],"servers":[{"url":"https://ai.cloudeka.id/"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"description":"Type 'Bearer ' followed by your JWT token. Example: \"Bearer eyJhbGciOi...\"","type":"apiKey","name":"Authorization","in":"header"}},"schemas":{"ai_backend__handler.SuccessRespond":{"type":"object","properties":{"code":{"type":"integer"},"data":{},"message":{"type":"string"}}},"ai_backend__handler.BaseError":{"type":"object","properties":{"code":{"type":"string"},"error":{}}},"ai_backend__requests.ObjectStorageCors":{"type":"object","properties":{"allowedHeader":{"type":"string"},"allowedMethod":{"type":"array","items":{"type":"string"}},"allowedOrigin":{"type":"string"},"bucketName":{"type":"string"}}}}},"paths":{"/core/user/object-storages-cors/{id}/{bucketName}":{"post":{"description":"Updates CORS rules for a bucket.","tags":["Backend","Object Storage"],"summary":"Update object storage CORS","parameters":[{"schema":{"type":"string"},"description":"Object storage ID","name":"id","in":"path","required":true},{"schema":{"type":"string"},"description":"Bucket name","name":"bucketName","in":"path","required":true}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ai_backend__handler.SuccessRespond"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ai_backend__handler.BaseError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ai_backend__requests.ObjectStorageCors"}}}},"description":"CORS rules","required":true}}}}}
```
