Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Update actual API response output

Fetch a specific terms version file as a JSON string, containing the base64-encoded file.

Endpoint ID:2113
Method:

GET

URL:

/permissions/terms/{termsID}/{version}/file/{fileKey}


termsIDA GUID string identifier for the terms

version

A terms version string formatted as "major.minor", i.e. "1.0" or "4.7".

Alternatively, the string "active" indicates the active version of these terms. This will result in an error if the terms have no active version defined.


fileKeyThe "key" of the specific file to fetch for this version.
Alternatively, the string "default" indicates the default file for this version.

Request body:

None

Response body:

The JSON response contains the file details, and the file itself as a base64-encoded string.

Code Block
{
    "file": {
        "fileName": "file-print.pdf",
        "mimeType": "application/pdf",
 
      "file": "<base64 encoded file>"
    }
}


Status codes:200OK

400

Invalid request.

The following subcodes may be returned:


400.1These terms have no active version



404

The entity or terms were not found.

The following subcodes may be returned:


404.4Terms not found
404.7Terms version not found


...