Questions regarding the BOX API

Answered
New post

Comments

3 comments

  • Peter Christensen

    Hi Leon

    For the first issue. The 'Custom metadata' uses the global 'properties' template, You can retrieve using this API
    https://api.box.com/2.0/files/<fileId>/metadata/global/properties

    For the second issue. You could try the https://developer.box.com/reference/get-shared-items/ endpoint
    This takes a shared link in the BoxApi header and will return the full JSON of the file represented by the shared link

    Best regards, Peter Christensen, Platform Solutions Engineer, Box

    0
    Comment actions Permalink
  • Leon Schäfer

    Hi Peter,

    thank you for your answer.

    For the first issue:

    The link https://api.box.com/2.0/files/<fileId>/metadata/global/properties doesnt work for me (i am signed in). Maybe this is not public?

    For the send issue:

    This could lead to too many calls since we would like to recieve all the files stored in "recents". But if this is the only solution we maybe give it a try.

    Best regards, Leon Schäfer

     

     

    0
    Comment actions Permalink
  • Peter Christensen

    Hi Leon

     

    The https://api.box.com/2.0/files/<fileId>/metadata/global/properties link is to an API so you would need to run it in postman or cURL or similar with an authorization header and a valid file ID. Like below

    curl -i -X GET "https://api.box.com/2.0/files/12345/metadata/global/properties" \
         -H "Authorization: Bearer <ACCESS_TOKEN>"

    Rgds,
    Peter

    0
    Comment actions Permalink

Please sign in to leave a comment.