Restore a Bookmark
Purpose
This API is used to restore a previously deleted bookmark.
OAuth Scope
Use the scope
ZohoMail.links.ALL (or) ZohoMail.links.UPDATE
to generate the Authtoken.
ALL - Grants full access to links.
UPDATE - Grants access to update links.
Request URL
Method: PUT
Group bookmarks :
https://mail.zoho.com/api/links/groups/{groupId}/{bookmarkId}/restore
or
Personal bookmarks :
https://mail.zoho.com/api/links/me/{bookmarkId}/restore
Path Parameters
- groupId* long
- Specify the unique ID of the group.
- This parameter can be retrieved from the Get all groups API.
- bookmarkId* long
- Specify the unique ID of the bookmark to be restored.
- This parameter can be retrieved from the Get all bookmarks API.
* - Mandatory parameter
Response Codes
Refer here for the response codes and their meaning.
Sample Request - For Group
Copiedcurl "https://mail.zoho.com/api/links/groups/123456789/1712055380477110001/restore" \
-X PUT \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization:Zoho-oauthtoken *****"
Sample Request - For Personal
Copiedcurl "https://mail.zoho.com/api/links/me/1712055380477110001/restore" \
-X PUT \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization:Zoho-oauthtoken *****"
Sample Success Response
Copied{
"status": {
"code": 200,
"description": "success"
}
}
Sample Failure Response
Copied{
"status": {
"code": 500,
"description": "Internal Error"
},
"data": {
"moreInfo": "ENTITY_NOT_IN_TRASH"
}
}