Skip to main content
PUT
/
api
/
v1
/
mgt
/
workspaces
/
{workspaceId}
/
users
/
{userId}
/
pin
Set Login PIN
curl --request PUT \
  --url https://api.xenia.team/api/v1/mgt/workspaces/{workspaceId}/users/{userId}/pin \
  --header 'Content-Type: application/json' \
  --header 'x-client-key: <api-key>' \
  --header 'x-client-secret: <api-key>' \
  --data '
{
  "pin": "123456"
}
'
{
  "data": {},
  "extra_meta": {
    "message": "PIN set successfully"
  }
}

Authorizations

x-client-key
string
header
required

Client API key for authentication

x-client-secret
string
header
required

Client secret for authentication

Path Parameters

workspaceId
string<uuid>
required

ID of the workspace

userId
string<uuid>
required

ID of the user

Body

application/json
pin
string
required

PIN to assign to the user (must be 4-6 digits)

Response

PIN set successfully

data
object
extra_meta
object