Replace the working PDF of a draft (fields remapped)
Atomic swap of the document’s PDF bytes — existing fields are remapped onto the new file where pages/geometry still line up.
POST
/documents/pdf/replaceAuthorization
AuthorizationBearer token · headerrequiredPass your API key as a Bearer token. API keys are scoped to specific operations — configure scopes in your organization's Settings → Developer → API Keys.
Request body
requiredapplication/jsonidstringrequiredcontent_base64stringrequiredBase64-encoded PDF
Responses
200
Replaced
400
Invalid request parameters
typestringrequiredMachine-readable error code
statusintegerrequiredHTTP status code
titlestringrequiredHuman-readable error message
detailsobjectField-level validation errors
404
Resource not found
typestringrequiredMachine-readable error code
statusintegerrequiredHTTP status code
titlestringrequiredHuman-readable error message
detailsobjectField-level validation errors