Retrieve All User's Attachments

/services/v2/users/gdpr/[user-id]/attachments.json

- URL Params
No params needed; the user ID is already a path param.

- Data Params
No data params

🚧

For Permissions, Requirements, and More Detailed Information:

Reference the GDPR Plugin Docs in the Non-Reference portion of the documentation.

Sample Request

A GET Retrieve All User's Attachments request for a user named admin (userId:108) sent to https://apidocs.cloud.answerhub.com using a human-readable Username/Password (answerhub/test123) would look like this:

curl 
-u answerhub:test123
-H "Accept:application/json" 
-H "Content-Type:application/json"
-X GET "https://apidocs.cloud.answerhub.com/services/v2/users/gdpr/108/attachments.json"

Expected Responses

- Success Response:
Code:200
Content:[{"nodeId":<node_id>,"nodeType":<node_type>,"fileName":<file_name>,"size":,"sizeFormatted":<size_formatted>,"url":,"image":}]

- Error Response:
Code:422 UNPROCESSABLE ENTRY
Content:{ error : "Invalid User Id" }

Sample Response

[
    {
        "nodeId": 885,
        "nodeType": "node",
        "fileName": "retrieve-all-attchmnts-test-2-of-2-2019-02-25-at-4.png",
        "size": 57727,
        "sizeFormatted": "57.7 kB",
        "url": "/storage/attachments/6-retrieve-all-attchmnts-test-2-of-2-2019-02-25-at-4.png",
        "image": true
    },
    {
        "nodeId": 883,
        "nodeType": "node",
        "fileName": "retrieve-all-attchmnts-test-1-2019-02-25-at-35302.png",
        "size": 44384,
        "sizeFormatted": "44.4 kB",
        "url": "/storage/attachments/13-retrieve-all-attchmnts-test-1-2019-02-25-at-35302.png",
        "image": true
    }
]

Exampe 1 for Attachments in the UI
NodeId: 880 = Question 1 for Example Attachment
NodeId: 883 = Admin Answer with Attachment 1

Example 2 for Attachments in the UI
NodeId: 845 = Question 2 for Example Attachment
NodeId: 885 = Admin Answer with Attachment 2

Language
Authorization
Basic
base64
:
Click Try It! to start a request and see the response here!