Help with XML parms on rest/user/session JSON works

Hi everyone,
I can login via JSON no problem. Yet when I try using xml the response I get is:

            <message>Login request is missing required password.</message>

So from the parameters section in Swagger I change the Response & Parameter Content Types run in the body the following:


      "email": "",
      "password": "1234",
      "duration": 2



Can some give a hand here and let me know what am I doing wrong with the XML?

Thanks in advance.

Hi there @tommyb, you will need to wrap your XML in the <dfapi></dfapi> tags.

Notice if you play with the API Docs, these tags always wrap the XML request and response.

@jeffreystables Thanks! Just what I needed.

1 Like