Return an API response when changing the state of a ticket task via the API.