curl --request POST \
--url https://api.xenia.team/api/v1/mgt/workspaces/{workspaceId}/users \
--header 'Content-Type: application/json' \
--header 'x-client-key: <api-key>' \
--header 'x-client-secret: <api-key>' \
--data '
{
"invite": false,
"isOnboardingFlow": false,
"rows": [
{
"data": {
"firstName": "John",
"lastName": "Doe",
"emailId": "[email protected]",
"roleId": "9f1e53b3-a417-4345-882f-2c9b44da040b",
"password": "securePassword123",
"workspaceId": "cb363f7e-c52a-4478-911d-f6a6f791090e",
"locations": [
"b9164b03-60c2-4500-89a4-f490e38c9872"
]
}
}
],
"inviteBy": "email"
}
'