tesla
  1. Services
tesla
  • tesla
    • Auth
      • data captain
        • cars
        • get car model
        • get color model car
        • get manufacture years
      • register Captain
      • Login
      • Logout
      • register
      • edit profile
      • delete account
      • get profile
      • change password
      • active account
      • Verification Account
    • Forget Password
      • verify Email
    • Booking
      • store booking
      • get all
      • Drift
      • Drift Copy
      • get one
      • Update Ride
    • Captains
      • get all
      • captain booking details
      • get one
      • update location
    • Cars
      • get all
      • get brand and model car
    • Payment
      • store
      • get all
      • get one
    • Gratuity
      • store
      • get all
      • get one
    • Contact Us
      • store
    • categories
      • get all
    • Services
      • get all
        GET
      • status service captain
        PUT
    • location
      • update and channel
    • Saved Places
      • get all
      • store
      • update
      • delete
    • Promotion
      • get one
      • store
    • Transfer Wallet
      • store
      • Card Charging
      • get all
      • Verify Otp
      • Reset Otp
    • Public Information
      • Public Information
    • Setting
      • get one
    • Notification
      • unread notification
      • rad notification
      • rad notification Copy
    • Questions
      • questions
    • Payment Method
      • get all
    • Gratuity Salary
      • get all
    • Delay Period
      • get all
    • Favorites
      • get all
    • Order
      • get all
      • store
      • update
      • delete
      • Approved Request Order
      • delivery of orders
    • Wallet Charging
      • store
    • Plans
      • get all
      • store
      • subscriptions confirm
  1. Services

status service captain

PUT
{{tessla}}/status-service-captain
Last modified:2025-04-17 15:13:35
Maintainer:Not configured
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request PUT '{{tessla}}/status-service-captain' \
--header 'Accept: application/json' \
--header 'Accept-Language: ar' \
--header 'Content-Type: application/json' \
--data-raw '{
    "category_id": 1,
    "status": false
}'
Response Response Example
{"data":{"id":1,"captain_id":2,"category_id":1,"status":false,"created_at":"2025-04-20T14:14:32.000000Z","updated_at":"2025-04-20T14:34:23.000000Z","captain":{"id":2,"user_id":12,"width":"45","height":"54","motor_number":null,"license_photo":null,"criminal_record":null,"latitude":null,"longitude":null,"id_photo":null,"photo":null,"created_at":"2025-04-20T14:14:32.000000Z","updated_at":"2025-04-20T14:14:32.000000Z","car_id":1,"model_car_id":1,"manufacture_year_id":1,"color_car_model_id":1,"id_back_photo":null,"vehicle_coding":null,"plate_number":null,"car_size":"S","number_passengers":1,"categories":[{"id":1,"name":{"en":"taxi","ar":"تاكسي"},"image":null,"start_price":"100.00","start_price_of_kilo":"250","price":"600.00","created_at":"2025-04-19T20:26:25.000000Z","updated_at":"2025-04-19T20:26:25.000000Z","pivot":{"captain_id":2,"category_id":1,"status":1,"created_at":"2025-04-20T14:14:32.000000Z","updated_at":"2025-04-20T14:14:32.000000Z"}}],"user":{"id":12,"name":"captain","email":"mohamadayman2024@gmail.com","phone":"01007363337","address":"dssdfsd","email_verified_at":null,"verified_at":"2025-04-19 20:26:25","verification_code":"123456","type":"captain","gender":"male","is_active":true,"personal_photo":null,"created_at":"2025-04-19T20:26:25.000000Z","updated_at":"2025-04-20T14:14:32.000000Z","is_boolean":1,"wallet_balance":"0.00","username":null}}},"message":"تم بنجاح تحديد حالة قائد الخدمة","status":true}

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Header Params
Accept
string 
required
Example:
application/json
Accept-Language
string 
required
Example:
ar
Body Params application/json
category_id
integer 
required
status
boolean 
required
Examples

Responses

🟢200OK
application/json
Body
data
object 
required
id
integer 
required
captain_id
integer 
required
category_id
integer 
required
status
boolean 
required
created_at
string 
required
updated_at
string 
required
captain
object 
required
message
string 
required
status
boolean 
required
Modified at 2025-04-17 15:13:35
Previous
get all
Next
update and channel
Built with