curl --request POST \
--url https://api.light.inc/rest/ext/v1/attachments \
--header 'Content-Type: application/json;charset=UTF-8' \
--data '{
"resourceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"documentKey": "<string>",
"fileName": "<string>",
"contentType": "<string>",
"metadata": {
"type": "AR"
}
}'
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"resourceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"documentKey": "<string>",
"fileName": "<string>",
"contentType": "<string>",
"createdBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"metadata": {
"type": "AR"
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
Creates a new attachment
curl --request POST \
--url https://api.light.inc/rest/ext/v1/attachments \
--header 'Content-Type: application/json;charset=UTF-8' \
--data '{
"resourceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"documentKey": "<string>",
"fileName": "<string>",
"contentType": "<string>",
"metadata": {
"type": "AR"
}
}'
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"resourceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"documentKey": "<string>",
"fileName": "<string>",
"contentType": "<string>",
"createdBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"metadata": {
"type": "AR"
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
default response
The response is of type object
.