Upload Lead File
POST
/leads/upload-attachment/{lead_id}Uploads a new file associated with a specific lead.
Request
Body Params multipart/form-data
attachment
file
required
Responses
Success(200)
Validation(422)
Not found(404)
Unauthorized(401)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
status
string
required
message
string
required
attachment
object
required
id
string
required
file_name
string
required
dateadded
string
required
attchementURL
string
required
lead_id
string
required
Example
{
"status": "success",
"message": "file uploaded",
"attachment": {
"id": "1",
"file_name": "calendly.svg",
"dateadded": "2024-08-09 07:10:47",
"attchementURL": "http://chatforcelocal.com/uploads/leads/1/calendly.svg",
"lead_id": "1"
}
}
Last modified: 3 months ago