Run in Apifox
Create an admin User. The user has the same privileges as all admin users, and will be able to authenticate and perform admin functionalities right after creation.
Request Body Params application/json
{
"email" : "user@example.com" ,
"first_name" : "string" ,
"last_name" : "string" ,
"password" : "pa$$word" ,
"role" : "admin"
} Request Code Samples
curl --location '/admin/users' \
--header 'Content-Type: application/json' \
--data-raw '{
"email": "user@example.com",
"first_name": "string",
"last_name": "string",
"password": "pa$$word",
"role": "admin"
}' Responses application/json
Generate Code
{
"user" : {
"id" : "usr_01G1G5V26F5TB3GPAPNJ8X1S3V" ,
"email" : "user@example.com" ,
"first_name" : "Levi" ,
"last_name" : "Bogan" ,
"api_token" : null ,
"created_at" : "2019-08-24T14:15:22.123Z" ,
"updated_at" : "2019-08-24T14:15:22.123Z" ,
"deleted_at" : "2019-08-24T14:15:22.123Z" ,
"role" : "member" ,
"metadata" : {
"car" : "white"
}
}
}
Modified at 2024-05-23 07:10:14