PATCH
/
api
/
v1
/
users
/
{id}
/
new-email
{
  "@context": "<string>",
  "@id": "<string>",
  "@type": "<string>",
  "id": 123,
  "firstName": "<string>",
  "lastName": "<string>",
  "email": "jsmith@example.com",
  "newEmailRequested": "jsmith@example.com",
  "isGuest": true,
  "resignPending": 123,
  "resignApproved": 123,
  "dateBirth": "2023-11-07T05:31:56Z",
  "age": 123,
  "fullName": "<string>",
  "roles": [
    "ROLE_USER"
  ],
  "customFieldValues": [
    {
      "@context": "<string>",
      "@id": "<string>",
      "@type": "<string>",
      "id": 123,
      "field": {
        "@context": "<string>",
        "@id": "<string>",
        "@type": "<string>",
        "name": "<string>",
        "isOnlyAdmin": true
      },
      "value": "<string>"
    }
  ],
  "logo": "<string>",
  "phoneNumber": "<string>",
  "isFollowGeneralUnit": true,
  "roleGroups": [
    "<string>"
  ],
  "isSupporter": true,
  "hasDigestDaily": true,
  "identity": {
    "@context": "<string>",
    "@id": "<string>",
    "@type": "<string>",
    "id": 123,
    "idAddress": "<string>",
    "status": "<string>",
    "addressStreet": "<string>",
    "addressDetails": "<string>",
    "idTown": "https://example.com/",
    "media": {
      "@context": "<string>",
      "@id": "<string>",
      "@type": "<string>",
      "id": 123,
      "entityId": 123,
      "contentUrl": "<string>",
      "type": "<string>"
    },
    "mediaBack": {
      "@context": "<string>",
      "@id": "<string>",
      "@type": "<string>",
      "id": 123,
      "entityId": 123,
      "contentUrl": "<string>",
      "type": "<string>"
    }
  },
  "adhesion": {
    "@context": "<string>",
    "@id": "<string>",
    "@type": "<string>",
    "id": 123,
    "status": "pending",
    "medias": [
      {
        "@context": "<string>",
        "@id": "<string>",
        "@type": "<string>",
        "id": 123,
        "entityId": 123,
        "contentUrl": "<string>",
        "type": "<string>"
      }
    ]
  },
  "postalCode": "<string>",
  "address": "<string>",
  "phoneLocalNumber": "<string>",
  "pushNotificationTokens": [
    {
      "@context": "<string>",
      "@id": "<string>",
      "@type": "<string>",
      "id": 123,
      "mobileOneSignalSubscriptionId": "<string>",
      "deviceId": "<string>",
      "deviceType": "<string>"
    }
  ],
  "permissions": [
    "<string>"
  ],
  "customPermissions": [
    "<string>"
  ],
  "privacy": {
    "age": true,
    "name": false,
    "email": true,
    "phone": true,
    "social": false,
    "image": false,
    "town": false,
    "profession": false
  },
  "apiToken": "<string>",
  "notificationSettings": {
    "prefTheme": "light",
    "prefWelcomeRead": false,
    "pPrivacyRead": false,
    "pGroups": false,
    "pNotificationRead": false,
    "pTimezoneRead": false,
    "pAdhesionRead": false
  },
  "professionOrganisation": "<string>",
  "professionOrganisationRole": "<string>",
  "hasDigestWeekly": true,
  "companyIdentifier": "<string>",
  "companyName": "<string>",
  "companyAddress": "<string>",
  "companyRegNo": "<string>",
  "mfaEnabled": true
}

Path Parameters

id
string
required

User identifier

Body

application/merge-patch+json · object

The updated User resource

Response

200
application/ld+json

User resource updated