Users

Create a User

Create a user

post/users

Request

  • Base URL
    https://api.mediamath.com/api/v3.0
  • Auth
    OAuth 2
    Authorization codehttps://auth.mediamath.com/authorize
    Token URLhttps://auth.mediamath.com/oauth/token
    Scopesoffline_access, manage:services
  • TypeScript
    A function with typed inputs. Its response is checked against the schema.

Request body

titlestring
activeboolean
languagestring
zone_namestring
first_namestring required
last_namestring required
phonestring
usernamestring required
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.

Example request

{
  "roles": [
    4,
    6
  ]
}

Response

User created response

Example response

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

Changes

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