Create a new NDA template version
Creates a new draft version from an existing version or from the current template state. The new version will be created with status "draft" and is_active set to false.
AuthorizationBearer <token>
JWT token obtained from login endpoint
In: header
Path Parameters
idstring
Template ID
Format
uuid
source_version_id?string
Source version ID or "current" for base template. Defaults to "current" if not provided.
Default
"current"
Response Body
curl -X POST "https://app.orbiqhq.com/api/v1/nda-templates/497f6eca-6276-4993-bfeb-53cbbbba6f08/versions" \ -H "Content-Type: application/json" \ -d '{}'
curl -X POST https://app.orbiqhq.com/api/v1/nda-templates/550e8400-e29b-41d4-a716-446655440000/versions \ -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "source_version_id": "current" }'
{
"id": "0d5340f6-8095-47e7-946b-5fad86710e96",
"key": "draft_1706189400000",
"name": "v3",
"status": "draft",
"is_active": false,
"date_created": "2024-01-25T12:30:00Z",
"date_updated": "2024-01-25T12:30:00Z"
}
{
"type": "invalid_request_error",
"code": "missing_template_id",
"message": "Template ID is required",
"doc_url": "https://docs.orbiqhq.com/errors/missing_template_id"
}
{
"type": "authorization_error",
"code": "unauthorized",
"message": "Invalid or missing authentication token",
"doc_url": "https://docs.orbiqhq.com/errors/unauthorized"
}
{
"type": "authorization_error",
"code": "not_authorized",
"message": "Not authorized to manage this template's versions",
"doc_url": "https://docs.orbiqhq.com/errors/not_authorized"
}
{
"type": "invalid_request_error",
"code": "template_not_found",
"message": "Template not found",
"doc_url": "https://docs.orbiqhq.com/errors/template_not_found"
}
{
"type": "api_error",
"code": "internal_error",
"message": "An unexpected error occurred",
"doc_url": "https://docs.orbiqhq.com/errors/internal_error"
}
How is this guide?