Static Documents API
Independent static documents are PDF files configured and deployed independently rather than by inclusion in Config.zip. Use the following endpoints to create, update, or delete independent static PDF documents. All of the APIs mentioned below require you to be logged in as an administrator.
Endpoint Index
| Action | Endpoint |
|---|---|
| Deploy independent static documents | PUT /staticDocuments/ |
| Get static document by locator | GET /staticDocuments/{locator} |
| Get static documents | GET /staticDocuments/ |
| Delete a static document | DELETE /staticDocuments/{locator} |
Details
PUT /staticDocuments/| Name | Position | Type | Required |
|---|---|---|---|
| StaticDocumentRequest | body | StaticDocumentRequest | required |
GroupStaticDocumentResponseThe
GroupStaticDocumentResponsewill contain a singleStaticDocumentResponseif a single document was deployed, or a list ofStaticDocumentResponseif a zip file uploaded multiple documents.The
effectiveTimestampproperty specifies the effective date as a specific hour timestamp in unix epoch format. If minutes, seconds, and/or milliseconds are non-zero, the system will round to the next hour.The
effectiveTimestampproperty is optional. The defaulteffectiveTimestampis the hour after the document was added to your configuration. For example, if the current date and time isOctober 1st, 2022 11:30:15am PST, theeffectiveTimestampwill be set toOctober 1st, 2022 noon PST(in unix epoch format).If the
nameandeffectiveTimestampprecisely match an existing static document with an effective date, and the content of the static document has changed, that static document will be replaced with the newly deployed document. The name match is case sensitive. TheeffectiveTimestampmatch compares the two timestamps, both of which are scoped to the hour.If you deploy a .zip file, the name of each PDF file included in the .zip file will be used for the static document name. Ensure file names match previous values if you intend to update existing static documents using a bulk upload.
If the
StaticDocumentRequestincludes an exact duplicate of a previously deployed static document, the application will continue using the previously deployed static document, rather than redeploying it. A static document is considered a exact duplicate if all of the following are unchanged:Table name
Effective date
Content
requiredfile stringoptionaleffectiveTimestamp timestampStaticDocumentName string
requiredlocator stringeffectiveTimestamp timestampurlExpirationTimestamp timestampStaticDocumentName stringurl string
requiredfailedStaticDocuments ErrorTableResponsesuccessfulStaticDocuments StaticDocumentResponse
requiredeffectiveTimestamp timestamperrorDetails stringStaticDocumentName string
GET /staticDocuments/{locator}| Name | Position | Type | Required |
|---|---|---|---|
| locator | path | string | required |
StaticDocumentResponseGET /staticDocuments/| Name | Position | Type | Required |
|---|---|---|---|
| effectiveTimestamp | formdata | timestamp | optional |
| fileName | formdata | string | optional |
| matchMode | formdata | string startsWith | contains | equals | all | optional |
[StaticDocumentResponse]Takes three optional parameters:
The
fileNameparameter is the name of the PDF document of interest.The
matchModeparameter is a enum value, which specifies how thefileNameparameter will be matched.The
asOfTimestampparameter is a timestamp in millisecond format. TheasOfTimestampcan be any value within the effective time frame. If a static document is effective from January 1st to June 1st (inclusive), then date parameters of January 1st, June 1st, and March 1st would all retrieve the same static document.
Retrieves a list of documents (
StaticDocumentResponse) which, depending on the optional parameters, will include:Specify a
fileNameonly – returns a list of all independent static documents with a matching filename, with various effective dates.Specify an
effectiveTimestamponly – returns a list of all independent static documents in effect for the specified timestamp, with various file names.Specify both the
fileNameand theeffectiveTimestamp– returns the one independent static document matching the specifiedfileNameandeffectiveTimestamp.Do not specify either
fileNameoreffectiveTimestamp– returns a list of all independent static documents.
DELETE /staticDocuments/{locator}| Name | Position | Type | Required |
|---|---|---|---|
| locator | path | string | required |
StaticDocumentResponseIf the last independent copy of a static document is deleted, the application will use the
Config.zipversion of the static document for liquid template results.