Create a new customer
POST/customers
Create a new customer
Request
- application/json
Body
required
email stringrequired
password stringrequired
name stringrequired
Responses
- 201
- 400
Successfully created a new customer
- application/json
- Schema
- Example (from schema)
Schema
id uuid
name string
email string
password string
created_at date-time
updated_at date-time
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"email": "string",
"password": "string",
"created_at": "2024-03-23T09:23:32.864Z",
"updated_at": "2024-03-23T09:23:32.864Z"
}
Bad request - Invalid customer data
- application/json
- Schema
- Example (from schema)
Schema
id uuid
name string
email string
password string
created_at date-time
updated_at date-time
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"email": "string",
"password": "string",
"created_at": "2024-03-23T09:23:32.864Z",
"updated_at": "2024-03-23T09:23:32.864Z"
}
Loading...