All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
delete_document_version | DELETE /documents/{documentId}/versions/{versionKey} | Delete document version |
get_document_versions | GET /documents/{documentId}/versions | Get document's versions |
set_document_version | PUT /documents/{documentId}/versions | Set version of document |
DeleteResponse delete_document_version(document_id, version_key, site_id=site_id, share_key=share_key)
Delete document version
Delete a specific previous document version; available as an Add-On Module
import formkiq_client
from formkiq_client.models.delete_response import DeleteResponse
from formkiq_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = formkiq_client.Configuration(
host = "http://localhost"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Enter a context with an instance of the API client
with formkiq_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = formkiq_client.DocumentVersionsApi(api_client)
document_id = 'document_id_example' # str | Document Identifier
version_key = 'version_key_example' # str | Version Key (version key required URL encoding)
site_id = 'site_id_example' # str | Site Identifier (optional)
share_key = 'share_key_example' # str | Share Identifier (optional)
try:
# Delete document version
api_response = api_instance.delete_document_version(document_id, version_key, site_id=site_id, share_key=share_key)
print("The response of DocumentVersionsApi->delete_document_version:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling DocumentVersionsApi->delete_document_version: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
document_id | str | Document Identifier | |
version_key | str | Version Key (version key required URL encoding) | |
site_id | str | Site Identifier | [optional] |
share_key | str | Share Identifier | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | 200 OK | * Access-Control-Allow-Origin - * Access-Control-Allow-Methods - * Access-Control-Allow-Headers - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetDocumentVersionsResponse get_document_versions(document_id, site_id=site_id, limit=limit, share_key=share_key, next=next)
Get document's versions
Get a listing of document content and metadata versions; available as an Add-On Module
import formkiq_client
from formkiq_client.models.get_document_versions_response import GetDocumentVersionsResponse
from formkiq_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = formkiq_client.Configuration(
host = "http://localhost"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Enter a context with an instance of the API client
with formkiq_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = formkiq_client.DocumentVersionsApi(api_client)
document_id = 'document_id_example' # str | Document Identifier
site_id = 'site_id_example' # str | Site Identifier (optional)
limit = '10' # str | Limit Results (optional) (default to '10')
share_key = 'share_key_example' # str | Share Identifier (optional)
next = 'next_example' # str | Next page of results token (optional)
try:
# Get document's versions
api_response = api_instance.get_document_versions(document_id, site_id=site_id, limit=limit, share_key=share_key, next=next)
print("The response of DocumentVersionsApi->get_document_versions:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling DocumentVersionsApi->get_document_versions: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
document_id | str | Document Identifier | |
site_id | str | Site Identifier | [optional] |
limit | str | Limit Results | [optional] [default to '10'] |
share_key | str | Share Identifier | [optional] |
next | str | Next page of results token | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | 200 OK | * Access-Control-Allow-Origin - * Access-Control-Allow-Methods - * Access-Control-Allow-Headers - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SetDocumentVersionResponse set_document_version(document_id, set_document_version_request, site_id=site_id)
Set version of document
Set document to a previous document version; available as an Add-On Module
import formkiq_client
from formkiq_client.models.set_document_version_request import SetDocumentVersionRequest
from formkiq_client.models.set_document_version_response import SetDocumentVersionResponse
from formkiq_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = formkiq_client.Configuration(
host = "http://localhost"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Enter a context with an instance of the API client
with formkiq_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = formkiq_client.DocumentVersionsApi(api_client)
document_id = 'document_id_example' # str | Document Identifier
set_document_version_request = formkiq_client.SetDocumentVersionRequest() # SetDocumentVersionRequest |
site_id = 'site_id_example' # str | Site Identifier (optional)
try:
# Set version of document
api_response = api_instance.set_document_version(document_id, set_document_version_request, site_id=site_id)
print("The response of DocumentVersionsApi->set_document_version:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling DocumentVersionsApi->set_document_version: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
document_id | str | Document Identifier | |
set_document_version_request | SetDocumentVersionRequest | ||
site_id | str | Site Identifier | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | 200 OK | * Access-Control-Allow-Origin - * Access-Control-Allow-Methods - * Access-Control-Allow-Headers - |
400 | 400 OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]