POST /stops/:stop_id/inputs
Store the new inputs for a stop.
stop_id
: The ID of the stop
{
"message" : "All inputs were saved"
}
-
400
: If thestop_id
is missing or empty. -
500
: If the storing operation cannot be executed.
The body of the response contains a message about the error.
- POST /stops/8031/inputs
- BODY
{
"inputs" : [
{
"question": "019",
"answer": 4
},
{
"question": "028",
"answer": null
},
{
"question": "042",
"answer": "41"
},
{
"question": "022",
"answer": "true"
}
]
}
{
"message": "All inputs were saved"
}