📋 Endpoint Details
Method:
PUT
Path:
/api/currency/:id
Authentication:
Required - Include Authorization: Bearer <token> header
📤 Request Body
{
"currencyName": "string (optional)",
"currencyCode": "string (optional, 3 letters)",
"status": "string (optional, 'active' | 'inactive')"
}
📥 Response Example
{
"success": true,
"message": "Currency updated successfully",
"data": {
"_id": "...",
"currencyName": "British Pound",
"currencyCode": "GBP",
"status": "inactive"
}
}
💡 Usage Tips
cURL Example:
curl -X PUT \
http://localhost:3000/api/currency/:id \
-H "Content-Type: application/json" \
-d '{
"currencyName": "string (optional)",
"currencyCode": "string (optional, 3 letters)",
"status": "string (optional, 'active' | 'inactive')"
}' \
-H "Authorization: Bearer YOUR_TOKEN_HERE"