This update changed POST /api/v0/sites/{site_uuid}/files/zip to require an MD5 checksum, which returns a 422 error to code that sends any other checksum format. It also fixed several endpoints that returned a 500 error to an API key or on unexpected input.
Changed#
- Changed
POST /api/v0/sites/{site_uuid}/files/zipto requirezip.checksumto be the MD5 hash of the uploaded ZIP file, as 32 hexadecimal characters without quotes. Any other value returns a422error.
Removed#
- Removed the
idfilter fromGET /api/v0/users/access_keys. Access keys have noidfield, so the filter returned a500error.
Fixes#
- Fixed an issue where several endpoints returned a
500error to a request made with an API key:POSTandDELETE /api/v0/groups/{group_uuid}/memberson the Owners Permission Group now return403.POST /api/v0/groups/{group_uuid}/membersnow invites an email address that has no CloudCannon account, without recording who sent the invitation.GET /api/v0/orgs/{org_uuid}/members/{email}now returns the Organization Member.POSTandDELETE /api/v0/sites/{site_uuid}/watchersnow return403, as watching a Site needs a user account.
- Fixed an issue where
GETandDELETE /api/v0/scheduled-builds/{scheduled_build_uuid}returned a500error for a Scheduled Build that does not exist. They now return403. - Fixed an issue where
POST /api/v0/sites/{site_uuid}/output-providerswith astorage_providerofftpreturned a500error whencustom_datawas missing or not an object. It now returns a422error. - Fixed an issue where
DELETE /api/v0/base-domains/{base_domain_uuid}/dns/records/{record_id}returned a500error for a record that Cloudflare had already deleted. It now returns204, as for any other deleted record.