Bulk Update Users

This endpoint updates multiple User fields for multiple Users.

Request

To update one or more specific attributes of one or more User(s) please make a PATCH request to the following URL:

HTTP MethodURL
PATCHhttps://industrial.api.ubidots.com/api/v2.0/users/_/bulk/update/

Query Parameters

ParameterTypeUseDescription
tokenStringAuthenticationAuthentication Token can optionally be sent as a query parameter.

Body Parameters

ParameterTypeRequired?Default Value
usernameStringYesN/A (Required). Only alphanumeric characters, dash or hyphen. On owners the prefix testing is not allowed.
passwordStringYes""
firstNameStringNo""
lastNameStringNo""
emailStringYesN/A (Required)
defaultOrganizationStringNonull
defaultRoleStringNonull
defaultDashboardStringNonull
languageStringNonull
websiteStringNo""
timezoneStringNonull
decimalPlacesIntegerNonull
numberFormatStringNonull
isActiveBooleanNoTrue
tagsListNodefault=[], max_length=20 (tags max limit), max_length=50 (tags max length)
contactMethodsListNo[]

Header

ParameterRequired?Description
X-Auth-TokenYesAuthentication Token of account
X-Bulk-OperationYesNeed to be set to True for the bulk operation to work
Content-TypeYesContent type of body: String (application/json)
$ curl -X PATCH 'https://industrial.api.ubidots.com/api/v2.0/users/_/bulk/update/' \
 -H 'Content-Type: application/json' \
 -H 'X-Auth-Token: oaXBo6ODhIjPsusNRPUGIK4d72bc73' \
 -H 'X-Bulk-Operation: True' \
 -d '[
  {
    "id": "409dba9c67d3bb19f554",
    "username": "User 1"
  },
  ...
  {
    "id": "445da83878abc3c75756",
    "username": "User 4"
  },
]'
{
  "task": {
    "id": "tyg54645501a9ca5714e7b098721"
  }
}
{
    "code": 400001,
    "message": "Validation Error.",
    "detail": {
        ....
    }
}
{
    "code": 401001,
    "message": "Authentication credentials were not provided.",
    "detail": "Authentication credentials were not provided."
}
{
    "detail": "Header `X-BULK-OPERATION` should be provided for bulk operation."
}

Response

Returns a Task Id of the asynchronous process.