Update a Person
With this method, you modify a person with the specified ID
In the payload of the request, you assign values to those fields that you want to modify. For example, to add the birth name of a married female person in addition to the mandatory <familyName>, you may pass a value for <addditionalFamilyName> in the payload of the service request. With that, you could differentiate between different persons who, at first sight, have the same name.
Request
URI: /Persons('<businessPartnerID>')
HTTP Method: PUT
Permissions:
<bp>.u
<bp>.r
<bp>.tenant.r
Request Header Fields
| Name | Required | Description |
|---|---|---|
| X-CSRF-Token | Yes | Cross-site request forgery token |
| If-Match | Yes | Check if cached version matches server version of the person |
Request Parameters
| Name | Required | Type | Description | Send As |
|---|---|---|---|---|
| businessPartnerID | Yes | string | ID of the person | Path parameter |
Request Example
/Persons('adbb2c0fdb0a4b9e99327a52c41fc720')
Payload
Format: JSON
For PUT, POST, and GET requests, only the media type JSON is supported. The JSON for these methods has the following structure:
{"basicData" : {
"businessPartnerID": { "type": "string", "maxLength": 32 },
"tenant" : { "type": "string", "maxLength": 36, "required": true },
"etag" : { "type": "string" }
},
"personName": {
"formOfAddress" : { "type": "string", "maxLength": 10 },
"formOfAddressDescription": { "type": "string", "maxLength": 30, "readOnly" : true },
"familyName" : { "type": "string", "maxLength": 255, "required": true },
"additionalFamilyName": { "type": "string", "maxLength": 255 },
"familyNamePrefix": { "type": "string", "maxLength": 10 },
"middleName": { "type": "string", "maxLength": 255 },
"givenName": { "type": "string", "maxLength": 255, "required": true },
"initials": { "type": "string", "maxLength": 10 },
"academicTitle": { "type": "string", "maxLength": 4 },
"academicTitleDescription": { "type": "string", "maxLength": 60, "readOnly" : true },
"additionalAcademicTitle": { "type": "string", "maxLength": 4 },
"additionalAcademicTitleDescription" : { "type": "string", "maxLength": 60, "readOnly" : true }
},
"communicationData" : {
"emailAddress": { "type": "string", "maxLength": 255, "required": true },
"mobileDestinationLocation": { "type": "string", "maxLength": 2 },
"mobilePhoneNumber": { "type": "string", "maxLength": 127 },
"landlineDestinationLocation": { "type": "string", "maxLength": 2 },
"landlinePhoneNumber": { "type": "string", "maxLength": 127 },
"landlinePhoneNumberExtension": { "type": "string", "maxLength": 127 },
"streetName": { "type": "string", "maxLength": 255 },
"houseNumber": { "type": "string", "maxLength": 10 },
"cityName": { "type": "string", "maxLength": 255 },
"postalCode": { "type": "string", "maxLength": 10 },
"country": { "type": "string", "maxLength": 2 },
"countryDescription": { "type": "string", "maxLength": 60, "readOnly" : true },
"region": { "type": "string", "maxLength": 3 },
"regionDescription": { "type": "string", "maxLength": 60, "readOnly" : true }
},
"objectGroup": { "type": "string", "maxLength": 32, "required": "true" },
"externalIDs": {
value: [{ "type": "string", "maxLength": 60, "required": "false"}]
}
}
Response
Format
Format: JSON
Response Header Fields
| Name | Type | Description |
|---|---|---|
| Etag | string | Identifies the updated Person instance |
Response Status and Error Codes
| Code | Reason |
|---|---|
| 200 | Person updated successfully |