homemade food app
  1. Auth
homemade food app
  • APIs v1
    • Auth
      • Register: submit account data
        POST
      • Register: resend confirmation email
        POST
      • Register: submit email-confirmation code
        POST
      • Login by password or 3rd-party providers
        POST
      • Reset passwd: submit email
        POST
      • Reset passwd: submit new password
        PUT
    • Admin (role-based)
      • Merchant admin
        • Get products list
        • Create product (merchant-specific or global)
        • Update product
        • Delete product
        • Get discount events list
        • Create discount event for product(s)
        • Update discount event for product(s)
        • Delete discount event for product(s)
        • Create merchant
        • Find orders by merchant
        • Update order
        • Update order's delivery status
      • Get users list
      • Get user by ID
      • Create user
      • Get merchants list
    • User (private)
      • Get current account data
        GET
      • Exchange new tokens
        GET
      • Request to delete current account
        DELETE
    • Public
      • Find merchants
        GET
      • Find products by merchant
        GET
      • Get merchant by ID
        GET
  1. Auth

Reset passwd: submit new password

Designing
PUT
https://mock.apidog.com/m1/740441-0-default/auth/password
Last modified:2025-02-12 05:57:08
Submit new password along with confirmation code (sent via email)

Request

Query Params

Header Params

Body Params application/json

Example
{
    "password": "string",
    "code": "stri"
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://mock.apidog.com/m1/740441-0-default/auth/password?action=submit&target=password' \
--header 'Authorization: Bearer <valid_confirmation_code>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "password": "string",
    "code": "stri"
}'

Responses

🟢200Success
application/json
Body

Example
{
    "data": {},
    "error": {
        "code": "string",
        "message": "string",
        "errors": [
            {
                "code": "string",
                "message": "string"
            }
        ]
    },
    "links": {
        "self": "http://example.com",
        "prev": "http://example.com",
        "next": "http://example.com",
        "last": "http://example.com"
    },
    "meta": {
        "receivedAt": 0,
        "requestId": "string"
    }
}
Modified at 2025-02-12 05:57:08
Previous
Reset passwd: submit email
Next
Admin (role-based)
Built with