Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

Create a person using NSAPI

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>

  • Intelligent Automation
1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

It seems to be a bug.

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

Please use: text/plain

This will work.

2 REPLIES
Cisco Employee

It seems to be a bug.

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

Please use: text/plain

This will work.

New Member

Thank you! That did indeed

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

38
Views
0
Helpful
2
Replies
This widget could not be displayed.