Welcome to the new Box Support website. Check out all the details here on what’s changed.

Creating collaboration for user's email alias (or new user for that matter)

New post

Comments

1 comment

  • Bibek

    Hi there,

    I believe you could use "login" instead of "id" if the user doesn't exist in box as it says in doc:

     

    Child of accessible_by. An email address (does not need to be a Box user). Omit if this is a group, or if you include the userID above

    e.g request:

    curl https://api.box.com/2.0/collaborations \
    -H "Authorization: Bearer ACCESS_TOKEN" \
    -d '{"item": { "id": "FOLDER_ID", "type": "folder"}, "accessible_by": { "login": "***@example.com", "type": "user" }, "role": "editor"}' \
    -X POST

    When you do that it sends collaboration invite instead.

    Let me know if that helps.

     

    Thanks,

    Bibek

    0
    Comment actions Permalink

Please sign in to leave a comment.