# Upload resource to a draft request Endpoint: POST /request/{id}/upload Version: 2.0.0 Security: ApiKeyAuth ## Path parameters: - `id` (string, required) ## Request fields (multipart/form-data): - `file` (string) - `resourceDescription` (object) - `resourceDescription.filename` (string) - `resourceDescription.mimeType` (string) - `resourceDescription.name` (string) - `resourceDescription.type` (string) Values may be added overtime. List of values: - 'BIOMETRY_VIDEO' - 'BIOMETRY_IMAGE' - 'DOCUMENT_VIDEO' - 'DOCUMENT_IMAGE' - 'CONTRACT_DOCUMENT' - 'DOCUMENT' - 'IDENTITY_DOCUMENT' - 'SIGN_AUDIT_LOG' - 'IDP_ASSERTION' - 'AUDIT_TRAIL' Example: "BIOMETRY_VIDEO" - `resourceDescription.subType` (string) Values may be added overtime. List of values: - 'BEST_SELFIE' - 'PROCESSED_FRONT_SIDE' - 'PROCESSED_BACK_SIDE' - 'SELFIE' - 'FRONT_SIDE' - 'BACK_SIDE' - 'ID_PHOTO' - 'PROOF_RAW' - 'PROOF_RENDERED' - 'DOCUMENT_FILLED' - 'DOCUMENT_FLATTENED' - 'APPLICATION_FORM' Example: "FRONT_SIDE" - `resourceDescription.family` (string) Values may be added overtime. List of values: - 'IDENTIFICATION_ASSET' - 'SIGNED_DOCUMENT' - 'ATTACHMENT' - 'PROOF' - 'DOCUMENT_TO_SIGN' Example: "IDENTIFICATION_ASSET" - `resourceDescription.urlValidBefore` (object) Example: "2024-10-22T12:19:12.269594Z" - `resourceDescription.urlValidBefore.dummy` (string) - `resourceDescription.metadata` (object) - `resourceDescription.metadata.additionalProp0` (string) - `resourceDescription.sha256` (string) ## Response 200 fields (application/json): - `etag` (string) - `version` (string) - `resourceUri` (string) ## Response 400 fields (application/problem+json): - `errors` (array) An array of error details to accompany a problem details response. - `errors.detail` (string, required) A human-readable explanation specific to this occurrence of the problem. Example: "Property 'dummyField' is not defined in the schema and the schema does not allow additional properties." - `errors.pointer` (string) A JSON Pointer to a specific request body property that is the source of error. Example: "/parameters/dummyField" - `errors.field` (string) The name of the field that is the source of error. Example: "dummyField" - `errors.reason` (string) A machine oriented error type. Eg. additionalProperties, required Example: "additionalProperties" - `type` (string) A URI reference that identifies the problem type. Example: "about:blank" - `status` (integer, required) The HTTP status code generated by the origin server for this occurrence of the problem. Example: 400 - `title` (string) A short, human-readable summary of the problem type. It should not change from occurrence to occurrence of the problem, except for purposes of localization. Example: "Request validation error" - `instance` (string) A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced. Example: "urn:uuid:123e4567-e89b-12d3-a456-426614174000?ts=1729667463" - `retryable` (boolean) If the api call can be retried