Forum Discussion

angela's avatar
angela
Catalyst II
5 years ago
Solved

REST API curl from cmd line - what could be wrong in this POST request?

Hi Community, I try to do a couple of REST API calls via Windows Batch jobs. I successfully can call for a token and read data. But I somehow fail to build a simple POST action to add any kind of i...
  • angela's avatar
    5 years ago

    Fixed it -> don´t use single quotes ('). When you need them, escape them:

    --data "{\"login_name\":\"test6\"}"