0

I was trying to add few new attributes to a PingOne application using this endpoint. Since it doesn't support any kind of powershell I am trying to add values using the /environments/{{sourceEnvID}}/applications/{{appID}}/attributes endpoint with the help of Invoke-RestMethod. It works for a body having only one value. If I am passing multiple values as an array it is throwing an error of malformed data/Invalid data.

For example: the below body works

{
    "name": "email",
    "update": "EMPTY_ONLY",
    "value": "${providerAttributes.email}"
} 

, but if we pass a body having the below structure it gets failed.

[
  {
    "name": "email",
    "update": "EMPTY_ONLY",
    "value": "${providerAttributes.email}"
  },
  {
    "name": "profile",
    "update": "EMPTY_ONLY",
    "value": "${providerAttributes.profile}"
  }
]

Any help would be appreciated.

Amal Ps
  • 703
  • 7
  • 19

0 Answers0