curl --request PUT \
--url https://api.example.com/api/password-generator/view-all-saved-passwords/{pk}/update/ \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"password_saved": "<string>",
"url": "<string>",
"name_pages": "<string>"
}
'{
"url": ["Enter a valid URL."],
"password_saved": ["This field may not be blank."]
}
curl --request PUT \
--url https://api.example.com/api/password-generator/view-all-saved-passwords/{pk}/update/ \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"password_saved": "<string>",
"url": "<string>",
"name_pages": "<string>"
}
'{
"url": ["Enter a valid URL."],
"password_saved": ["This field may not be blank."]
}
Updates an existing saved password. Users can only update their own passwords.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/edimez14/password_generator/llms.txt
Use this file to discover all available pages before exploring further.
PUT /api/password-generator/view-all-saved-passwords/{pk}/update/
{
"password_saved": "NewSecureP@ss789",
"name_pages": "Updated Example Website"
}
"data saved"
{
"url": ["Enter a valid URL."],
"password_saved": ["This field may not be blank."]
}
{
"error": "Password not found."
}
{
"error": "error message"
}
curl -X PUT https://api.example.com/api/password-generator/view-all-saved-passwords/1/update/ \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"password_saved": "NewSecureP@ss789",
"name_pages": "Updated Example Website"
}'
views.py:90 using the update_saved_password view function. It supports partial updates through the partial=True parameter in the serializer, meaning you only need to send the fields you want to update.