cURL
curl --request PUT \ --url https://handauncle-backend-prod-205012263523.asia-south1.run.app/api/v1/second-opinion/preprompts/{id} \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "publicValue": "<string>", "maskedValue": "<string>", "description": "<string>", "tags": [ "<string>" ] } '
{ "success": true, "data": { "message": "<string>" }, "meta": { "timestamp": "2023-11-07T05:31:56Z", "requestId": "<string>" } }
Update an existing Second Opinion preprompt.
Backend secret token for admin endpoints. Use 'Bearer <BACKEND_SECRET>' or 'X-Backend-Secret: <BACKEND_SECRET>' header.
Preprompt MongoDB ObjectId
Preprompt updated.
true
Show child attributes