Skip to product menu
Skip to main content

Add attachments in learner answer in author preview

The purpose of this API is to add attachments in learner answer.

Request URL:https://learn.zoho.com/learn/api/v1/portal/<portalUrl>/file
OAuth Scope:ZohoLearn.attachment.CREATE
Request Method:POST
ParameterDescriptionRequired
previewFile Attachment FileRequired

Response

Copied{
    "STATUS": "OK",
    "ATTACHMENTS": [
        {
            "imageWidth": "2200",
            "fileName": "file_example_PNG_3MB.png",
            "attachmentItemType": "ARTICLE",
            "attachmentType": "ATTACH",
            "imageHeight": "1467",
            "isImage": "true",
            "size": "2.83 MB",
            "fileSize": "2964729",
            "viewUrl": "/_lms/api/portal/zylker-network/tempfile/6342496000000090007",
            "id": "6342496000000090007",
            "viewCount": "0",
            "contentType": "image/png",
            "downloadCount": "0"
        }
    ]
 }

Show full

Show less

Sample URL

Copiedhttps://learn.zoho.com/learn/api/v1/portal/zylker-network/file