Upsert asset hashes
POST/pages/assets/upsert-hashes
Register the provided file hashes as recently uploaded to the Pages asset store. Used as part of the Pages Direct Upload workflow so future deployments can avoid re-uploading files that are already present.
Authenticate with the JWT obtained from the upload-token endpoint: GET /accounts/{account_id}/pages/projects/{project_name}/upload-token
Upsert asset hashes
curl https://api.cloudflare.com/client/v4/pages/assets/upsert-hashes \
-H 'Content-Type: application/json' \
-d '{
"hashes": [
"a948904f2f0f479b8f936b8a0c5d9882",
"b026324c6904b2a9cb4b88d6d61c81d1"
]
}'{
"errors": [],
"messages": [],
"success": true
}Returns Examples
{
"errors": [],
"messages": [],
"success": true
}