Join BoxWorks in San Francisco Nov 12-13! Keynotes, product demos, and Box Master Classes. Reserve your spot!

API Docmumentation erroneous / Example lacking or wrong

New post

Comments

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.

    0
    Comment actions Permalink

Please sign in to leave a comment.