Create Country
Create a new country. Requires authentication.
Endpoint
Authentication
Required
Request Body
Form data (multipart/form-data):
| Field | Type | Required | Description |
|---|---|---|---|
name |
string | Yes | Country name |
Response
Success (200 OK)
Error Responses
Bad Request (400)
Unauthorized (401)
Internal Server Error (500)
Example Request
curl -X POST "https://api.luxmart.site/v1/accounts/country/" \
-H "Authorization: Token your_access_token" \
-F "name=Azerbaijan"
Notes
- Country name is required and cannot be empty
- The
createdtimestamp is automatically set by the system - The
idis automatically generated