How to pass attachment url in attachment creation API
I am trying to create atachments through API. I pass my file's s3 public url. But when I try to view the file I get the below error - {"statusCode":400,"message":"Folder https: is not allowed","error":"Bad Request"}
My API request -
curl https://api.twenty.com/rest/attachments \
--request POST \
--header 'Content-Type: application/json' \
--data '{
"name": "test attachmnet through api 2",
"fullPath": "https://attachments-test-home.s3.ap-southeast-1.amazonaws.com/Twenty%20Hosted%20-%20%281%29.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-P",
"type": "",
"opportunityId": "a379099a-3013-42ee-b001-1581b14cbba1"
}'
I am not sure which url should I pass here. Any help is appreciated.
My API request -
curl https://api.twenty.com/rest/attachments \
--request POST \
--header 'Content-Type: application/json' \
--data '{
"name": "test attachmnet through api 2",
"fullPath": "https://attachments-test-home.s3.ap-southeast-1.amazonaws.com/Twenty%20Hosted%20-%20%281%29.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-P",
"type": "",
"opportunityId": "a379099a-3013-42ee-b001-1581b14cbba1"
}'
I am not sure which url should I pass here. Any help is appreciated.