Restore web link
POST https://{{api.box.com}}/2.0/web_links/:web_link_id
Restores a web link that has been moved to the trash.
https://developer.box.com/reference/post-web-links-id
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
fields | string | A comma-separated list of attributes to include in the | |
response. This can be used to request fields that are | |||
not normally returned in a standard response. |
Be aware that specifying this parameter will have the effect that none of the standard fields are returned in the response unless explicitly specified, instead only fields for the mini representation are returned, additional to the fields requested. |
Request Body
{"name"=>"Restored.docx", "parent"=>{"id"=>"123"}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: Created
{"type":"web_link","id":"11446498","sequence_id":"3","etag":"1","name":"My Bookmark","url":"https://www.example.com/example/1234","parent":{"id":"12345","etag":"1","type":"folder","sequence_id":"3","name":"Contracts"},"description":"Example page","path_collection":{"total_count":1,"entries":[{"id":"12345","etag":"1","type":"folder","sequence_id":"3","name":"Contracts"}]},"created_at":"2012-12-12T10:53:43-08:00","modified_at":"2012-12-12T10:53:43-08:00","trashed_at":null,"purged_at":null,"created_by":{"id":"11446498","type":"user","name":"Aaron Levie","login":"ceo@example.com"},"modified_by":{"id":"11446498","type":"user","name":"Aaron Levie","login":"ceo@example.com"},"owned_by":{"id":"11446498","type":"user","name":"Aaron Levie","login":"ceo@example.com"},"shared_link":null,"item_status":"trashed"}