# Create a User Document Creates a new user document Endpoint: POST /api/external/user/{userExternalReference}/documents Version: 1.5.0 Security: API_AUTHENTICATION ## Path parameters: - `userExternalReference` (string, required) userExternalReference ## Request fields (application/json): - `document` (object) - `document.customName` (string) - `document.fileSize` (integer) - `document.id` (integer) - `document.imageSizeX` (integer) - `document.imageSizeY` (integer) - `document.isThumbnail` (boolean) - `document.name` (string) - `document.originalName` (string) - `document.uuid` (string) - `expirationDate` (string) - `externalReference` (string) - `internalId` (integer) - `issueAuthority` (string) - `issueCountry` (string) - `issueDate` (string) - `issuePlace` (string) - `links` (array) - `links.deprecation` (string) - `links.href` (string) - `links.hreflang` (string) - `links.media` (string) - `links.profile` (string) - `links.rel` (object) - `links.title` (string) - `links.type` (string) - `main` (boolean) - `number` (string) - `passportExternalReference` (string) - `visaType` (string) ## Response 200 fields (application/json): - `document` (object) - `document.customName` (string) - `document.fileSize` (integer) - `document.id` (integer) - `document.imageSizeX` (integer) - `document.imageSizeY` (integer) - `document.isThumbnail` (boolean) - `document.name` (string) - `document.originalName` (string) - `document.uuid` (string) - `expirationDate` (string) - `externalReference` (string) - `internalId` (integer) - `issueAuthority` (string) - `issueCountry` (string) - `issueDate` (string) - `issuePlace` (string) - `links` (object) - `links.empty` (boolean) - `main` (boolean) - `number` (string) - `passportExternalReference` (string) - `type` (string) Enum: "PASSPORT", "IDCARD", "VISA", "OTHER", "CREWID", "AIRPORT_ID", "DRIVING_LICENSE", "US_GLOBAL", "GREEN_CARD", "PILOT_LICENSE", "ALIEN_REGISTRATION_CARD", "PERMANENT_RESIDENCE_CARD", "FACILITATION_DOCUMENT", "MILITARY_CARD", "NEXUS_CARD", "REFUGEE_TRAVEL_DOCUMENT", "EXEMPT_FROM_IRPA_DOCUMENT", "REDRESS_NUMBER" - `visaType` (string)