Chilkat Online Tools

unicodeCpp / Salesforce Platform APIs / Update a Record

Back to Collection Items

#include <CkHttpW.h>
#include <CkJsonObjectW.h>
#include <CkStringBuilderW.h>
#include <CkHttpResponseW.h>

void ChilkatSample(void)
    {
    // This example assumes the Chilkat API to have been previously unlocked.
    // See Global Unlock Sample for sample code.

    CkHttpW http;
    bool success;

    // Use this online tool to generate code from sample JSON: Generate Code to Create JSON

    // The following JSON is sent in the request body.

    // {
    //   "allowSaveOnDuplicate": false,
    //   "fields": {
    //     "FieldAPIName": "FieldValue"
    //   }
    // }

    CkJsonObjectW json;
    json.UpdateBool(L"allowSaveOnDuplicate",false);
    json.UpdateString(L"fields.FieldAPIName",L"FieldValue");

    // Adds the "Authorization: Bearer <access_token>" header.
    http.put_AuthToken(L"<access_token>");
    http.SetRequestHeader(L"Content-Type",L"application/json");

    CkStringBuilderW sbRequestBody;
    json.EmitSb(sbRequestBody);

    CkHttpResponseW *resp = http.PTextSb(L"PATCH",L"https://domain.com/services/data/v{{version}}/ui-api/records/:RECORD_ID",sbRequestBody,L"utf-8",L"application/json",false,false);
    if (http.get_LastMethodSuccess() == false) {
        wprintf(L"%s\n",http.lastErrorText());
        return;
    }

    CkStringBuilderW sbResponseBody;
    resp->GetBodySb(sbResponseBody);

    CkJsonObjectW jResp;
    jResp.LoadSb(sbResponseBody);
    jResp.put_EmitCompact(false);

    wprintf(L"Response Body:\n");
    wprintf(L"%s\n",jResp.emit());

    int respStatusCode = resp->get_StatusCode();
    wprintf(L"Response Status Code = %d\n",respStatusCode);
    if (respStatusCode >= 400) {
        wprintf(L"Response Header:\n");
        wprintf(L"%s\n",resp->header());
        wprintf(L"Failed.\n");
        delete resp;
        return;
    }

    delete resp;

    // Sample JSON response:
    // (Sample code for parsing the JSON response is shown below)

    // {
    //   "apiName": "Account",
    //   "childRelationships": {},
    //   "eTag": "1be6f040e46732e79a0999d6fea9fe7d",
    //   "fields": {
    //     "AccountNumber": {
    //       "displayValue": null,
    //       "value": null
    //     },
    //     "Active__c": {
    //       "displayValue": null,
    //       "value": null
    //     },
    //     "AnnualRevenue": {
    //       "displayValue": null,
    //       "value": null
    //     },
    //     "BillingCity": {
    //       "displayValue": null,
    //       "value": null
    //     },
    //     "BillingCountry": {
    //       "displayValue": null,
    //       "value": null
    //     },
    //     "BillingPostalCode": {
    //       "displayValue": null,
    //       "value": null
    //     },
    //     "BillingState": {
    //       "displayValue": null,
    //       "value": null
    //     },
    //     "BillingStreet": {
    //       "displayValue": null,
    //       "value": null
    //     },
    //     "CreatedBy": {
    //       "displayValue": "Philippe Ozil",
    //       "value": {
    //         "apiName": "User",
    //         "childRelationships": {},
    //         "eTag": "cc07f7ef1b08ddbd75074c69512dd388",
    //         "fields": {
    //           "Id": {
    //             "displayValue": null,
    //             "value": "005B0000003TOI6IAO"
    //           },
    //           "Name": {
    //             "displayValue": null,
    //             "value": "Philippe Ozil"
    //           }
    //         },
    //         "id": "005B0000003TOI6IAO",
    //         "lastModifiedById": "005B0000003TOI6IAO",
    //         "lastModifiedDate": "2023-02-02T10:32:12.000Z",
    //         "recordTypeId": null,
    //         "recordTypeInfo": null,
    //         "systemModstamp": "2023-09-27T15:47:51.000Z",
    //         "weakEtag": 1695829671000
    //       }
    //     },
    //     "CreatedById": {
    //       "displayValue": null,
    //       "value": "005B0000003TOI6IAO"
    //     },
    //     "CreatedDate": {
    //       "displayValue": "27/09/2023 18:01",
    //       "value": "2023-09-27T16:01:14.000Z"
    //     },
    //     "CustomerPriority__c": {
    //       "displayValue": null,
    //       "value": null
    //     },
    //     "Description": {
    //       "displayValue": null,
    //       "value": null
    //     },
    //     "Fax": {
    //       "displayValue": null,
    //       "value": null
    //     },
    //     "Industry": {
    //       "displayValue": null,
    //       "value": null
    //     },
    //     "LastModifiedBy": {
    //       "displayValue": "Philippe Ozil",
    //       "value": {
    //         "apiName": "User",
    //         "childRelationships": {},
    //         "eTag": "cc07f7ef1b08ddbd75074c69512dd388",
    //         "fields": {
    //           "Id": {
    //             "displayValue": null,
    //             "value": "005B0000003TOI6IAO"
    //           },
    //           "Name": {
    //             "displayValue": null,
    //             "value": "Philippe Ozil"
    //           }
    //         },
    //         "id": "005B0000003TOI6IAO",
    //         "lastModifiedById": "005B0000003TOI6IAO",
    //         "lastModifiedDate": "2023-02-02T10:32:12.000Z",
    //         "recordTypeId": null,
    //         "recordTypeInfo": null,
    //         "systemModstamp": "2023-09-27T15:47:51.000Z",
    //         "weakEtag": 1695829671000
    //       }
    //     },
    //     "LastModifiedById": {
    //       "displayValue": null,
    //       "value": "005B0000003TOI6IAO"
    //     },
    //     "LastModifiedDate": {
    //       "displayValue": "27/09/2023 18:04",
    //       "value": "2023-09-27T16:04:41.000Z"
    //     },
    //     "Name": {
    //       "displayValue": null,
    //       "value": "My Renamed Account"
    //     },
    //     "NumberOfEmployees": {
    //       "displayValue": null,
    //       "value": null
    //     },
    //     "NumberofLocations__c": {
    //       "displayValue": null,
    //       "value": null
    //     },
    //     "Owner": {
    //       "displayValue": "Philippe Ozil",
    //       "value": {
    //         "apiName": "User",
    //         "childRelationships": {},
    //         "eTag": "cc07f7ef1b08ddbd75074c69512dd388",
    //         "fields": {
    //           "Id": {
    //             "displayValue": null,
    //             "value": "005B0000003TOI6IAO"
    //           },
    //           "Name": {
    //             "displayValue": null,
    //             "value": "Philippe Ozil"
    //           }
    //         },
    //         "id": "005B0000003TOI6IAO",
    //         "lastModifiedById": "005B0000003TOI6IAO",
    //         "lastModifiedDate": "2023-02-02T10:32:12.000Z",
    //         "recordTypeId": null,
    //         "recordTypeInfo": null,
    //         "systemModstamp": "2023-09-27T15:47:51.000Z",
    //         "weakEtag": 1695829671000
    //       }
    //     },
    //     "OwnerId": {
    //       "displayValue": null,
    //       "value": "005B0000003TOI6IAO"
    //     },
    //     "Ownership": {
    //       "displayValue": null,
    //       "value": null
    //     },
    //     "Parent": {
    //       "displayValue": null,
    //       "value": null
    //     },
    //     "ParentId": {
    //       "displayValue": null,
    //       "value": null
    //     },
    //     "Phone": {
    //       "displayValue": null,
    //       "value": null
    //     },
    //     "Rating": {
    //       "displayValue": null,
    //       "value": null
    //     },
    //     "SLAExpirationDate__c": {
    //       "displayValue": null,
    //       "value": null
    //     },
    //     "SLASerialNumber__c": {
    //       "displayValue": null,
    //       "value": null
    //     },
    //     "SLA__c": {
    //       "displayValue": null,
    //       "value": null
    //     },
    //     "ShippingCity": {
    //       "displayValue": null,
    //       "value": null
    //     },
    //     "ShippingCountry": {
    //       "displayValue": null,
    //       "value": null
    //     },
    //     "ShippingPostalCode": {
    //       "displayValue": null,
    //       "value": null
    //     },
    //     "ShippingState": {
    //       "displayValue": null,
    //       "value": null
    //     },
    //     "ShippingStreet": {
    //       "displayValue": null,
    //       "value": null
    //     },
    //     "Sic": {
    //       "displayValue": null,
    //       "value": null
    //     },
    //     "Site": {
    //       "displayValue": null,
    //       "value": null
    //     },
    //     "TickerSymbol": {
    //       "displayValue": null,
    //       "value": null
    //     },
    //     "Type": {
    //       "displayValue": null,
    //       "value": null
    //     },
    //     "UpsellOpportunity__c": {
    //       "displayValue": null,
    //       "value": null
    //     },
    //     "Website": {
    //       "displayValue": null,
    //       "value": null
    //     }
    //   },
    //   "id": "0011Q00002Z2P5jQAF",
    //   "lastModifiedById": "005B0000003TOI6IAO",
    //   "lastModifiedDate": "2023-09-27T16:04:41.000Z",
    //   "recordTypeId": "012000000000000AAA",
    //   "recordTypeInfo": null,
    //   "systemModstamp": "2023-09-27T16:04:41.000Z",
    //   "weakEtag": 1695830681000
    // }

    // Sample code for parsing the JSON response...
    // Use this online tool to generate parsing code from sample JSON: Generate JSON Parsing Code

    // Chilkat functions returning "const char *" return a pointer to temporary internal memory owned and managed by Chilkat.

    const wchar_t *apiName = jResp.stringOf(L"apiName");
    const wchar_t *eTag = jResp.stringOf(L"eTag");
    const wchar_t *DisplayValue = jResp.stringOf(L"fields.AccountNumber.displayValue");
    const wchar_t *Value = jResp.stringOf(L"fields.AccountNumber.value");
    const wchar_t *Active__cDisplayValue = jResp.stringOf(L"fields.Active__c.displayValue");
    const wchar_t *Active__cValue = jResp.stringOf(L"fields.Active__c.value");
    const wchar_t *AnnualRevenueDisplayValue = jResp.stringOf(L"fields.AnnualRevenue.displayValue");
    const wchar_t *AnnualRevenueValue = jResp.stringOf(L"fields.AnnualRevenue.value");
    const wchar_t *BillingCityDisplayValue = jResp.stringOf(L"fields.BillingCity.displayValue");
    const wchar_t *BillingCityValue = jResp.stringOf(L"fields.BillingCity.value");
    const wchar_t *BillingCountryDisplayValue = jResp.stringOf(L"fields.BillingCountry.displayValue");
    const wchar_t *BillingCountryValue = jResp.stringOf(L"fields.BillingCountry.value");
    const wchar_t *BillingPostalCodeDisplayValue = jResp.stringOf(L"fields.BillingPostalCode.displayValue");
    const wchar_t *BillingPostalCodeValue = jResp.stringOf(L"fields.BillingPostalCode.value");
    const wchar_t *BillingStateDisplayValue = jResp.stringOf(L"fields.BillingState.displayValue");
    const wchar_t *BillingStateValue = jResp.stringOf(L"fields.BillingState.value");
    const wchar_t *BillingStreetDisplayValue = jResp.stringOf(L"fields.BillingStreet.displayValue");
    const wchar_t *BillingStreetValue = jResp.stringOf(L"fields.BillingStreet.value");
    const wchar_t *CreatedByDisplayValue = jResp.stringOf(L"fields.CreatedBy.displayValue");
    const wchar_t *ApiName = jResp.stringOf(L"fields.CreatedBy.value.apiName");
    const wchar_t *ETag = jResp.stringOf(L"fields.CreatedBy.value.eTag");
    const wchar_t *IdDisplayValue = jResp.stringOf(L"fields.CreatedBy.value.fields.Id.displayValue");
    const wchar_t *IdValue = jResp.stringOf(L"fields.CreatedBy.value.fields.Id.value");
    const wchar_t *NameDisplayValue = jResp.stringOf(L"fields.CreatedBy.value.fields.Name.displayValue");
    const wchar_t *NameValue = jResp.stringOf(L"fields.CreatedBy.value.fields.Name.value");
    const wchar_t *Id = jResp.stringOf(L"fields.CreatedBy.value.id");
    const wchar_t *LastModifiedById = jResp.stringOf(L"fields.CreatedBy.value.lastModifiedById");
    const wchar_t *LastModifiedDate = jResp.stringOf(L"fields.CreatedBy.value.lastModifiedDate");
    const wchar_t *RecordTypeId = jResp.stringOf(L"fields.CreatedBy.value.recordTypeId");
    const wchar_t *RecordTypeInfo = jResp.stringOf(L"fields.CreatedBy.value.recordTypeInfo");
    const wchar_t *SystemModstamp = jResp.stringOf(L"fields.CreatedBy.value.systemModstamp");
    int WeakEtag = jResp.IntOf(L"fields.CreatedBy.value.weakEtag");
    const wchar_t *CreatedByIdDisplayValue = jResp.stringOf(L"fields.CreatedById.displayValue");
    const wchar_t *CreatedByIdValue = jResp.stringOf(L"fields.CreatedById.value");
    const wchar_t *CreatedDateDisplayValue = jResp.stringOf(L"fields.CreatedDate.displayValue");
    const wchar_t *CreatedDateValue = jResp.stringOf(L"fields.CreatedDate.value");
    const wchar_t *CustomerPriority__cDisplayValue = jResp.stringOf(L"fields.CustomerPriority__c.displayValue");
    const wchar_t *CustomerPriority__cValue = jResp.stringOf(L"fields.CustomerPriority__c.value");
    const wchar_t *DescriptionDisplayValue = jResp.stringOf(L"fields.Description.displayValue");
    const wchar_t *DescriptionValue = jResp.stringOf(L"fields.Description.value");
    const wchar_t *FaxDisplayValue = jResp.stringOf(L"fields.Fax.displayValue");
    const wchar_t *FaxValue = jResp.stringOf(L"fields.Fax.value");
    const wchar_t *IndustryDisplayValue = jResp.stringOf(L"fields.Industry.displayValue");
    const wchar_t *IndustryValue = jResp.stringOf(L"fields.Industry.value");
    const wchar_t *LastModifiedByDisplayValue = jResp.stringOf(L"fields.LastModifiedBy.displayValue");
    const wchar_t *ValueApiName = jResp.stringOf(L"fields.LastModifiedBy.value.apiName");
    const wchar_t *ValueETag = jResp.stringOf(L"fields.LastModifiedBy.value.eTag");
    IdDisplayValue = jResp.stringOf(L"fields.LastModifiedBy.value.fields.Id.displayValue");
    IdValue = jResp.stringOf(L"fields.LastModifiedBy.value.fields.Id.value");
    NameDisplayValue = jResp.stringOf(L"fields.LastModifiedBy.value.fields.Name.displayValue");
    NameValue = jResp.stringOf(L"fields.LastModifiedBy.value.fields.Name.value");
    const wchar_t *ValueId = jResp.stringOf(L"fields.LastModifiedBy.value.id");
    const wchar_t *ValueLastModifiedById = jResp.stringOf(L"fields.LastModifiedBy.value.lastModifiedById");
    const wchar_t *ValueLastModifiedDate = jResp.stringOf(L"fields.LastModifiedBy.value.lastModifiedDate");
    const wchar_t *ValueRecordTypeId = jResp.stringOf(L"fields.LastModifiedBy.value.recordTypeId");
    const wchar_t *ValueRecordTypeInfo = jResp.stringOf(L"fields.LastModifiedBy.value.recordTypeInfo");
    const wchar_t *ValueSystemModstamp = jResp.stringOf(L"fields.LastModifiedBy.value.systemModstamp");
    int ValueWeakEtag = jResp.IntOf(L"fields.LastModifiedBy.value.weakEtag");
    const wchar_t *LastModifiedByIdDisplayValue = jResp.stringOf(L"fields.LastModifiedById.displayValue");
    const wchar_t *LastModifiedByIdValue = jResp.stringOf(L"fields.LastModifiedById.value");
    const wchar_t *LastModifiedDateDisplayValue = jResp.stringOf(L"fields.LastModifiedDate.displayValue");
    const wchar_t *LastModifiedDateValue = jResp.stringOf(L"fields.LastModifiedDate.value");
    NameDisplayValue = jResp.stringOf(L"fields.Name.displayValue");
    NameValue = jResp.stringOf(L"fields.Name.value");
    const wchar_t *NumberOfEmployeesDisplayValue = jResp.stringOf(L"fields.NumberOfEmployees.displayValue");
    const wchar_t *NumberOfEmployeesValue = jResp.stringOf(L"fields.NumberOfEmployees.value");
    const wchar_t *NumberofLocations__cDisplayValue = jResp.stringOf(L"fields.NumberofLocations__c.displayValue");
    const wchar_t *NumberofLocations__cValue = jResp.stringOf(L"fields.NumberofLocations__c.value");
    const wchar_t *OwnerDisplayValue = jResp.stringOf(L"fields.Owner.displayValue");
    ValueApiName = jResp.stringOf(L"fields.Owner.value.apiName");
    ValueETag = jResp.stringOf(L"fields.Owner.value.eTag");
    IdDisplayValue = jResp.stringOf(L"fields.Owner.value.fields.Id.displayValue");
    IdValue = jResp.stringOf(L"fields.Owner.value.fields.Id.value");
    NameDisplayValue = jResp.stringOf(L"fields.Owner.value.fields.Name.displayValue");
    NameValue = jResp.stringOf(L"fields.Owner.value.fields.Name.value");
    ValueId = jResp.stringOf(L"fields.Owner.value.id");
    ValueLastModifiedById = jResp.stringOf(L"fields.Owner.value.lastModifiedById");
    ValueLastModifiedDate = jResp.stringOf(L"fields.Owner.value.lastModifiedDate");
    ValueRecordTypeId = jResp.stringOf(L"fields.Owner.value.recordTypeId");
    ValueRecordTypeInfo = jResp.stringOf(L"fields.Owner.value.recordTypeInfo");
    ValueSystemModstamp = jResp.stringOf(L"fields.Owner.value.systemModstamp");
    ValueWeakEtag = jResp.IntOf(L"fields.Owner.value.weakEtag");
    const wchar_t *OwnerIdDisplayValue = jResp.stringOf(L"fields.OwnerId.displayValue");
    const wchar_t *OwnerIdValue = jResp.stringOf(L"fields.OwnerId.value");
    const wchar_t *OwnershipDisplayValue = jResp.stringOf(L"fields.Ownership.displayValue");
    const wchar_t *OwnershipValue = jResp.stringOf(L"fields.Ownership.value");
    const wchar_t *ParentDisplayValue = jResp.stringOf(L"fields.Parent.displayValue");
    const wchar_t *ParentValue = jResp.stringOf(L"fields.Parent.value");
    const wchar_t *ParentIdDisplayValue = jResp.stringOf(L"fields.ParentId.displayValue");
    const wchar_t *ParentIdValue = jResp.stringOf(L"fields.ParentId.value");
    const wchar_t *PhoneDisplayValue = jResp.stringOf(L"fields.Phone.displayValue");
    const wchar_t *PhoneValue = jResp.stringOf(L"fields.Phone.value");
    const wchar_t *RatingDisplayValue = jResp.stringOf(L"fields.Rating.displayValue");
    const wchar_t *RatingValue = jResp.stringOf(L"fields.Rating.value");
    const wchar_t *SLAExpirationDate__cDisplayValue = jResp.stringOf(L"fields.SLAExpirationDate__c.displayValue");
    const wchar_t *SLAExpirationDate__cValue = jResp.stringOf(L"fields.SLAExpirationDate__c.value");
    const wchar_t *SLASerialNumber__cDisplayValue = jResp.stringOf(L"fields.SLASerialNumber__c.displayValue");
    const wchar_t *SLASerialNumber__cValue = jResp.stringOf(L"fields.SLASerialNumber__c.value");
    const wchar_t *SLA__cDisplayValue = jResp.stringOf(L"fields.SLA__c.displayValue");
    const wchar_t *SLA__cValue = jResp.stringOf(L"fields.SLA__c.value");
    const wchar_t *ShippingCityDisplayValue = jResp.stringOf(L"fields.ShippingCity.displayValue");
    const wchar_t *ShippingCityValue = jResp.stringOf(L"fields.ShippingCity.value");
    const wchar_t *ShippingCountryDisplayValue = jResp.stringOf(L"fields.ShippingCountry.displayValue");
    const wchar_t *ShippingCountryValue = jResp.stringOf(L"fields.ShippingCountry.value");
    const wchar_t *ShippingPostalCodeDisplayValue = jResp.stringOf(L"fields.ShippingPostalCode.displayValue");
    const wchar_t *ShippingPostalCodeValue = jResp.stringOf(L"fields.ShippingPostalCode.value");
    const wchar_t *ShippingStateDisplayValue = jResp.stringOf(L"fields.ShippingState.displayValue");
    const wchar_t *ShippingStateValue = jResp.stringOf(L"fields.ShippingState.value");
    const wchar_t *ShippingStreetDisplayValue = jResp.stringOf(L"fields.ShippingStreet.displayValue");
    const wchar_t *ShippingStreetValue = jResp.stringOf(L"fields.ShippingStreet.value");
    const wchar_t *SicDisplayValue = jResp.stringOf(L"fields.Sic.displayValue");
    const wchar_t *SicValue = jResp.stringOf(L"fields.Sic.value");
    const wchar_t *SiteDisplayValue = jResp.stringOf(L"fields.Site.displayValue");
    const wchar_t *SiteValue = jResp.stringOf(L"fields.Site.value");
    const wchar_t *TickerSymbolDisplayValue = jResp.stringOf(L"fields.TickerSymbol.displayValue");
    const wchar_t *TickerSymbolValue = jResp.stringOf(L"fields.TickerSymbol.value");
    const wchar_t *TypeDisplayValue = jResp.stringOf(L"fields.Type.displayValue");
    const wchar_t *TypeValue = jResp.stringOf(L"fields.Type.value");
    const wchar_t *UpsellOpportunity__cDisplayValue = jResp.stringOf(L"fields.UpsellOpportunity__c.displayValue");
    const wchar_t *UpsellOpportunity__cValue = jResp.stringOf(L"fields.UpsellOpportunity__c.value");
    const wchar_t *WebsiteDisplayValue = jResp.stringOf(L"fields.Website.displayValue");
    const wchar_t *WebsiteValue = jResp.stringOf(L"fields.Website.value");
    const wchar_t *id = jResp.stringOf(L"id");
    const wchar_t *lastModifiedById = jResp.stringOf(L"lastModifiedById");
    const wchar_t *lastModifiedDate = jResp.stringOf(L"lastModifiedDate");
    const wchar_t *recordTypeId = jResp.stringOf(L"recordTypeId");
    const wchar_t *recordTypeInfo = jResp.stringOf(L"recordTypeInfo");
    const wchar_t *systemModstamp = jResp.stringOf(L"systemModstamp");
    int weakEtag = jResp.IntOf(L"weakEtag");
    }

