bcgov / entity

ServiceBC Registry Team working on Legal Entities
Apache License 2.0
23 stars 59 forks source link

Doc API - Update Document Record Changes #23619

Closed doug-lovett closed 1 week ago

doug-lovett commented 1 month ago

Update the PATCH /doc/api/v1/documents/{docServiceId} endpoint to:

doug-lovett commented 1 month ago

Payload example updating document info and adding/updating scanning information no doc class/doc type: PATCH https://bcregistry-dev.apigee.net/doc/api/v1/documents/DS0000100163 { "consumerDocumentId": "99990001", "consumerFilename": "amalgamation_update.pdf", "consumerIdentifier": "BC0100011", "consumerFilingDate": "2024-10-01", "description": "Update description", "scanningInformation": { "scanDateTime": "2024-08-01", "accessionNumber": "UT-001-0006", "author": "James Johnson", "batchId": "1205", "pageCount": 60 } }

Payload example updating document info including doc type and doc class and updating scanning information: PATCH https://bcregistry-dev.apigee.net/doc/api/v1/documents/DS0000100163 { "consumerDocumentId": "99990001", "documentClass": "MHR", "documentType": "MHR_MISC", "consumerFilename": "amalgamation_update.pdf", "consumerIdentifier": "099000", "consumerFilingDate": "2024-09-01", "description": "Updated again description", "scanningInformation": { "scanDateTime": "2024-08-02", "accessionNumber": "UT-001-0007", "author": "Jack Johnson", "batchId": "1206", "pageCount": 66 } }

chdivyareddy commented 1 month ago

Verified in DEV !

image.png image.png