Path parameters#
idstringrequiredThe destination to update.
e.g. "dst_01KE7XWWEQ4MCGWKBQKJ1G47RP"
Request body#
configobjectrequiredpath_templatestringrequired- ≤ 2048 characters
url_templatestringURL template used to create an image URL. It must include a
{path}which is a resolved path to file frompath_template.Example:
path_template -> "/images/{id}"
On upload
pathbecomes/images/img_si1EywtFZMvDArkcVSSsN759VFNbHtE_.webpurl_template: "https://my-cdn.my-domain.com/{path}"
The
urlin the response will be: "https://my-cdn.my-domain.com/images/img_si1EywtFZMvDArkcVSSsN759VFNbHtE_.webp"Note: The double
//are automatically removed and replaced with single slash.
providerobjectrequiredaccount_idstringrequiredbucketstringrequiredid"r2"requiredjurisdictionstring"default""eu""fedramp"
secretobjectaccess_key_idstringrequiredsecret_access_keystringrequired
Response#
200Destination updated
dataobjectrequiredconfigjson | nullrequiredcreatedAtanyrequiredidstringrequirednamestringrequiredproviderjson | nullrequiredupdatedAtanyrequired
Errors#
A failed call names what went wrong in code, with a sentence in message. The codes, which of them are worth retrying, and how to read a validation failure are on Errors.