how can I have a request parametrized body? I need...
# ktor
e
how can I have a request parametrized body? I need this
Copy code
{
  "command": "API.IsAlive"
}
tried
Copy code
body=MultiPartFormDataContent(formData {
          append("command","API.IsAlive")
but I get invalid json schema
a
What do you mean by request parametrized body? Do you need to send a
multipart/form-data
or a
application/json
request?
e
as the snippet above
Copy code
{
  "command": "API.IsAlive"
}
I'm not sure if this is called parametrized, though