I must use this patch http callout. Is any one has idea?
http://developers.goformz.com/docs/update-an-existing-data-source-1
I get error
"Invalid HTTP method: PATCH"
Exception.
In our project need to use this callout. Is any other way to update the record from salesforce to goformz record?
HttpRequest req= new HttpRequest();
req.setMethod('PATCH');
req.setHeader('Content-Type','application/json');
String username = '[email protected]';
String password = 'password123';
Blob headerValue = Blob.valueOf(username + ':' + password);
String authorizationHeader = 'Basic ' + EncodingUtil.base64Encode(headerValue);
req.setHeader('Authorization', authorizationHeader);
req.setBody('{"name": "DE-111","fields": {"7f91803f-fed6-41cb-b506-a62d01500de0": { "text": "Test Street1111" } }}');
Http http = new Http();
String url = 'https://api.goformz.com/v2/formz/4bc24f7f-bac8-4632-97b6-a640005becb8';
req.setEndpoint(url);
HttpResponse res = http.send(req);
PATCH
is available in salesforce. see this post salesforce.stackexchange.com/a/13300