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": "<document url>",
"name": "Test Document Google Drive.pdf",
"folder_id": "<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.
![](https://files.readme.io/5dbf787-image.png)
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 for**file_url**.
But everything is working fine if I use any of the existing attachments url in Fieldwire during my POST API request.
Posted by Offsite Consultant 2 months ago
Is there any API call where I can get the attachments by project and folder also?
<https://client-api.{region}.fieldwire.com/api/v3/projects/{project_id}/attachments>
Above API call is providing all the attachments based on project and there is no filter by folder.
Posted by Offsite Consultant 2 months ago
how to create a new task_types record
Hi, trying to create a new task_types record so we can make the visibilty of task_type_attributes specific to a category.
I can use GET <https://app.fieldwire.com/api/v3/projects/{{ProjectID}}/task_types> to retreive the task_types which show just the one record "default"
If I try a POST to that endpoint it returns an error 404 not found.
Posted by aaron rodgers 5 months ago
Use the JWT to access EU
hello,
I have a project hosted on the European servers but I can't use the api to access it.
I can get a JWT with "URL = "<https://client-api.super.fieldwire.com/api_keys/jwt">
body = {"api_token": "<API token>"}".
But when I try to use ""<https://client-api.eu.fieldwire.com/api/v3/projects/project_id/tasks""> in a command for example, I get back "{"errors":["Please use JWT for authentication"]}"" even though I write ".header("Authorization", "Token api=<JWT>".
Posted by Boulay quentin 5 months ago
Is there an API to get all the watchers of all tasks in a Project
I'm looking for an API similar to <https://app.fieldwire.com/api/v3/projects/{project_id}/tasks/tags> but instead of returning the tag ids it returns the user ids. Is this a possibility? Currently it appears there isn't even an OpenAPI documented way of collecting the users watching a specific task.
Thanks!
Posted by Steven Roderick 9 months ago
Unable to generate a task through httpclient
I am trying to generate a task using HttpClient. When i do this on the API Reference sandbox, this works fine. I copy the relevant code into my project with the same body and headers and i keep getting a 422 error returned.
Posted by Geoff Wilson 10 months ago
I would like to get 'categories' I think they're called.
How do get actual non meta data for a project?
I want to know firestopping, client will address etc. I see they are in the 'categories' section of the report builder. But I can't find them in the brief explanations in the API quick introduction. Is there a more in-depth guide to the API; besides the brief API guide and reference listed above?
Posted by Michael Wieland 10 months ago
Getting the JID for the report
I would like to retrieve a report through the API but it is asking for a JID and I don't know how to generate one.
Posted by Michael Wieland 10 months ago
Unable to make calls to API
I am trying to use the API Reference docs to try the Create Project API endpoint. When i am adding my API Token, the regex is failing, as i assume this is looking for a 40 character string and I am receiving a 64 character string from the API Token. The only response I get when i press the "Try Me!" button is a 401: not authorized response. I have tried this with multiple generated tokens and am having the same issue each time. I have also tried running this in postman and am getting a similar issue.
Posted by Geoff Wilson 11 months ago
what does this error mean?
Entity not found: (Active) Project with ids
Posted by Michael 11 months ago