v8

latestOpenAPI 3.1.0raw.githubusercontent.com2026-07-214977372.7 KB
Account Management API
Origins

Update origin

Note: This API is currently in beta.
Updates the origin identified by id and returns the updated origin object.

put/v1/accounts/origins/{id}

Path parameters

idstring required

Unique identifier for the origin. This is generated by ImageKit when you create a new origin.

Unique identifier for the origin. This is generated by ImageKit when you create a new origin.

Request body

OR
OR
OR
OR
OR
OR
OR

Example request

{
  "name": "US S3 Storage",
  "baseUrlForCanonicalHeader": "https://cdn.example.com",
  "bucket": "product-images",
  "prefix": "raw-assets",
  "useIAMRole": true,
  "accessKey": "AKIAIOSFODNN7EXAMPLE",
  "secretKey": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"
}

Response

Origin updated successfully.

OR
OR
OR
OR
OR
OR
OR

Example response

{
  "name": "US S3 Storage",
  "baseUrlForCanonicalHeader": "https://cdn.example.com",
  "bucket": "product-images",
  "prefix": "raw-assets",
  "useIAMRole": true
}