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

Error while moving the content from one user to other.

New post

Comments

2 comments

  • Murtza

     Based on the error you shared, your request might be missing a closing bracket for the owned_by parameter. Here's an example showing the format of this call:

     

    curl https://api.box.com/2.0/users/USER_ID/folders/FOLDER_ID \
    -H "Authorization: Bearer ACCESS_TOKEN" \
    -d '{"owned_by": {"id": "USER_ID"}}' \
    -X PUT

     

    0
    Comment actions Permalink
  • sanjeevs

    hi Murtza ,

     

    Thanks for the response .

    I have verified it again , iam not missing any closing bracket.

    Request :

    curl -i https://api.box.com/2.0/users/235******722/folders/0 -H "Authorization: Bearer ********token********" -d '{"owned_by": {"id": "132****421"}}' -X PUT

     

    Error : {"type":"error","status":400,"code":"bad_request","context_info":{"errors":[{"reason":"invalid_parameter","name":"entity-body","message":"Invalid value ''{owned_by:'. Entity body should be a
    correctly nested resource attribute name\/value pair"}]},"help_url":"http:\/\/developers.box.com\/docs\/#errors","message":"Bad Request","request_id":"491942*******cc00e"}curl: (3) [globb
    ing] unmatched brace in column 1
    curl: (3) [globbing] unmatched close brace/bracket in column 11

     

     

    Its giving the same error .

     

    0
    Comment actions Permalink

Please sign in to leave a comment.