Description

Creates a temporary url to a document (PDF, SDO, and more) that expires at a certain datetime

HTTP method: POST
URI: https://api.signere.no/api/DocumentFile/TempUrl
Autorization model: Minimum secondary apikey is needed for this operation.
Subscription needed: "Sign document using forms" or "Sign document offline" or "Sign document online" or "Sign document on the portal"
Parameters
Name Type Description Example value Required Max length Min length Nullable Enum Regex
DocumentFileType The file type of document to be get PDF False 10 3 False True ^[a-zA-Z0-9_]*$
DocumentID Guid The ID (GUID) of the Document that you want a temporary url to 5515ACEA4896460C875FA08A00D4D3A9 True 36 36 False False ^(\{{0,1}([0-9a-fA-F]){8}-?([0-9a-fA-F]){4}-?([0-9a-fA-F]){4}-?([0-9a-fA-F]){4}-?([0-9a-fA-F]){12}\}{0,1})$
Expires DateTime The expire date for the document url, if not set the expire date will be now + 48 hours 2013-01-01T00:00:00.0000000 False 19 19 True False
Name DocumentFileType
Type DocumentFileType
Description The file type of document to be get
Example value PDF
Required False
Max length 10
Min length 3
Nullable False
Enum True
Regex ^[a-zA-Z0-9_]*$
Name DocumentID
Type Guid
Description The ID (GUID) of the Document that you want a temporary url to
Example value 5515ACEA4896460C875FA08A00D4D3A9
Required True
Max length 36
Min length 36
Nullable False
Enum False
Regex ^(\{{0,1}([0-9a-fA-F]){8}-?([0-9a-fA-F]){4}-?([0-9a-fA-F]){4}-?([0-9a-fA-F]){4}-?([0-9a-fA-F]){12}\}{0,1})$
Name Expires
Type DateTime
Description The expire date for the document url, if not set the expire date will be now + 48 hours
Example value 2013-01-01T00:00:00.0000000
Required False
Max length 19
Min length 19
Nullable True
Enum False
Regex
{
    "DocumentID": "5515acea4896460c875fa08a00d4d3a9",
    "DocumentFileType": "PDF",
    "Expires": "2013-01-01T00:00:00.0000000"
}

XML elements must be in same order as in this example xml

<?xml version="1.0" encoding="utf-8"?>
<CreateDocumentTemporayUrlRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Unipluss.Sign.ExternalContract.Entities">
   <DocumentFileType>PDF</DocumentFileType>
   <DocumentID>5515acea-4896-460c-875f-a08a00d4d3a9</DocumentID>
   <Expires>2013-01-01T00:00:00</Expires>
</CreateDocumentTemporayUrlRequest>