curl --request POST \
--url http://localhost:3091/v1/api/search-alerts \
--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"
}Creates a new search alert with departure/arrival cities and email digest preference
curl --request POST \
--url http://localhost:3091/v1/api/search-alerts \
--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