curl --request PUT \
--url http://localhost:3091/v1/api/search-alerts/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"departureCity": "<string>",
"arrivalCity": "<string>",
"isActive": true,
"emailDigest": true
}
'{
"id": 123,
"departureCity": "<string>",
"arrivalCity": "<string>",
"isActive": true,
"emailDigest": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}Updates an existing search alert’s criteria and active status
curl --request PUT \
--url http://localhost:3091/v1/api/search-alerts/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"departureCity": "<string>",
"arrivalCity": "<string>",
"isActive": true,
"emailDigest": true
}
'{
"id": 123,
"departureCity": "<string>",
"arrivalCity": "<string>",
"isActive": true,
"emailDigest": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}JWT access token from POST /v1/api/auth/login