Fix incorrect REST API call.