# Update Document Update the details of an existing Document Endpoint: PUT /organisations/{orgId}/documents/{documentId} Version: v2_28 Security: ApiKeyAuth ## Path parameters: - `documentId` (string, required) - `orgId` (string, required) The organisation identity ## Header parameters: - `contentType` (string, required) ## Request fields (application/json): - `name` (string, required) The name of the document. This must be unique. - `type` (string, required) The URI to the type of document. - `issuance` (string, required) The date and time when this document was issued. - `validityStart` (string, required) If the document has a validity period, this is when it starts. - `validityEnd` (string, required) If the document has a validity period, this is when it ends. - `contentType` (string, required) The type of the content based on rfc4288 (https://www.rfc-editor.org/rfc/rfc4288) - `contentHash` (string, required) Sha256 32-byte, base64 encoded contentHash. This will be empty if the document content has not yet been provided. - `originalHash` (string, required) Sha256 32-byte, base64 encoded contentHash. For original documents this will match contentHash. It will be different for redacted documents derived from an original document. This will be empty if the document content has not yet been provided. - `contentSize` (integer, required) The size of the file in bytes. - `private` (boolean, required) If set to true, the document will not be shared. ## Response 200 fields (application/json): - `name` (string, required) The name of the document. This must be unique. - `type` (string, required) The URI to the type of document. - `issuance` (string, required) The date and time when this document was issued. - `validityStart` (string, required) If the document has a validity period, this is when it starts. - `validityEnd` (string, required) If the document has a validity period, this is when it ends. - `contentType` (string, required) The type of the content based on rfc4288 (https://www.rfc-editor.org/rfc/rfc4288) - `contentHash` (string, required) Sha256 32-byte, base64 encoded contentHash. This will be empty if the document content has not yet been provided. - `originalHash` (string, required) Sha256 32-byte, base64 encoded contentHash. For original documents this will match contentHash. It will be different for redacted documents derived from an original document. This will be empty if the document content has not yet been provided. - `contentSize` (integer, required) The size of the file in bytes. - `private` (boolean, required) If set to true, the document will not be shared. - `recordState` (string) State of the record. Enum: "ACTIVE", "ARCHIVED" - `id` (string) System assigned id field. - `createdBy` (string) User who created the record. - `createdTime` (string) Date & Time that the record was created. - `updatedBy` (string) Last updated by user. - `updatedTime` (string) Date & Time that the record was last updated. ## Response 400 fields ## Response 401 fields ## Response 403 fields ## Response 404 fields ## Response 429 fields ## Response 500 fields