Update Legal Entity Registration Document Files
Replaces the files on a legal entity document with newly uploaded ones, typically after the document was rejected. The previous submission is archived rather than deleted, so the review history is preserved, and a new submission id is returned. Use the add-files endpoint instead when attaching a missing page to a document that is still under review.
**Token scopes**: `legal-entity:write`
Authentication
AuthorizationBearer
## Authentication
The Deel API uses bearer tokens to authenticate requests. All API calls must be made over HTTPS — calls over plain HTTP or without authentication will fail.
```curl
curl -X GET 'https://api.deel.training/rest/v2/contracts' \
-H 'Authorization: Bearer YOUR-TOKEN-HERE'
```
[Learn more about authentication](/api/authentication)
OR
AuthorizationBearer
Standard OAuth2 security scheme based on https://swagger.io/docs/specification/authentication/
Path parameters
legal_entity_id
Public UUID of the legal entity.
document_id
Public UUID of the document submission.
Request
This endpoint expects an object.
data
Response
Document resubmitted successfully.
data
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error
500
Internal Server Error