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

Ein einzelnes Objekt erstellen

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

Mehrere Objekte erstellen

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