Skip to content

Instantly share code, notes, and snippets.

@dubeyji10
Created August 1, 2022 06:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dubeyji10/ac1db36402000edf376cb7f49e63f276 to your computer and use it in GitHub Desktop.
Save dubeyji10/ac1db36402000edf376cb7f49e63f276 to your computer and use it in GitHub Desktop.
API CALLS markdown report

API Calls test cases and report

After using response from get users api (https://www.zohoapis.in/crm/v2.1/users)

Following test cases for insertion of record with owner assignment were performed

REQUEST TYPE REQUEST URL REQUEST BODY REQUEST RESPONSE
POST https://www.zohoapis.in/crm/v2.1/Leads { "data": [ { "Owner": { "name": "Nitisha Chawla" }, "Company": "Dummy", "time_to": "2022-08-01", "Email": "dummy@email.com", "report_type": "Sample Report Dummy", "user_id": "nitisha70701", "Annual_Revenue": null, "Full_Name": "(lead) - HS Code 2704 & 2701", "Last_Name": "(lead) - HS Code 2704 & 2701", "Layout": { "name": "LeadsExportGenius", "id": "348201000000237745" }, } ], "trigger": [ "approval", "workflow", "blueprint" ] } { "data": [ { "code": "EXPECTED_FIELD_MISSING", "details": { "expected_fields": [ { "api_name": "id", "json_path": "$.data[0].Owner.id" }, { "api_name": "email", "json_path": "$.data[0].Owner.email" } ] }, "message": "Specify atleast one field", "status": "error" } ] }
POST https://www.zohoapis.in/crm/v2.1/Leads { "data": [ { "Owner": { "name": "Nitisha Chawla", "id": "270924000000253094", "email": "nitisha@exportgenius.in" }, "Company": "Dummy", "time_to": "2022-08-01", "Email": "dummy@email.com", "report_type": "Sample Report Dummy", "user_id": "nitisha70701", "Annual_Revenue": null, "Full_Name": "(lead) - HS Code 2704 & 2701", "Last_Name": "(lead) - HS Code 2704 & 2701", "Layout": { "name": "LeadsExportGenius", "id": "348201000000237745" }, } ], "trigger": [ "approval", "workflow", "blueprint" ] } { "data": [ { "code": "INVALID_DATA", "details": { "api_name": "id", "json_path": "$.data[0].Owner.id" }, "message": "invalid data", "status": "error" } ] }
POST https://www.zohoapis.in/crm/v2.1/Leads { "data": [ { "Owner": { "name": "Nitisha Chawla", "id": 270924000000253094, "email": "nitisha@exportgenius.in" }, "Company": "Dummy", "time_to": "2022-08-01", "Email": "dummy@email.com", "report_type": "Sample Report Dummy", "user_id": "nitisha70701", "Annual_Revenue": null, "Full_Name": "(lead) - HS Code 2704 & 2701", "Last_Name": "(lead) - HS Code 2704 & 2701", "Layout": { "name": "LeadsExportGenius", "id": "348201000000237745" }, } ], "trigger": [ "approval", "workflow", "blueprint" ] } { "data": [ { "code": "INVALID_DATA", "details": { "api_name": "id", "json_path": "$.data[0].Owner.id" }, "message": "invalid data", "status": "error" } ] }
POST https://www.zohoapis.in/crm/v2.1/Leads { "data": [ { "Owner": { "name": "Nitisha Chawla", "id": "270924000000263001", "email": "nitisha@exportgenius.in" }, "Company": "Dummy", "time_to": "2022-08-01", "Email": "dummy@email.com", "report_type": "Sample Report Dummy", "user_id": "nitisha70701", "Annual_Revenue": null, "Full_Name": "(lead) - HS Code 2704 & 2701", "Last_Name": "(lead) - HS Code 2704 & 2701", "Layout": { "name": "LeadsExportGenius", "id": "348201000000237745" }, } ], "trigger": [ "approval", "workflow", "blueprint" ] } { "data": [ { "code": "INVALID_DATA", "details": { "api_name": "id", "json_path": "$.data[0].Owner.id" }, "message": "invalid data", "status": "error" } ] }
POST https://www.zohoapis.in/crm/v2.1/Leads { "data": [ { "Owner": { "name": "Nitisha Chawla", "id": 270924000000263001, "email": "nitisha@exportgenius.in" }, "Company": "Dummy", "time_to": "2022-08-01", "Email": "dummy@email.com", "report_type": "Sample Report Dummy", "user_id": "nitisha70701", "Annual_Revenue": null, "Full_Name": "(lead) - HS Code 2704 & 2701", "Last_Name": "(lead) - HS Code 2704 & 2701", "Layout": { "name": "LeadsExportGenius", "id": "348201000000237745" }, } ], "trigger": [ "approval", "workflow", "blueprint" ] } { "data": [ { "code": "INVALID_DATA", "details": { "api_name": "id", "json_path": "$.data[0].Owner.id" }, "message": "invalid data", "status": "error" } ] }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment