APEX - Creating page based on SaaS REST API. HTTP-400 Bad Request on update.
Summary
Created a page based on the SaaS Suppliers RESTful API. Retrieving row works fine, HTTP-400 when I try and update oneContent
Hey folks
I'm trying to create an APEX page which lets me retrieve the suppliers using REST and then update one of them.
I've created a Web Source Module, URL Path Prefix is /fscmRestApi/resources/11.13.18.05/suppliers
Operations are GET and PATCH
GET is set to Database Action of Fetch Rows
PATCH is set to Database Action of Update row
I edit the PATCH operation so that the Request Body Template is
{
"supplierid":#SUPPLIERID#, "supplier":#SUPPLIER#
}
so it can only update 2 fields.
Tagged:
0