Sensor Insights Users

Partially update a user profile

PATCH
/dm/v1/users

Authorization

thingspace_oauth VZ-M2M-Token
AuthorizationBearer <token>

This is the ThingSpace token, from Credentials and Tokens is used

In: header

VZ-M2M-Token<token>

M2M Session Token (How to generate an M2M session token?)

In: header

Request Body

application/json

Partially update a user profile

Partially update a user profile

accountname?string

The numeric account name, which must include leading zeros

id?string

UUID of the user record, assigned at creation

user?

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/dm/v1/users" \  -H "Content-Type: application/json" \  -d '{    "accountname": "0000123456-00001",    "id": "9dd573ba-eeee-ffff-gggg-8009758bcaca",    "user": {      "email": "email@domain.com",      "firstname": "First name",      "lastname": "Last name or Surname",      "mdn": "908-555-1234",      "customdata": {        "additionalProp1": [          100        ],        "additionalProp2": [          100        ],        "additionalProp3": [          100        ]      }    }  }'
{  "accountclientid": "null",  "ackterms": true,  "acktermson": "2019-08-24T14:15:22Z",  "billingaccountid": "0000123456-00001",  "createdon": "2023-10-02T15:46:34.562Z",  "credentialsid": "email@domain.com",  "credentialstype": "email",  "customdata": {    "property1": null,    "property2": null  },  "description": "a short description",  "displayname": "User name",  "email": "email@domain.com",  "firstname": "First name",  "foreignid": "c1f178d3-eeee-ffff-gggg-0d6b7ae6022a",  "id": "string",  "lastname": "Last name or Surname",  "lastupdated": "2023-10-02T15:46:34.562Z",  "mdn": "908-555-1234",  "middlename": "Middle name or initial",  "name": "name of the record",  "secondarybillingaccountids": [    "string"  ],  "state": "success",  "version": "1.0",  "versionid": "337bd2e8-eeee-ffff-gggg-5207992fd395"}