Curl Command

curl -X PATCH
	-H "Authorization: Bearer <access_token>"
	-H "Content-Type: application/json"
	-d '{
    "allowSaveOnDuplicate": false,
    "fields": {
        "FieldAPIName": "FieldValue"
    }
}'
https://domain.com/services/data/v{{version}}/ui-api/records/:RECORD_ID

Postman Collection Item JSON

{
  "name": "Update a Record",
  "event": [
    {
      "listen": "prerequest",
      "script": {
        "exec": [
          ""
        ],
        "type": "text/javascript"
      }
    }
  ],
  "request": {
    "method": "PATCH",
    "header": [
      {
        "key": "Content-Type",
        "type": "text",
        "value": "application/json"
      }
    ],
    "body": {
      "mode": "raw",
      "raw": "{\n    \"allowSaveOnDuplicate\": false,\n    \"fields\": {\n        \"FieldAPIName\": \"FieldValue\"\n    }\n}"
    },
    "url": {
      "raw": "{{_endpoint}}/services/data/v{{version}}/ui-api/records/:RECORD_ID",
      "host": [
        "{{_endpoint}}"
      ],
      "path": [
        "services",
        "data",
        "v{{version}}",
        "ui-api",
        "records",
        ":RECORD_ID"
      ],
      "variable": [
        {
          "key": "RECORD_ID",
          "value": "",
          "description": "Record ID"
        }
      ]
    },
    "description": "Update a record's data.\nUser Interface API enforces Salesforce validation rules. If a validation rule fails, the response is an Error with Output.\n\nWhen you make a PATCH request to update a record, make sure that the record hasn’t changed since the user started editing it. To find out whether it’s safe to save a record, pass the If-Modified-Since HTTP header in the request.\n\nAs of API version 43.0, if you pass read-only fields in a request body, the response is an Error with Output."
  },
  "response": [
    {
      "name": "Update a Record",
      "originalRequest": {
        "method": "PATCH",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"allowSaveOnDuplicate\": false,\n    \"fields\": {\n        \"Name\": \"My Renamed Account\"\n    }\n}"
        },
        "url": {
          "raw": "{{_endpoint}}/services/data/v{{version}}/ui-api/records/:RECORD_ID",
          "host": [
            "{{_endpoint}}"
          ],
          "path": [
            "services",
            "data",
            "v{{version}}",
            "ui-api",
            "records",
            ":RECORD_ID"
          ],
          "variable": [
            {
              "key": "RECORD_ID",
              "value": "0011Q00002Z2P5jQAF",
              "description": "Record ID"
            }
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Date",
          "value": "Wed, 27 Sep 2023 16:04:41 GMT"
        },
        {
          "key": "Strict-Transport-Security",
          "value": "max-age=63072000; includeSubDomains"
        },
        {
          "key": "X-Content-Type-Options",
          "value": "nosniff"
        },
        {
          "key": "X-XSS-Protection",
          "value": "1; mode=block"
        },
        {
          "key": "X-Robots-Tag",
          "value": "none"
        },
        {
          "key": "Cache-Control",
          "value": "no-cache,must-revalidate,max-age=0,no-store,private"
        },
        {
          "key": "ETag",
          "value": "\"1be6f040e46732e79a0999d6fea9fe7d\""
        },
        {
          "key": "Content-Type",
          "value": "application/json;charset=UTF-8"
        },
        {
          "key": "Transfer-Encoding",
          "value": "chunked"
        }
      ],
      "cookie": [
      ],
      "body": "{\n    \"apiName\": \"Account\",\n    \"childRelationships\": {},\n    \"eTag\": \"1be6f040e46732e79a0999d6fea9fe7d\",\n    \"fields\": {\n        \"AccountNumber\": {\n            \"displayValue\": null,\n            \"value\": null\n        },\n        \"Active__c\": {\n            \"displayValue\": null,\n            \"value\": null\n        },\n        \"AnnualRevenue\": {\n            \"displayValue\": null,\n            \"value\": null\n        },\n        \"BillingCity\": {\n            \"displayValue\": null,\n            \"value\": null\n        },\n        \"BillingCountry\": {\n            \"displayValue\": null,\n            \"value\": null\n        },\n        \"BillingPostalCode\": {\n            \"displayValue\": null,\n            \"value\": null\n        },\n        \"BillingState\": {\n            \"displayValue\": null,\n            \"value\": null\n        },\n        \"BillingStreet\": {\n            \"displayValue\": null,\n            \"value\": null\n        },\n        \"CreatedBy\": {\n            \"displayValue\": \"Philippe Ozil\",\n            \"value\": {\n                \"apiName\": \"User\",\n                \"childRelationships\": {},\n                \"eTag\": \"cc07f7ef1b08ddbd75074c69512dd388\",\n                \"fields\": {\n                    \"Id\": {\n                        \"displayValue\": null,\n                        \"value\": \"005B0000003TOI6IAO\"\n                    },\n                    \"Name\": {\n                        \"displayValue\": null,\n                        \"value\": \"Philippe Ozil\"\n                    }\n                },\n                \"id\": \"005B0000003TOI6IAO\",\n                \"lastModifiedById\": \"005B0000003TOI6IAO\",\n                \"lastModifiedDate\": \"2023-02-02T10:32:12.000Z\",\n                \"recordTypeId\": null,\n                \"recordTypeInfo\": null,\n                \"systemModstamp\": \"2023-09-27T15:47:51.000Z\",\n                \"weakEtag\": 1695829671000\n            }\n        },\n        \"CreatedById\": {\n            \"displayValue\": null,\n            \"value\": \"005B0000003TOI6IAO\"\n        },\n        \"CreatedDate\": {\n            \"displayValue\": \"27/09/2023 18:01\",\n            \"value\": \"2023-09-27T16:01:14.000Z\"\n        },\n        \"CustomerPriority__c\": {\n            \"displayValue\": null,\n            \"value\": null\n        },\n        \"Description\": {\n            \"displayValue\": null,\n            \"value\": null\n        },\n        \"Fax\": {\n            \"displayValue\": null,\n            \"value\": null\n        },\n        \"Industry\": {\n            \"displayValue\": null,\n            \"value\": null\n        },\n        \"LastModifiedBy\": {\n            \"displayValue\": \"Philippe Ozil\",\n            \"value\": {\n                \"apiName\": \"User\",\n                \"childRelationships\": {},\n                \"eTag\": \"cc07f7ef1b08ddbd75074c69512dd388\",\n                \"fields\": {\n                    \"Id\": {\n                        \"displayValue\": null,\n                        \"value\": \"005B0000003TOI6IAO\"\n                    },\n                    \"Name\": {\n                        \"displayValue\": null,\n                        \"value\": \"Philippe Ozil\"\n                    }\n                },\n                \"id\": \"005B0000003TOI6IAO\",\n                \"lastModifiedById\": \"005B0000003TOI6IAO\",\n                \"lastModifiedDate\": \"2023-02-02T10:32:12.000Z\",\n                \"recordTypeId\": null,\n                \"recordTypeInfo\": null,\n                \"systemModstamp\": \"2023-09-27T15:47:51.000Z\",\n                \"weakEtag\": 1695829671000\n            }\n        },\n        \"LastModifiedById\": {\n            \"displayValue\": null,\n            \"value\": \"005B0000003TOI6IAO\"\n        },\n        \"LastModifiedDate\": {\n            \"displayValue\": \"27/09/2023 18:04\",\n            \"value\": \"2023-09-27T16:04:41.000Z\"\n        },\n        \"Name\": {\n            \"displayValue\": null,\n            \"value\": \"My Renamed Account\"\n        },\n        \"NumberOfEmployees\": {\n            \"displayValue\": null,\n            \"value\": null\n        },\n        \"NumberofLocations__c\": {\n            \"displayValue\": null,\n            \"value\": null\n        },\n        \"Owner\": {\n            \"displayValue\": \"Philippe Ozil\",\n            \"value\": {\n                \"apiName\": \"User\",\n                \"childRelationships\": {},\n                \"eTag\": \"cc07f7ef1b08ddbd75074c69512dd388\",\n                \"fields\": {\n                    \"Id\": {\n                        \"displayValue\": null,\n                        \"value\": \"005B0000003TOI6IAO\"\n                    },\n                    \"Name\": {\n                        \"displayValue\": null,\n                        \"value\": \"Philippe Ozil\"\n                    }\n                },\n                \"id\": \"005B0000003TOI6IAO\",\n                \"lastModifiedById\": \"005B0000003TOI6IAO\",\n                \"lastModifiedDate\": \"2023-02-02T10:32:12.000Z\",\n                \"recordTypeId\": null,\n                \"recordTypeInfo\": null,\n                \"systemModstamp\": \"2023-09-27T15:47:51.000Z\",\n                \"weakEtag\": 1695829671000\n            }\n        },\n        \"OwnerId\": {\n            \"displayValue\": null,\n            \"value\": \"005B0000003TOI6IAO\"\n        },\n        \"Ownership\": {\n            \"displayValue\": null,\n            \"value\": null\n        },\n        \"Parent\": {\n            \"displayValue\": null,\n            \"value\": null\n        },\n        \"ParentId\": {\n            \"displayValue\": null,\n            \"value\": null\n        },\n        \"Phone\": {\n            \"displayValue\": null,\n            \"value\": null\n        },\n        \"Rating\": {\n            \"displayValue\": null,\n            \"value\": null\n        },\n        \"SLAExpirationDate__c\": {\n            \"displayValue\": null,\n            \"value\": null\n        },\n        \"SLASerialNumber__c\": {\n            \"displayValue\": null,\n            \"value\": null\n        },\n        \"SLA__c\": {\n            \"displayValue\": null,\n            \"value\": null\n        },\n        \"ShippingCity\": {\n            \"displayValue\": null,\n            \"value\": null\n        },\n        \"ShippingCountry\": {\n            \"displayValue\": null,\n            \"value\": null\n        },\n        \"ShippingPostalCode\": {\n            \"displayValue\": null,\n            \"value\": null\n        },\n        \"ShippingState\": {\n            \"displayValue\": null,\n            \"value\": null\n        },\n        \"ShippingStreet\": {\n            \"displayValue\": null,\n            \"value\": null\n        },\n        \"Sic\": {\n            \"displayValue\": null,\n            \"value\": null\n        },\n        \"Site\": {\n            \"displayValue\": null,\n            \"value\": null\n        },\n        \"TickerSymbol\": {\n            \"displayValue\": null,\n            \"value\": null\n        },\n        \"Type\": {\n            \"displayValue\": null,\n            \"value\": null\n        },\n        \"UpsellOpportunity__c\": {\n            \"displayValue\": null,\n            \"value\": null\n        },\n        \"Website\": {\n            \"displayValue\": null,\n            \"value\": null\n        }\n    },\n    \"id\": \"0011Q00002Z2P5jQAF\",\n    \"lastModifiedById\": \"005B0000003TOI6IAO\",\n    \"lastModifiedDate\": \"2023-09-27T16:04:41.000Z\",\n    \"recordTypeId\": \"012000000000000AAA\",\n    \"recordTypeInfo\": null,\n    \"systemModstamp\": \"2023-09-27T16:04:41.000Z\",\n    \"weakEtag\": 1695830681000\n}"
    }
  ]
}