All URIs are relative to https://prod.api.appcluster01.ca-central-1.ezmax.com/rest
Method | HTTP request | Description |
---|---|---|
attachmentDownloadV1 | GET /1/object/attachment/{pkiAttachmentID}/download | Retrieve the content |
attachmentGetAttachmentlogsV1 | GET /1/object/attachment/{pkiAttachmentID}/getAttachmentlogs | Retrieve the Attachmentlogs |
attachmentGetDownloadUrlV1 | GET /1/object/attachment/{pkiAttachmentID}/getDownloadUrl | Retrieve a URL to download attachments. |
attachmentDownloadV1(pkiAttachmentID)
Retrieve the content
Using this endpoint, you can retrieve the content of an attachment.
// Import classes:
//import eZmaxApi.infrastructure.*
//import eZmaxApi.models.*
val apiInstance = ObjectAttachmentApi()
val pkiAttachmentID : kotlin.Int = 56 // kotlin.Int |
try {
apiInstance.attachmentDownloadV1(pkiAttachmentID)
} catch (e: ClientException) {
println("4xx response calling ObjectAttachmentApi#attachmentDownloadV1")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ObjectAttachmentApi#attachmentDownloadV1")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
pkiAttachmentID | kotlin.Int |
null (empty response body)
Configure Authorization: ApiClient.apiKey["Authorization"] = "" ApiClient.apiKeyPrefix["Authorization"] = "" Configure Presigned: ApiClient.apiKey["sAuthorization"] = "" ApiClient.apiKeyPrefix["sAuthorization"] = ""
- Content-Type: Not defined
- Accept: application/json
AttachmentGetAttachmentlogsV1Response attachmentGetAttachmentlogsV1(pkiAttachmentID)
Retrieve the Attachmentlogs
Using this endpoint, you can retrieve the Attachmentlogs of an attachment.
// Import classes:
//import eZmaxApi.infrastructure.*
//import eZmaxApi.models.*
val apiInstance = ObjectAttachmentApi()
val pkiAttachmentID : kotlin.Int = 56 // kotlin.Int |
try {
val result : AttachmentGetAttachmentlogsV1Response = apiInstance.attachmentGetAttachmentlogsV1(pkiAttachmentID)
println(result)
} catch (e: ClientException) {
println("4xx response calling ObjectAttachmentApi#attachmentGetAttachmentlogsV1")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ObjectAttachmentApi#attachmentGetAttachmentlogsV1")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
pkiAttachmentID | kotlin.Int |
AttachmentGetAttachmentlogsV1Response
Configure Authorization: ApiClient.apiKey["Authorization"] = "" ApiClient.apiKeyPrefix["Authorization"] = ""
- Content-Type: Not defined
- Accept: application/json
AttachmentGetDownloadUrlV1Response attachmentGetDownloadUrlV1(pkiAttachmentID)
Retrieve a URL to download attachments.
This endpoint returns an URL to download the attachment. These links will expire after 5 minutes so the download of the file should be made soon after retrieving the link.
// Import classes:
//import eZmaxApi.infrastructure.*
//import eZmaxApi.models.*
val apiInstance = ObjectAttachmentApi()
val pkiAttachmentID : kotlin.Int = 56 // kotlin.Int |
try {
val result : AttachmentGetDownloadUrlV1Response = apiInstance.attachmentGetDownloadUrlV1(pkiAttachmentID)
println(result)
} catch (e: ClientException) {
println("4xx response calling ObjectAttachmentApi#attachmentGetDownloadUrlV1")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ObjectAttachmentApi#attachmentGetDownloadUrlV1")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
pkiAttachmentID | kotlin.Int |
AttachmentGetDownloadUrlV1Response
Configure Authorization: ApiClient.apiKey["Authorization"] = "" ApiClient.apiKeyPrefix["Authorization"] = ""
- Content-Type: Not defined
- Accept: application/json