Projekty
APICars

Delete my car

Soft-deletes an owned car; refuses when the car is attached to active rides.

DELETE
/api/cars/{id}

Soft-deletes an owned car; refuses when the car is attached to active rides.

Authorization

sessionAuth
cookiebetter-auth.session_token<token>

Better Auth session cookie (on HTTPS: __Secure-better-auth.session_token), forwarded to the login server's /api/auth/get-session

Path Parameters

id*string

Response Body

OK

application/json
  1. response
success*boolean
Example Request
curl -X DELETE 'https://example.com/api/cars/string'
Example Response
{  "success": true}