Users

Create user or service account

Changed on

Create a user account (type=user, email required; returns user + password for login) or a service account (type=service_account, roles required) for API/automation access.

post/users

Request

  • Base URL
    https://us.api.flexprice.io/v1
  • URL
    https://us.api.flexprice.io/v1/users
  • Auth
    API key in header x-api-key

Request body

emailstring

Required when type is "user"

namestring

Display name; optional for service accounts

rolesstring[]

Required when type is "service_account"

type'user' | 'service_account' required

Response

Created

emailstring

Empty for service accounts

idstring
metadataobject
namestring
passwordstring
rolesstring[]
type'user' | 'service_account'

Changes

    • warning

      added the new not_implemented enum value to the response property for the response status

    • warning

      added the new not_implemented enum value to the response property for the response status

    • breaking

      request property was restricted to a list of enum values

    • breaking

      the request property type changed from no type to string

    • breaking

      the / response's property type changed from no type to object for status

    • breaking

      the response's property type changed from no type to string for status

    • warning

      added the new service_account enum value to the response property for the response status

    • warning

      added the new user enum value to the response property for the response status

    • info

      added the new service_account enum value to the request property

    • info

      added the new user enum value to the request property