# API: Add file to client profile

# addClientFile

Add file (with data) to client profile. File can be admin only, or accessible by client. Returned is newly created file id

# Required parameters

Parameter Description
client_id Client ID to upload this file for
data Base64 encoded file data
name How this file should appear in interface
filename Original filename with extension, ie: quote.pdf

# Optional parameters

Parameter Description
admin_only Set this param to 1 if this file should be visible for administrators only
services Array with ID of the services for which the file to be assigned

# Request

GET /admin/api.php?api_id=API_ID&api_key=API_KEY&call=addClientFile&client_id=CLIENT_ID&data=DATA&name=NAME&filename=FILENAME

# PHP Samples

# Response

{
    "success": true,
    "file_id": "4",
    "call": "addClientFile",
    "server_time": 1354718392,
    "info": [
        "New file uploaded"
    ]
}
Last Updated: 5/22/2023, 2:31:50 PM