Skip to main content
POST
Create Saved Password
Saves a password for a specific URL or page. Requires authentication.

Endpoint

Authentication

string
required
Bearer token for authentication. User must be logged in.

Request Body

integer
required
The user ID who is saving the password.
string
required
The password to be saved (max 200 characters).
string
required
The URL where this password is used (max 200 characters).
string
A friendly name for the page or service (max 200 characters).

Request Example

Response

Success Response

200 OK

Error Responses

Example Request

Implementation Details

This endpoint is implemented in views.py:32 using the save_passwords view function. It validates the request data using SavedPasswordsSerializer and saves the password to the database associated with the authenticated user.