function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sunil Kumar 545Sunil Kumar 545 

how to declare request body method in rest class using workbench kit

SandhyaSandhya (Salesforce Developers) 
Hi,

Refer below link for similar discussion.

https://developer.salesforce.com/forums/?id=9060G000000XhMLQA0
 
https://salesforce.stackexchange.com/questions/122495/how-to-create-a-record-in-workbench-using-rest-explorer
 
Please mark it as solved if my reply was helpful, it will make it available
for others as a proper solution.

Best Regards,
​Sandhya
 
Prady01Prady01
Hi, You can add the body if the REST request type is PUT or POST or PATCH then you will get an option to add the body.
User-added image



Thanks,
Prady01