Create attachment
https://api.light.inc/v1/attachments
Creates a new attachment record
Permissions checked: vendors/portal-forms:update (COMPANY_ADMIN, VENDOR_MANAGEMENT) and whatever editing the record it belongs to needs, such as a bill. What a call needs depends on the caller, the record and the request.
Authorization
Send one of these on every request. See Authentication for how to get credentials.
- API key
Basic authentication header of the form Basic <api_key>, where <api_key> is your api key.
- Bearer token
Request body
application/json;charset=UTF-8
-
resourceIdstring · uuid -
documentKeystring -
fileNamestring -
contentTypestring -
metadataobject-
typestring⚠️ This enum is not exhaustive; new values may be added in the future.
One of
APARVENDOR_PORTAL -
shouldAttachToEmailboolean
-
Response
-
idstring · uuid -
companyIdstring · uuid -
resourceIdstring · uuid -
documentKeystring -
fileNamestring -
contentTypestring -
createdBystring · uuid -
metadataobject-
typestring⚠️ This enum is not exhaustive; new values may be added in the future.
One of
APARVENDOR_PORTAL
-
-
createdAtstring · date-time -
updatedAtstring · date-time -
statusstringARCHIVED once the attachment was archived. Who archived it and when is on the record's activity log.
⚠️ This enum is not exhaustive; new values may be added in the future.
One of
ACTIVEARCHIVED