POST /api/users
curl \
-X POST http://localhost:4000/api/users \
-d '{"name":"Test User","role":"customer_read_only","email":"user@test.com","status":"active","account_id":"f260f115-f2e6-4dde-bcab-98b10fdb8cf6"}'
Request examples
{
"name": "Test User",
"role": "customer_read_only",
"email": "user@test.com",
"status": "active",
"account_id": "f260f115-f2e6-4dde-bcab-98b10fdb8cf6"
}
Response examples (200)
{
"id": "f260f115-f2e6-4dde-bcab-98b10fdb8cf6",
"name": "Test User",
"role": "customer_read_only",
"email": "user@test.com",
"status": "active",
"account_id": "293f191b-f2e6-4dde-bcab-00b10fdb8cf4"
}
Response examples (200)
{
"id": "f260f115-f2e6-4dde-bcab-98b10fdb8cf6",
"name": "Test User",
"role": "customer_read_only",
"email": "user@test.com",
"status": "active",
"account_id": "293f191b-f2e6-4dde-bcab-00b10fdb8cf4"
}
Response examples (400)
{
"error": "Error Reason"
}
Response examples (400)
{
"error": "Error Reason"
}
Response examples (401)
{
"error": "Error Reason"
}
Response examples (401)
{
"error": "Error Reason"
}