POSTdosy.test/api/registermultipart/form-data| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | Yes | The full name of the user registering for an account |
email | string | Yes | A valid email address for the user. Must be unique in the system |
password | string | Yes | The user's desired password for account authentication |
password_confirmation | string | Yes | Password confirmation - must exactly match the password field |
password field valuename: api-user
email: api-user@test.com
password: password
password_confirmation: password
{
"message": "The password field confirmation does not match.",
"errors": {
"password": ["The password field confirmation does not match."]
}
}
password_confirmation value exactly matches the password value to avoid validation errorsAccept: application/json header to receive JSON responsescurl --location '/register' \
--header 'Accept: application/json' \
--form 'name="new-driver-102"' \
--form 'phone="155150108"' \
--form 'user_type="rider"' \
--form 'password="password"' \
--form 'password_confirmation="password"' \
--form 'country_code="+20"' \
--form 'email="ex9@gmail.com"' \
--form 'driving_license=@"C:\\Users\\ascom\\Downloads\\Ahmed_Helalia_Backend_Dev.pdf"' \
--form 'personal_id_front=@"C:\\Users\\ascom\\Downloads\\Ahmed_Helalia_Backend_Dev.pdf"' \
--form 'personal_id_back=@"C:\\Users\\ascom\\Downloads\\Ahmed_Helalia_Backend_Dev.pdf"' \
--form 'plate_number="ب س ص 123"' \
--form 'vehicle_license=@"C:\\Users\\ascom\\Downloads\\Ahmed_Helalia_Backend_Dev.pdf"'{}