12-07-2015 02:15 PM
I'm trying to create and update a new user using NSAPI and PSC 11.0 and am getting status 415 Unsupported Media Type.
Is there something I'm missing?
I am issuing this in Chrome's Postman client. The request is:
<server>/RequestCenter/nsapi/directory/people/udpate
Headers:
username: <cpta_username>
password: <cpta_password>
Content-Type: application/xml
Body:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<person>
<firstName>myFirst</firstName>
<lastName>myLast</lastName>
<email>me@email.com</email>
<homeOrganizationalUnitName>my-existing-organization</homeOrganizationalUnitName>
<login>my-loginname</login>
</person>
Solved! Go to Solution.
12-09-2015 09:53 AM
It seems to be a bug. application/xml should be the correct type but it fails.
Please use: text/plain
This will work.
12-09-2015 09:53 AM
It seems to be a bug. application/xml should be the correct type but it fails.
Please use: text/plain
This will work.
12-09-2015 11:07 AM
Thank you! That did indeed work. Do you know if there will be a fix to provide JSON support as well?
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide