Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Create a single object

Code Block
languagejson
POST /servicedmcore/CoreIdentity
{
	"ci_family_name": "Testikus",
	"ci_given_name": "Hansueli",
	"active": true,
	"tenant_id": 1,
	"core_identity_type.id": 1,
	"anonymization_status.id": 2
}
Code Block
201 - Created
{
    "id": 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
languagejson
POST /servicedmcore/CoreIdentity
[
    {
        "ci_family_name": "Testikus",
        "ci_given_name": "Peter",
        "active": true,
        "tenant_id": 1,
        "core_identity_type.id": 1,
        "anonymization_status.id": 1
    },
    {
        "ci_family_name": "Testikus",
        "ci_given_name": "Hans",
        "active": true,
        "tenant_id": 1,
        "core_identity_type.id": 1,
        "anonymization_status.id": 1
    }
]

...