Users

Update a User

Update a user by ID

post/users/{user_id}

Request

Path parameters

user_idinteger required

Numeric ID of the user to update

Request body

titlestring
activeboolean
languagestring
zone_namestring
versioninteger
first_namestring required
last_namestring required
phonestring
rolesinteger[] required

Possible values:

  • 2: "admin",
  • 3: "manager",
  • 4: "reporter",
  • 5: "internal",
  • 6: "agency" ,
  • 7: "edit_data_definition",
  • 8: "view_data_definition",
  • 9: "edit_segments",
  • 10: "view_segments",
  • 11: "edit_campaigns",
  • 13: "edit_margins_and_performance",
  • 14: "view_organizations",
  • 15: "view_dmp_reports",
  • 16: "manage_contracts",
  • 17: "view_contracts". Some values can't be used with each other, for example 3 and 4. For more information use "/roles" request.
passwordstring

new password for user

Example request

{
  "version": 2,
  "roles": [
    4,
    6
  ]
}

Response

User updated response

Example response

{
  "data": {
    "roles": [
      4,
      6
    ]
  },
  "meta": {
    "status": "success"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.