cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
784
Views
0
Helpful
2
Replies

Create a person using NSAPI

Mike Jennett
Level 1
Level 1

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>

1 Accepted Solution

Accepted Solutions

mpetra
Cisco Employee
Cisco Employee

It seems to be a bug. application/xml should be the correct type but it fails.

Please use: text/plain

This will work.

View solution in original post

2 Replies 2

mpetra
Cisco Employee
Cisco Employee

It seems to be a bug. application/xml should be the correct type but it fails.

Please use: text/plain

This will work.

Thank you! That did indeed work. Do you know if there will be a fix to provide JSON support as well?