Back to All

Issue in create attachment API

I am using create new attachment API "https://client-api.{region}.fieldwire.com/api/v3/projects/{project_id}/attachments" to upload a document to Fieldwire.

I am using the below request body while calling the POST API request mentioned above

{
"creator_user_id": <user_id>,
"last_editor_user_id": <user_id>,
"file_url": "",
"name": "Test Document Google Drive.pdf",
"folder_id": "",
"kind": "file"
}

After the API call, I see the document added under a project and under a specific folder in Fieldwire. But when I try to access the document I am getting the below error.

FYI, I uploaded my document in google drive and provided access to everyone. I am able to access the document from any browser (because it is shared with everyone) and I use the same URL in my post request forfile_url.

But everything is working fine if I use any of the existing attachments url in Fieldwire during my POST API request.