Mobypark API Docs
Home
Home
  1. Vehicles
  • Auth
    • Account
      • /profile
      • /logout
      • /profile
    • Parking Lots
      • /parking-lots
      • /parking-lots/{parking-lot_id}/sessions/start
      • /parking-lots/{parking-lot_id}/sessions/stop
      • /parking-lots
      • /parking-lots/{parkinglot_id}
      • /parking-lots/{parkinglot_id}/sessions
      • /parking-lots/{parkinglot_id}/sessions/{parking_session_id}
      • /parking-lots/{parkinglot_id} (ADMIN)
      • /parking-lots/{parkinglot_id}/sessions/{parking_session_id} (ADMIN)
      • /parking-lots/{parkinglot_id} (ADMIN)
    • Payments/Billing
      • /payments
      • /payments/refund
      • /billing
      • /billing/{username} (ADMIN)
      • /payments
      • /payments/{username} (ADMIN)
      • /payments/{transaction_id}
    • Vehicles
      • /vehicles
        POST
      • /vehicles/{license_plate}/entry
        POST
      • /vehicles
        GET
      • /vehicles/{vehicle_id}/history
        GET
      • /vehicles/{vehicle_id}/reservations
        GET
      • /vehicles/{license_id} (ADMIN)
        DELETE
      • /vehicles/{vehicle_id}
        PUT
      • /vehicles/{username}
        GET
    • Reservations
      • /reservations (USER)
      • /reservations (ADMIN)
      • /reservations/{reservation_id}
      • /reservations/{reservation_id}
      • /reservations/{reservation_id}
  • NoAuth
    • Account
      • /login
      • /register
  • Schemas
    • Billing Object
    • Parkinglot Object
    • Parking Session Object
    • Payment Object
    • Reservation Object
    • Vehicle Object
  1. Vehicles

/vehicles

POST
/vehicles

Request

Authorization
API Key
Add parameter in header
Authorization
Example:
Authorization: ********************
or
Body Params application/json

Examples

Responses

🟢201Created
application/json
Body

🟠401Unauthorized
🟠400Bad request
🟠409Conflict
🟠400Wrong data format
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/vehicles' \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "make": "Toyota",
    "model": "Corolla",
    "color": "Red",
    "year": 2024,
    "licenseplate": "10-TST-9"
}'
Response Response Example
201 - Success
{
    "status": "Success",
    "vehicle": {
        "id": "14211",
        "user_id": "8601",
        "license_plate": "10-TST-9",
        "make": "Toyota",
        "model": "Corolla",
        "color": "Red",
        "year": 2024,
        "created_at": "(Today's date)"
    }
}
Modified at 2025-10-14 13:52:59
Previous
/payments/{transaction_id}
Next
/vehicles/{license_plate}/entry
Built with