Update Attribute Sync Config

PUT {{baseUrl}}/sources/:id/attribute-sync-config

Replaces the attribute synchronization configuration for the source specified by the given ID with the configuration provided in the request body. Only the enabled field of the values in the attributes array is mutable. Attempting to change other attributes or add new values to the attributes array will result in an error.

A token with ORG_ADMIN authority is required to call this API.

Request Body

{"source"=>{"type"=>"SOURCE", "id"=>"2c9180835d191a86015d28455b4b232a", "name"=>"HR Active Directory"}, "attributes"=>[{"name"=>"email", "displayName"=>"Email", "enabled"=>true, "target"=>"mail"}, {"name"=>"firstname", "displayName"=>"First Name", "enabled"=>false, "target"=>"givenName"}]}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{"source":{"type":"SOURCE","id":"2c9180835d191a86015d28455b4b232a","name":"HR Active Directory"},"attributes":[{"name":"email","displayName":"Email","enabled":true,"target":"mail"},{"name":"firstname","displayName":"First Name","enabled":false,"target":"givenName"}]}