Foundation Data & Integrations
JSON REST API
PATCH Request - Updating existing records
2 min
patch requests provide incremental updates to a record, without replacing the content of the entire record url format single record the format to update a single record is https //\[instance url]/v1/\[table name] https //docs servicely atlassian net/wiki/spaces/sd/pages/2077556747/get+request+ +retrieving+records# /\[id] example https //sandbox servicely ai/v1/user/c0a8011645fb1a608145fb3102b10000 https //sandbox servicely ai/v1/user/c0a8011645fb1a608145fb3102b10000 example deactivate user and change their last name ➜ https v patch https //sandbox servicely ai/v1/user/c0a8011645fb1a608145fb3102b10000 active=false lastname="employee (ex)" patch /v1/user/c0a8011645fb1a608145fb3102b10000 http/1 1 { "active" "false", "lastname" "employee (ex)" } http/1 1 200 ok content length 657 content type application/json { "data" { "active" false, "createdby" "4028818a3b214291013b21504a000000", "createdon" "2020 01 01t14 44 24 853z", "email" "eric employee\@servicely ai", "firstname" "erik", "lastname" "employee (ex)", "lockedout" false, "name" "erik employee (ex)", "sid" "lboawmmfanx4v", "selectableforassignment" false, "selectableforrequests" false, "tableclass" "user", "updatedby" "4028818a3b214291013b21504a000000", "updatedon" "2021 06 16t11 59 42 153z", "username" "erik employee", "vip" false, "version" 20, "id" "c0a8011645fb1a608145fb3102b10000" } }