leads

Attach a file to a lead

Changed on

Attach an already-uploaded file to a lead. First upload the file to S3 using the Files API, then pass the resulting download url here along with its filename and content_type.

post/lead/{id}/files/

Request

  • Base URL
    https://api.close.com/api/v1
  • URL
    https://api.close.com/api/v1/lead/{id}/files/
  • Auth
    • HTTP basic
    • or OAuth 2
      Authorization code: https://app.close.com/oauth2/authorize/
      Token URL: https://api.close.com/oauth2/token/

Path parameters

idstring required

Request body

content_typestring required
filenamestring required
urlstring required

Response

Successful response

checksumstring required
content_typestring required
date_createdstring date-time required
date_updatedstring date-time required
download_urlstring required
idstring required
is_pinnedboolean required
last_activity_atstring date-time required
last_object_idstring required
last_object_typestring required
lead_idstring required
namestring required
organization_idstring required
sizeinteger required
thumbnail_urlstring nullable required
updated_bystring nullable required

Changes

    • info

      added the media type application/json for the response with the status

    • info

      added the media type application/json for the response with the status

    • info

      added the media type application/json for the response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      endpoint added