Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Current »

Create a single object

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
}
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)

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)

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)

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

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
    }
]
201 - Created (Alle erfolgreich)
207 - Multi-Status (Unterschiedliche Statuscodes in den Objekten)
??? - Alle fehlerhaft mit dem StatusCode ??? (z.B: 401)
[
    {
        "statustype": "success",
        "status": 201,
        "value": {
            "id": 61,
            "links": {
                "self": {
                    "href": "/apiv2/servicedmcore/coreidentity/61"
                }
            }
        }
    },
    {
        "statustype": "success",
        "status": 201,
        "value": {
            "id": 62,
            "links": {
                "self": {
                    "href": "/apiv2/servicedmcore/coreidentity/62"
                }
            }
        }
    }
]
  • No labels