API Udianas doc

PUT /Personne/Modifier

/Personne/Modifier

This methos is used to modify an existing deceased.

Request parameters

Key

The operator's public key is passed through a Header key entry and does not appear in the method URL.

[body] Json object

The Body section of the request contains a PersonModifier object.

    {
        "Id": 1361,
        "IdExterne": 951136,
        "Nom": "NOUVEAU NOM",
        "Prenom": "Nouveau prénom",
        "Civilite": "Nouvelle civilité",
        "DateDeces": "1019-11-14T00:00:00",
        "LieuDeces": null,
        "DateNaissance": null,
        "ImageUrl": "https://cdn.midjourney.com/89603b25-1679-4034-9c30-6650546fedbb/grid_0.png"
        "MajTitreUdianas": false
    }

The operator's public key is passed through a Header key entry and does not appear in the method URL.

The answer is a Tree object with the modified data.

Null values are not replaced. The ExternalId = 0 is not replaced either. Null values are not required.

Example:

    {
        "Id": 1361,
        "Nom": "NOUVEAU NOM",
    }

This request object is valid. This only change the name without changing other personal details.

The title of the person's udianas is updated if MajTitreUdianas is true. The default value is false.

Response parameters

Response 200

Deceased id modified.

{
  "Objet": "string",
  "Id": 0,
  "Statut": "string",
  "Contexte": {
    "Environnement": "string",
    "ContexteGeneral": "string",
    "ContexteGeneralId": 0,
    "Contexte": "string",
    "ContexteId": 0,
    "ContexteGroupeEpfId": 0,
    "ContexteEpfId": 0,
    "ContexteEpfAgenceId": 0,
    "ContexteGroupePresseId": 0,
    "ContexteTitreId": 0,
    "ContexteTitreEditionId": 0,
    "ContexteAssuranceId": 0,
    "ContexteGroupeMaisonReposId": 0
  },
  "Date": "2020-05-18T20:26:51.807Z",
  "Erreur": "string",
  "Defunt": {
    "Id": 0,
    "IdExterne": 0,
    "Nom": "string",
    "Prenom": "string",
    "Civilite": "string",
    "DateDeces": "2020-05-18T20:26:51.807Z",
    "LieuDeces": "string",
    "DateNaissance": "2020-05-18T20:26:51.807Z",
    "Language": "string"
  }
}

Error 400 403 404 500

Something was wrong. The explaination is in the Message parameter

{
  "Objet": "string",
  "Statut": "string",
  "Message": "string",
  "ApiContexte": {
    "Environnement": "string",
    "ContexteGeneral": "string",
    "ContexteGeneralId": 0,
    "Contexte": "string",
    "ContexteId": 0,
    "ContexteGroupeEpfId": 0,
    "ContexteEpfId": 0,
    "ContexteEpfAgenceId": 0,
    "ContexteGroupePresseId": 0,
    "ContexteTitreId": 0,
    "ContexteTitreEditionId": 0,
    "ContexteAssuranceId": 0,
    "ContexteGroupeMaisonReposId": 0
  },
  "HttpStatusCode": xxx
}

Error 400

Request with an incorrect or incoherent request object. More details in Message property.

Error 403

Access denied. The API key is missing or not allowad to access the API.

Error 404

Not found. Returned if an unexisting element is requested. More details in Message property.

Error 500

Unattended fatal error. Typically database error, application incoherence or server system error.