Skip to main content
Question

Error while moving the content from one user to other.

  • May 22, 2025
  • 2 replies
  • 24 views

Forum|alt.badge.img

hi ,

I'm trying to move the content from one user to other , but when iam trying from curl iam getting the below 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":"***card # removed for privacy***d8a1fa8c"}curl: (3) [globb
ing] unmatched close brace/bracket in column 15

2 replies

Forum|alt.badge.img

 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

 


Forum|alt.badge.img

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 .