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 '/api/v1/register' \
--header 'Accept: application/json' \
--form 'name="new-user-101"' \
--form 'phone="1551501119"' \
--form 'user_type="rider"' \
--form 'password="password"' \
--form 'password_confirmation="password"' \
--form 'country_code="+20"'{}