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
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.
Example response
{
"name": "US S3 Storage",
"baseUrlForCanonicalHeader": "https://cdn.example.com",
"bucket": "product-images",
"prefix": "raw-assets",
"useIAMRole": true
}