PUT
/
users

Authorizations

api-key
string
header
required

Your Melodi API key

Body

application/json

Request object for creating or updating an external user

externalId
string
required

External identifier for the user

email
string

User's email address

name
string

User's name

segments
object

Key-value pairs of segment information. Will be transformed to empty object if null or undefined.

username
string

User's username

Response

200 - application/json

Represents an external user. Note: The combination of organizationId and externalId must be unique.

createdAt
string
required
externalId
string
required

External identifier for the user

id
number
required

Unique identifier for the user

organizationId
number
required

ID of the organization this user belongs to

segments
object[]
required
updatedAt
string
required
email
string | null

User's email address

name
string | null

User's name

username
string | null

User's username