https://petstore3.swagger.io/api/v3/userCreates a new user account, which can only be performed by a user currently logged into the system.
Id
Example: 10
Username
Example: theUser
FirstName
Example: John
LastName
Example: James
Example: john@email.com
Password
Example: 12345
Phone
Example: 12345
User Status
Example: 1
Schema
{
"id": 10,
"username": "theUser",
"firstName": "John",
"lastName": "James",
"email": "john@email.com",
"password": "12345",
"phone": "12345",
"userStatus": 1
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid request parameters"
}
}curl --request POST \
--url 'https://petstore3.swagger.io/api/v3/user' \
--header 'accept: application/json' \
--header 'content-type: application/json'{
"success": true,
"data": {
"id": "abc123",
"created_at": "2025-01-01T00:00:00Z"
}
}https://petstore3.swagger.io/api/v3/userCreates a new user account, which can only be performed by a user currently logged into the system.
Id
Example: 10
Username
Example: theUser
FirstName
Example: John
LastName
Example: James
Example: john@email.com
Password
Example: 12345
Phone
Example: 12345
User Status
Example: 1
Schema
{
"id": 10,
"username": "theUser",
"firstName": "John",
"lastName": "James",
"email": "john@email.com",
"password": "12345",
"phone": "12345",
"userStatus": 1
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid request parameters"
}
}curl --request POST \
--url 'https://petstore3.swagger.io/api/v3/user' \
--header 'accept: application/json' \
--header 'content-type: application/json'{
"success": true,
"data": {
"id": "abc123",
"created_at": "2025-01-01T00:00:00Z"
}
}