In order to update a document template in ROFS, a developer can follow these instructions:
Retrieve current letter template to edit
Remove protection on document. In order to edit a document you must click ‘Stop Protection’
Make any necessary edits to the document template
One you are done making edits, add protection back to the document. Leave the password field blank
Convert word file to bytes.
Upload document to DMS.
Update GUID ID in ROFS.
DEV: https://ncdsafsecsurapp-document-management-service.azurewebsites.net/swagger/index.html
TEST: https://nctsafsecsurapp-document-management-service.azurewebsites.net/swagger/index.html
ACC: https://ncasafsecsurapp-document-management-service.azurewebsites.net/swagger/index.html
PROD: https://pcpsafsecsurapp-document-management-service.azurewebsites.net/swagger/index.html
File to byte array tool: https://cloudmersive.com/convert-file-to-json-byte-array-tool
JSON Request :
English:
{
"userName": "[YourEmail]",
"fileBytes": "[FileBytes]",
"fileName": "NotificationLetter.docx",
"fileContentType": "application/msword",
"submissionMethod": "004",
"fileLanguage": "english"
}
French:
{
"userName": "[YourEmail]",
"fileBytes": "[FileBytes]",
"fileName": "LetterDeNotification.docx",
"fileContentType": "application/msword",
"submissionMethod": "004",
"fileLanguage": "french"
}