Level up your Box knowledge with brand new learning paths on Box University. Visit training.box.com to get started

Box API returns HTTP 403 when trying to collaborate APP-USER

New post

Comments

1 comment

  • pcapdown

    I also tried using the user-id rather than the email address:

     

    BoxFolder root = BoxFolder.getRootFolder(enterpriseAccess);
    BoxCollaborator collaborator = new BoxUser(enterpriseAccess, APP_USER_NAME);
    root.collaborate(collaborator, BoxCollaboration.Role.VIEWER_UPLOADER);

    This returned a 404:

    {"type":"error","status":404,"code":"not_found","context_info":{"errors":[{"reason":"invalid_parameter","name":"id","message":"Invalid value 'qed.warehouse'. 'id' with value 'qed.warehouse' not found"}]},"help_url":"http:\\/\\/developers.box.com\\/docs\\/#errors","message":"Not Found","request_id":"removed for privacy57a8c5526b735"}

    It is as if my new App User was not created.

     

    0
    Comment actions Permalink

Please sign in to leave a comment.