Trimble Connect User Forum

 View Only
Expand all | Collapse all

Files/Folders not Found in API

  • 1.  Files/Folders not Found in API

    Posted 01-22-2019 06:02
      |   view attached

    I can't seem to be able to get a successful return on "/files" and "/folders" API endpoints.

     

    I have followed the documentation's instructions and included fileId/foderId - depending on the call - yet still getting back a 404 Not Found. Please see attached screenshot with example.

     

    API call:

    (GET) https://app.connect.trimble.com/tc/api/2.0/files/{fileId}

     

    Return:

    {
    "message": "File not found",
    "errorcode": "OBJECT_NOT_FOUND"
    }

     

    I have been testing with fileId/folderId from TC URL, as well as file excel exports which contain the file's fieldId. 

     

    Can someone please advise if there's a problem with the API or if potentially I'm doing something wrong.

    Any help would be appreciated. 

     

    Many thanks,

    Sergio. 



  • 2.  Re: Files/Folders not Found in API

    Posted 01-23-2019 04:27

    Hi Sergio,

     

    Is the location of the project in North America? Or it is Europe or Asia.

     

    If it is in Europe, please edit the URL with "https://app21.connect.trimble.com/tc/api/2.0/files/{fileID}

    and It is Asia, URL will be "https://app31.connect.trimble.com/tc/api/2.0/files/{fileID}

     

    For any further queries, please send an email to connect-support@trimble.com

     

    Regards,

    Ankit Sulodia



  • 3.  Re: Files/Folders not Found in API

    Posted 01-23-2019 08:25

    Hi Ankit, 

     

    Thanks for the prompt response. Using app21 has solved the issue as the server is in Europe region.

     

    Many thanks,

    Sergio