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 3 Next »

Ein einzelnes Objekt erstellen

POST /servicedmcore/CoreIdentity
{
	"Nachname": "Testikus",
	"Vorname": "Peter",
	"Active": true,
	"TenantId": 1,
	"CoreIdentityType.Id": 1,
	"AnonymizationStatus.Id": 1
}
201 - Created
{
    "Id": 60,
    "_links": {
        "self": {
            "href": "/apiv2/servicedmcore/coreidentity/60"
        }
    }
}

Mehrere Objekte erstellen

POST /servicedmcore/CoreIdentity
[
    {
        "Nachname": "Testikus",
        "Vorname": "Peter",
        "Active": true,
        "TenantId": 1,
        "CoreIdentityType.Id": 1,
        "AnonymizationStatus.Id": 1
    },
    {
        "Nachname": "Testikus",
        "Vorname": "Hans",
        "Active": true,
        "TenantId": 1,
        "CoreIdentityType.Id": 1,
        "AnonymizationStatus.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