Delete Appointments Rescheduled History

Purpose

To delete a record from the appointments rescheduled history.

Request Details

Request URL

{api-domain}/crm/{version}/Appointments_Rescheduled_History__s/{record_id}

Header

Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52

Scope

scope=ZohoCRM.modules.appointments_rescheduled_history.{operation_type}

Possible operation types

ALL - Full access to appointments rescheduled history data
DELETE - Delete appointments rescheduled history data

Note

  • You can delete only one record from the appointments rescheduled history per API call.
  • All the rescheduled history records of an appointment will be deleted when you delete the particular appointment from the organization's recycle bin.

Sample Request

Copiedcurl "https://www.zohoapis.com/crm/v7/Appointments_Rescheduled_History__s/5545974000002324052"
-X DELETE
-H "Authorization: Zoho-oauthtoken 1000.8cb99dxxxxxxxxxxxxx9be93.9b8xxxxxxxxxxxxxxxf"

Possible Errors

  • INVALID_DATAHTTP 400

    You have specified either an incorrect or an already deleted record ID.
    Solution: Make a GET Appointments Rescheduled History API call and provide a valid record ID.

  • INVALID_REQUEST_METHODHTTP 400

    You have given an invalid http request method type.
    Solution: Use only the DELETE method in the request URL to access this API.

  • REQUIRED_PARAM_MISSINGHTTP 400

    You failed to specify the record ID, which has to be deleted.
    Solution: Specify a record ID from the appointments rescheduled history in the request URL.

  • INVALID_TOKENHTTP 401

    You have used an invalid oauth token.
    Solution: The access token you used has expired. Kindly refresh your token and retry.

  • OAUTH_SCOPE_MISMATCHHTTP 401

    You created the grant token using the wrong oauth scope.
    Solution: Use either ZohoCRM.modules.appointments_rescheduled_history.DELETE or ZohoCRM.modules.appointments_rescheduled_history.ALL scope to create a new valid grant token.

  • NO_PERMISSIONHTTP 403

    You do not have permission to delete any records from the appointments rescheduled history.
    Solution: Contact your system administrator.

  • INVALID_URL_PATTERNHTTP 404

    Check if you are trying to access the correct URL.
    Solution: You have given an invalid request URL. Use either /Appointments_Rescheduled_History__s?ids={record_id} or /Appointments_Rescheduled_History__s/{record_id} endpoints in the request URL.

  • INTERNAL_ERRORHTTP 500

    Internal Server Error
    Solution: Unexpected and unhandled exception in server. Please contact our support team.

Sample Response

Copied{
    "data": [
        {
            "code": "SUCCESS",
            "details": {
                "id": "5545974000002324052"
            },
            "message": "record deleted",
            "status": "success"
        }
    ]
}