...
Create a single object
Code Block |
---|
|
POST /servicedmcore/CoreIdentity
{
"Nachnameci_family_name": "Testikus",
"Vornameci_given_name": "PeterHansueli",
"Activeactive": true,
"TenantIdtenant_id": 1,
"CoreIdentityType.Idcore_identity_type.id": 1,
"AnonymizationStatusanonymization_status.Idid": 12
} |
Code Block |
---|
201 - Created
{
"Idid": 60,
"_links": {
"self": {
"href": "/apiv2/servicedmcore/coreidentity/60"
}
}
} |
...
Create a single object with DropDown-AttributeValue
There are 3 ways to update a DropDown-AttributeValue (i.E: g_language
)
By DropDownDefinitionId (simple)
Code Block |
---|
PATCH /servicedmcore/CoreIdentity/20
{
"ci_family_name": "Testikus",
"ci_given_name": "Hansueli",
"active": true,
"tenant_id": 1,
"core_identity_type.id": 1,
"anonymization_status.id": 2,
"g_language": 22
}
|
By DropDownDefinitionId (complex)
Code Block |
---|
PATCH /servicedmcore/CoreIdentity/20
{
"ci_family_name": "Testikus",
"ci_given_name": "Hansueli",
"active": true,
"tenant_id": 1,
"core_identity_type.id": 1,
"anonymization_status.id": 2,
"g_language": {
"drop_down_definition_id": 21
}
}
|
By Value (complex)
Code Block |
---|
PATCH /servicedmcore/CoreIdentity/20
{
"ci_family_name": "Testikus",
"ci_given_name": "Hansueli",
"active": true,
"tenant_id": 1,
"core_identity_type.id": 1,
"anonymization_status.id": 2,
"g_language": {
"value": 7
}
}
|
Property-Priority (complex)
If you go the “complex” way and provide "drop_down_definition_id
" and "value
" the drop_down_definition_id
wins and value
gets ignored completely
Create multiple objects
Code Block |
---|
|
POST /servicedmcore/CoreIdentity
[
{
"Nachnameci_family_name": "Testikus",
"Vornameci_given_name": "Peter",
"Activeactive": true,
"TenantIdtenant_id": 1,
"CoreIdentityType.Idcore_identity_type.id": 1,
"AnonymizationStatusanonymization_status.Idid": 1
},
{
"Nachnameci_family_name": "Testikus",
"Vornameci_given_name": "Hans",
"Activeactive": true,
"TenantIdtenant_id": 1,
"CoreIdentityType.Idcore_identity_type.id": 1,
"AnonymizationStatusanonymization_status.Idid": 1
}
] |
Code Block |
---|
|
201 - Created (Alle erfolgreich)
207 - Multi-Status (Unterschiedliche Statuscodes in den Objekten)
??? - Alle fehlerhaft mit dem StatusCode ??? (z.B: 401)
[
{
"statustype": "success",
"status": 201,
"Valuevalue": {
"Idid": 61,
"_links": {
"self": {
"href": "/apiv2/servicedmcore/coreidentity/61"
}
}
}
},
{
"statustype": "success",
"status": 201,
"Valuevalue": {
"Idid": 62,
"_links": {
"self": {
"href": "/apiv2/servicedmcore/coreidentity/62"
}
}
}
}
] |