Update a user

Updates the specified user by setting the values of the parameters passed. Any parameters not provided will be left unchanged.

PATCH/v3/users/{id}
JWT
user:write

Parameters

NameTypeInDescription
id*stringpathUnique identifier for the user.

Request Body Schema

PropertyTypeDescriptionConstraints
firstNamestringFirst name of the user.min: 1, max: 256
lastNamestringLast name of the user.min: 0, max: 256
emailstringEmail address of the user.min: 1, max: 256, format: email
companystringCompany of the user.min: 0, max: 256
organizationIdstringUnique identifier for the organization.min: 0, max: 256
resellerIdstringUnique identifier for the reseller.min: 0, max: 256
allowCustomerPortalAccessbooleanAllow customer portal access.
metadataarrayList of metdata key/value pairs.items: object
key*stringName of the key.min: 1, max: 256
value*stringValue of the key.min: 0, max: 4096
viewPermissionsarrayArray of view permissions associated with the metadata.items: string
tagsarrayList of tags.items: string
rolestringRole of the user.min: 1, max: 256

Request Example

{
  "firstName": "string",
  "lastName": "string",
  "email": "user@example.com",
  "company": "string",
  "organizationId": "string",
  "resellerId": "string",
  "allowCustomerPortalAccess": true,
  "metadata": [
    {
      "key": "string",
      "value": "string",
      "viewPermissions": [
        "activation"
      ],
      "visible": true
    }
  ],
  "tags": [
    "string"
  ],
  "role": "string"
}
Triggers webhook: user.updated
POST <your-webhook-url>
{
  "event": "user.updated",
  "data": {
    "id": "string",
    "createdAt": "2019-08-24T14:15:22Z",
    "updatedAt": "2019-08-24T14:15:22Z",
    "name": "string",
    "firstName": "string",
    "lastName": "string",
    "email": "string",
    "role": "string",
    "twoFactorEnabled": true,
    "googleSsoEnabled": true,
    "lastLoginAt": "2019-08-24T14:15:22Z",
    "company": "string",
    "allowCustomerPortalAccess": true,
    "roles": [
      "string"
    ],
    "lastSeenAt": "2019-08-24T14:15:22Z",
    "organizationId": "string",
    "organization": {
      "id": "string",
      "createdAt": "2019-08-24T14:15:22Z",
      "updatedAt": "2019-08-24T14:15:22Z",
      "name": "string",
      "email": "string",
      "description": "string",
      "allowedUsers": 0,
      "address": {
        "addressLine1": "string",
        "addressLine2": "string",
        "city": "string",
        "state": "string",
        "country": "string",
        "postalCode": "string"
      },
      "resellerId": "string",
      "reseller": {
        "id": "string",
        "createdAt": "2019-08-24T14:15:22Z",
        "updatedAt": "2019-08-24T14:15:22Z",
        "name": "string",
        "email": "string",
        "description": "string",
        "allowedUsers": 0,
        "allowedOrganizations": 0
      }
    },
    "resellerId": "string",
    "reseller": {
      "id": "string",
      "createdAt": "2019-08-24T14:15:22Z",
      "updatedAt": "2019-08-24T14:15:22Z",
      "name": "string",
      "email": "string",
      "description": "string",
      "allowedUsers": 0,
      "allowedOrganizations": 0
    },
    "metadata": [
      {
        "id": "string",
        "createdAt": "2019-08-24T14:15:22Z",
        "updatedAt": "2019-08-24T14:15:22Z",
        "key": "string",
        "value": "string",
        "viewPermissions": [
          "activation"
        ],
        "visible": true
      }
    ],
    "tags": [
      "string"
    ],
    "emailPreference": {
      "metrics": true
    }
  },
  "triggeredAt": "string"
}

Responses

200 OK
{
  "id": "string",
  "createdAt": "2019-08-24T14:15:22Z",
  "updatedAt": "2019-08-24T14:15:22Z",
  "name": "string",
  "firstName": "string",
  "lastName": "string",
  "email": "string",
  "role": "string",
  "twoFactorEnabled": true,
  "googleSsoEnabled": true,
  "lastLoginAt": "2019-08-24T14:15:22Z",
  "company": "string",
  "allowCustomerPortalAccess": true,
  "roles": [
    "string"
  ],
  "lastSeenAt": "2019-08-24T14:15:22Z",
  "organizationId": "string",
  "organization": {
    "id": "string",
    "createdAt": "2019-08-24T14:15:22Z",
    "updatedAt": "2019-08-24T14:15:22Z",
    "name": "string",
    "email": "string",
    "description": "string",
    "allowedUsers": 0,
    "address": {
      "addressLine1": "string",
      "addressLine2": "string",
      "city": "string",
      "state": "string",
      "country": "string",
      "postalCode": "string"
    },
    "resellerId": "string",
    "reseller": {
      "id": "string",
      "createdAt": "2019-08-24T14:15:22Z",
      "updatedAt": "2019-08-24T14:15:22Z",
      "name": "string",
      "email": "string",
      "description": "string",
      "allowedUsers": 0,
      "allowedOrganizations": 0
    }
  },
  "resellerId": "string",
  "reseller": {
    "id": "string",
    "createdAt": "2019-08-24T14:15:22Z",
    "updatedAt": "2019-08-24T14:15:22Z",
    "name": "string",
    "email": "string",
    "description": "string",
    "allowedUsers": 0,
    "allowedOrganizations": 0
  },
  "metadata": [
    {
      "id": "string",
      "createdAt": "2019-08-24T14:15:22Z",
      "updatedAt": "2019-08-24T14:15:22Z",
      "key": "string",
      "value": "string",
      "viewPermissions": [
        "activation"
      ],
      "visible": true
    }
  ],
  "tags": [
    "string"
  ],
  "emailPreference": {
    "metrics": true
  }
}