API Docmumentation erroneous / Example lacking or wrong

New post


1 comment

  • bx_dev2
    curl --location --request POST 'https://api.box.com/2.0/collaborations/' \

    --header 'Authorization: Bearer token’ \

    --header 'Content-Type: text/plain' \

    --header 'Cookie: site_preference=desktop' \

    --data-raw '{"item": { "id": “folder”, "type": "folder"}, "accessible_by": { "login": “email@gmail.com"}, "role": "editor"}'

    Might be something off in the formatting of the command given the error. The above worked for me in curl 

    I was also able to add collaboration in Postman.

    Comment actions Permalink

Please sign in to leave a comment.