Create a new version
Changed onCreates a new version by uploading a PDF file.
Request
- Base URLhttps://api.factify.com
- URLhttps://api.factify.com/v1beta/documents/{document_id}/versions
- AuthHTTP bearer
Path parameters
Document ID to create version for. Pattern: doc_[0-9a-hjkmnp-tv-z]{26}
Request body multipart/form-data
Response
Success
Example response
{
"created_by": {
"id": "user_01h2xcejqtf2nbrexx3vqjhp41"
},
"document_id": "doc_01h2xcejqtf2nbrexx3vqjhp41",
"id": "ver_01h2abcd1234efgh5678jkmnpt",
"title": "Version 2.0",
"url": "https://app.factify.com/d/01h2xcejqtf2nbrexx3vqjhp41/v/1"
}Changes
- breaking
the request property
became not nullable - breaking
the request property
became not nullable
- breaking
- warning
added the new
botenum value to the/response property for the response status - warning
added the new
userenum value to the/response property for the response status - info
added discriminator to
response property for the response status - info
removed the
service_accountenum value from the/response property for the response status - info
removed the
user_accountenum value from the/response property for the response status - info
the
/response's property pattern was changed from^(user|svc)_[0-9a-hjkmnp-tv-z]{26}$to^(user|bot)_[0-9a-hjkmnp-tv-z]{26}$for the status
- warning