DeletedPerson
A DeletedPerson object is a physical backup for a logically deleted Person object.
Whenever a user deletes a Person object from an IoT scenario, this deletion is a logical rather than a physical deletion. That is, from a user's perspective, the deleted person is no longer available in the system and cannot be accessed anymore. However, in the background, the system takes several steps to ensure that the deleted person can still be restored, if need be. Here are some use cases where access to a previously deleted person may be required:
-
Restoring a person that has accidentally been deleted
-
Retrieving a person for auditing purposes
-
Retrieving a person in the context of a lawsuit
Due to the special nature of the DeletedPerson object, access to objects of this kind is limited to system administrators with special authorizations. Moreover, a DeletedPerson object has a restricted set of methods that can be accessed via the SAP IoT API. For example, there is no Create method available, nor can it be modified. This is to make sure that a DeletedPerson objects can only be created in the system according to certain predefined and hard-coded rules. These rules enforce that DeletedPerson objects can only exist under well-defined circumstances laid down in legal frameworks that are relevant for operating an IoT scenario.
Write access to DeletedPerson objects residing in a tenant other than the one to which a user is logged on is only allowed for users who are acting in the role of a cloud platform provider.
Base URI:/DeletedPersons('<businessPartnerID>')
Permissions: <bp>.pd
-
Formal description: https://<server address>[:<port number>]/[<path>]/DeletedPersons
- Example for a base URI in a cloud foundry environment: https://business-partner.cfapps.eu10.hana.ondemand.com/DeletedPersons
Methods
| HTTP Method | Action | URI | Scopes |
|---|---|---|---|
| GET | Read a DeletedPerson | /DeletedPersons('<businessPartnerID>') | <bp>.pd |
| GET | Read all DeletedPersons | /DeletedPersons | <bp>.pd |
| DELETE | Delete a DeletedPerson | /DeletedPersons('<businessPartnerID>') | <bp>.pd |
Payload
Format: JSON
Only 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 },
"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 }
}