Format of the response for successful requests with detailed information
Released: JSON representation
In this chapter, you will learn about the output format for detailed information on successful requests. Depending on the result of the processing, the HTTP request is returned with descriptive detailed information.
Description of the parameters for the response to the successful request with detailed information:
Property | Description |
---|---|
| Array with detailed information about the request |
Description of the parameters of a responseDetails
object:
Property | Description |
---|---|
| Code of the type
|
| Title that briefly states what detailed information is involved. |
| Detailed description for detailed information. |
| Optional further reference with possible information on actions. |
| Optional parameter that contains further data on the detailed information, e.g. for programmatic evaluation of data. |
Description of the parameters of a ResponseDetailData
object:
Property | Description |
---|---|
| Current value of the target item. |
| ID of the source item to which the detailed information refers (e.g. source, source property, source category). |
| ID of the target item assigned to the source item (e.g. target property, target category). |
| Value of the source item to be written into the target item. |
Examples of a response for a successful request with detailed information on the respective ResponseDetail
codes:
Example 1: DmsApp-Mapping-IgnoredNotModifiableDestinationProperty
HTTP/1.1 200 OK { "responseDetails": [ { "code": "DmsApp-Mapping-IgnoredNotModifiableDestinationProperty", "title": "Ignored source property", "detail": "The source property with the ID 'myprop1_ID' was ignored because the mapped destination property with the ID '5' ('Name') is not modifiable. The current value for the property is 'Value of Name' and is not overwritten by the given value 'Value for myprop1'.", "hint": "Please adjust the d.3 configuration if you still want to write the values or contact your administrator.", "data": { "sourceItemId": "myprop1_ID", "sourceItemValue": "Value for myprop1", "destinationItemId": "5", "destinationItemValue": "Value of Name" } } ] }
Example 2: DmsApp-Mapping-NoMappingFoundForSourceCategory
HTTP/1.1 200 OK { "responseDetails": [ { "code": "DmsApp-Mapping-NoMappingFoundForSourceCategory", "title": "Ignored source category", "detail": "The source category with the ID 'CAT1' was ignored because no mapping to a destination category was found.", "hint": "Please configure a mapping for the given source category or contact your administrator.", "data": { "sourceItemId": "CAT1" } } ] }
Example 3: DmsApp-Mapping-IgnoredDestinationSystemPropertyDueToUpdateMode
HTTP/1.1 200 OK { "responseDetails": [ { "code": "DmsApp-Mapping-IgnoredDestinationSystemPropertyDueToUpdateMode", "title": "Ignored source property", "detail": "The source property with the ID 'PROP2' was ignored because the mapped destination property with the ID 'property_document_number', which is a system property, cannot be changed in update mode.", "data": { "sourceItemId": "PROP2", "destinationItemId": "property_document_number" } } ] }
Example 4: DmsApp-Mapping-MappingForSourceNotFound
HTTP/1.1 200 OK { "responseDetails": [ { "code": "DmsApp-Mapping-MappingForSourceNotFound", "title": "Mapping configuration not found", "detail": "No mapping configuration was found for the source with the ID '/myapp/sources/mysourcex'. For this reason, no mapping is applied and any given values for properties or categories are ignored.", "hint": "Please configure a mapping for the given source or contact your administrator.", "data": { "sourceItemId": "/myapp/sources/mysourcex" } } ] }
Example 5: DmsApp-Mapping-NoDestinationCategoryFoundWithDestinationProperty
HTTP/1.1 200 OK { "responseDetails": [ { "code": "DmsApp-Mapping-NoDestinationCategoryFoundWithDestinationProperty", "title": "Ignored source property", "detail": "The source property with the ID 'myprop1_ID' was ignored because the mapped destination property with the ID '5' was not found in any destination category.", "data": { "sourceItemId": "myprop1_ID", "destinationItemId": "5" } } ] }
Example 6: DmsApp-Mapping-NoMappingFoundForSourceProperty
HTTP/1.1 200 OK { "responseDetails": [ { "code": "DmsApp-Mapping-NoMappingFoundForSourceProperty", "title": "Ignored source property", "detail": "The source property with the ID 'PROP3' was ignored because no mapping to a destination property was found.", "hint": "Please configure a mapping for the given source property or contact your administrator.", "data": { "sourceItemId": "PROP3" } } ] }
Example 7: DmsApp-Mapping-NoSourceProperties
HTTP/1.1 200 OK { "responseDetails": [ { "code": "DmsApp-Mapping-NoSourceProperties", "title": "No source properties given", "detail": "No source properties were given that could be mapped." } ] }
Example 8: DmsApp-Mapping-NoValuesGivenForSourceProperty
HTTP/1.1 200 OK { "responseDetails": [ { "code": "DmsApp-Mapping-NoValuesGivenForSourceProperty", "title": "Ignored source property", "detail": "The source property with the ID 'myprop1_ID' was ignored because no values were given.", "data": { "sourceItemId": "myprop1_ID" } } ] }
Example 9: DmsApp-Mapping-PropertyStatusIgnored
HTTP/1.1 200 OK { "responseDetails": [ { "code": "DmsApp-Mapping-PropertyStatusIgnored", "title": "Ignored source property", "detail": "The source property with the ID 'myprop1_ID' was ignored because it is mapped to the destination property 'status' (ID: 'property_state') and other source properties were given. A status transfer is only possible if no other properties are changed.", "hint": "For a status transfer please send only the property ‘status’. Change the other properties in another request.", "data": { "sourceItemId": "myprop1_ID", "destinationItemId": "property_state" } } ] }
Example 10: DmsApp-Mapping-UnknownDestinationCategory
HTTP/1.1 200 OK { "responseDetails": [ { "code": "DmsApp-Mapping-UnknownDestinationCategory", "title": "Ignored source category", "detail": "The source category with the ID 'mycat1_ID' was ignored because the mapped destination category with the id 'destcat1_ID' is unknown or the user does not have permission for the category.", "data": { "sourceItemId": "mycat1_ID", "destinationItemId": "destcat1_ID" } } ] }