Update Account

PATCH {{baseUrl}}/accounts/:id

Use this API to update account details. A token with ORGADMIN, SOURCEADMIN, or SOURCE_SUBADMIN authority is required to call this API. This API supports updating an account's correlation. You can modify only the identityId and manuallyCorrelated fields for any flat file account. To reassign an account from one identity to another, replace the current identityId with a new value. If the account you're assigning was provisioned by Identity Security Cloud (ISC), it's possible for ISC to create a new account for the previous identity as soon as the account is moved. If the account you're assigning is authoritative, this causes the previous identity to become uncorrelated and can even result in its deletion. All accounts that are reassigned will be set to manuallyCorrelated: true unless you specify otherwise.

Note: The attributes field can only be modified for flat file accounts.

Request Body

{"Uncorrelate account"=>{"description"=>"Remove account from Identity", "value"=>[{"op"=>"remove", "path"=>"/identityId"}]}, "Reassign account"=>{"description"=>"Move account from one Identity to another Identity", "value"=>[{"op"=>"replace", "path"=>"/identityId", "value"=>"2c9180857725c14301772a93bb77242d"}]}, "Add account attribute"=>{"description"=>"Add flat file account's attribute", "value"=>[{"op"=>"add", "path"=>"/attributes/familyName", "value"=>"Smith"}]}, "Replace account attribute"=>{"description"=>"Replace flat file account's attribute", "value"=>[{"op"=>"replace", "path"=>"/attributes/familyName", "value"=>"Smith"}]}, "Remove account attribute"=>{"description"=>"Remove flat file account's attribute", "value"=>[{"op"=>"remove", "path"=>"/attributes/familyName"}]}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring