v1FolderIdDocumentsDocumentIdPost
Creates a new document.
/v1/{folderId}/documents/{documentId}
Usage and SDK Samples
curl -X POST "//v1/{folderId}/documents/{documentId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DocumentLocationsApi;
import java.io.File;
import java.util.*;
public class DocumentLocationsApiExample {
public static void main(String[] args) {
DocumentLocationsApi apiInstance = new DocumentLocationsApi();
String folderId = folderId_example; // String |
String documentId = documentId_example; // String |
DocumentLocationForCreationDTO body = ; // DocumentLocationForCreationDTO |
try {
apiInstance.v1FolderIdDocumentsDocumentIdPost(folderId, documentId, body);
} catch (ApiException e) {
System.err.println("Exception when calling DocumentLocationsApi#v1FolderIdDocumentsDocumentIdPost");
e.printStackTrace();
}
}
}
import io.swagger.client.api.DocumentLocationsApi;
public class DocumentLocationsApiExample {
public static void main(String[] args) {
DocumentLocationsApi apiInstance = new DocumentLocationsApi();
String folderId = folderId_example; // String |
String documentId = documentId_example; // String |
DocumentLocationForCreationDTO body = ; // DocumentLocationForCreationDTO |
try {
apiInstance.v1FolderIdDocumentsDocumentIdPost(folderId, documentId, body);
} catch (ApiException e) {
System.err.println("Exception when calling DocumentLocationsApi#v1FolderIdDocumentsDocumentIdPost");
e.printStackTrace();
}
}
}
String *folderId = folderId_example; //
String *documentId = documentId_example; //
DocumentLocationForCreationDTO *body = ; // (optional)
DocumentLocationsApi *apiInstance = [[DocumentLocationsApi alloc] init];
// Creates a new document.
[apiInstance v1FolderIdDocumentsDocumentIdPostWith:folderId
documentId:documentId
body:body
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
var SertifiApi = require('sertifi_api');
var api = new SertifiApi.DocumentLocationsApi()
var folderId = folderId_example; // {{String}}
var documentId = documentId_example; // {{String}}
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.v1FolderIdDocumentsDocumentIdPost(folderIddocumentId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class v1FolderIdDocumentsDocumentIdPostExample
{
public void main()
{
var apiInstance = new DocumentLocationsApi();
var folderId = folderId_example; // String |
var documentId = documentId_example; // String |
var body = new DocumentLocationForCreationDTO(); // DocumentLocationForCreationDTO | (optional)
try
{
// Creates a new document.
apiInstance.v1FolderIdDocumentsDocumentIdPost(folderId, documentId, body);
}
catch (Exception e)
{
Debug.Print("Exception when calling DocumentLocationsApi.v1FolderIdDocumentsDocumentIdPost: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiDocumentLocationsApi();
$folderId = folderId_example; // String |
$documentId = documentId_example; // String |
$body = ; // DocumentLocationForCreationDTO |
try {
$api_instance->v1FolderIdDocumentsDocumentIdPost($folderId, $documentId, $body);
} catch (Exception $e) {
echo 'Exception when calling DocumentLocationsApi->v1FolderIdDocumentsDocumentIdPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DocumentLocationsApi;
my $api_instance = WWW::SwaggerClient::DocumentLocationsApi->new();
my $folderId = folderId_example; # String |
my $documentId = documentId_example; # String |
my $body = WWW::SwaggerClient::Object::DocumentLocationForCreationDTO->new(); # DocumentLocationForCreationDTO |
eval {
$api_instance->v1FolderIdDocumentsDocumentIdPost(folderId => $folderId, documentId => $documentId, body => $body);
};
if ($@) {
warn "Exception when calling DocumentLocationsApi->v1FolderIdDocumentsDocumentIdPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.DocumentLocationsApi()
folderId = folderId_example # String |
documentId = documentId_example # String |
body = # DocumentLocationForCreationDTO | (optional)
try:
# Creates a new document.
api_instance.v1_folder_id_documents_document_id_post(folderId, documentId, body=body)
except ApiException as e:
print("Exception when calling DocumentLocationsApi->v1FolderIdDocumentsDocumentIdPost: %s\n" % e)
Parameters
Name | Description |
---|---|
folderId* |
String
Required
|
documentId* |
String
Required
|
Name | Description |
---|---|
body |