Update NDA template version
Update a specific version of an NDA template. Currently only supports publishing draft versions.
Publishing a draft version:
- Changes the version status from "draft" to "published"
- Makes the version immutable (read-only)
- The version can then be activated to become the active version
Authorization
bearerAuth AuthorizationBearer <token>
JWT token obtained from login endpoint
In: header
Path Parameters
id*string
Template ID
Format
uuidversionId*string
Version ID
Format
uuidRequest Body
application/json
status*string
Version status (currently only "published" is supported)
Value in
"published"Response Body
application/json
application/json
application/json
application/json
application/json
curl -X PATCH "https://app.orbiqhq.com/api/v1/nda-templates/497f6eca-6276-4993-bfeb-53cbbbba6f08/versions/497f6eca-6276-4993-bfeb-53cbbbba6f08" \ -H "Content-Type: application/json" \ -d '{ "status": "published" }'{
"success": true,
"message": "Version published successfully"
}{
"error": "Only draft versions can be published"
}{
"error": "Unauthorized"
}{
"error": "Version not found"
}{
"error": "Internal server error"
}How is this guide?