Skip to Content.
Sympa Menu

comanage-users - Re: [comanage-users] error 400 Invalid Fields using API to add identifier with custom type

Subject: COmanage Users List

List archive

Re: [comanage-users] error 400 Invalid Fields using API to add identifier with custom type


Chronological Thread 
  • From: Benn Oshrin <>
  • To: "Vogl,Greg" <>
  • Cc: "" <>
  • Subject: Re: [comanage-users] error 400 Invalid Fields using API to add identifier with custom type
  • Date: Wed, 19 Apr 2017 07:57:54 -0400
  • Ironport-phdr: 9a23:idOT/BYmFJ3C1nkVw3e9fTr/LSx+4OfEezUN459isYplN5qZr8W4bnLW6fgltlLVR4KTs6sC0LuI9fu4EjBbqb+681k6OKRWUBEEjchE1ycBO+WiTXPBEfjxciYhF95DXlI2t1uyMExSBdqsLwaK+i764jEdAAjwOhRoLerpBIHSk9631+ev8JHPfglEnjSwbLdzIRmsowjdqsYajIRsJ60s1hbHv3xEdvhMy2h1P1yThRH85smx/J5n7Stdvu8q+tBDX6vnYak2VKRUAzs6PW874s3rrgTDQhCU5nQASGUWkwFHDBbD4RrnQ5r+qCr6tu562CmHIc37SK0/VDq+46t3ThLjlTwKPCAl/m7JlsNwjbpboBO/qBx5347Ue5yeOP5ncq/AYd8WWW9NU8BMXCJDH4y8dZMCAfcfM+ZWr4fzpFUAohWxCgauGOzhxSRFhmP00KAgz+gtDQ/L0Q4mEtkTsHrUttL1NKIKXO2o0qbIyzPDZO5P1zfm6IjIaBEhofeRVr93asXe108vFwXCjliLqIzlOS+V2foXs2id8eVgSfyjh3Q5pA5svzii38EhgZTHiIISz1DL7yR5wIAtKN25Tk57fcCrEIFWty6EK4t6XNkuTH91tyYn0rEJo4W7fDAQxJQh2RHfd/qKeJWL7BL7TOudPyt0iXF/dL+7hRu+61Wsx+PiWsWuzlpGsilInsHRunwR1BHf8MaKRudn8ku/xDqDyRrf5v9LLE02k6fQNoQvzaQqlpUJtETOBi/2l1vyjK+Rbkgk+u+o6+HmYrr4o5+TLY50igXnPqs0lMGyA/40MgcUU2eG4+Szyqfs/Uj5QLVNlf02jrPVv4zdJcQevqK5AglV3Zg/6xunETuqzNcVkWMDIV9HYh6LkobkN0/ULPzmEfuygEygkDJxyPDHOr3hDI/NLn/GkLr5Zrly9UhcyAw0zd1E5pJUDK0BL+zpWk/3qtPYEgE1PxaqzOn6FdVxzpkeVn6XAq+FLKPStkeF6f4oI+mJfoAVvizyK/c76PL3kH85gkESfbOy3ZYMbHC4H+9mI1mCYXbymNsBEGEKvhYgQ+zwjl2NTyJTa2ioU60i+z47FdHuMYCWDL6qj7jF8z22EdceMk9cB1+LC2auSYKLX98nbyaVGdNojjFCeJScHdwPzxar4SX3zbwvCfHU4Cwe/cbp2d5z4MXSkw0/7zp5E57b3m2QGTIn1lgUTiM7ifgs6Xd2zU2OhO0h26RV

Hi Greg,

I suspect there's a bug in the mapping of the extended type in the API.
Could you file a ticket for this? I suspect it's a quick fix...

https://bugs.internet2.edu/jira/projects/CO

Thanks,

-Benn-

On 4/18/17 1:35 PM, Vogl,Greg wrote:
> Colorado State University is in the process of implementing COmanage, and I
> am attempting to import all of our users using the API. Using the Postman
> Chrome plugin and an ASP.NET C# console application, all API calls have
> been working, including HTTP GET, POST, PUT and DELETE for 13 different
> API, except one:
> https://spaces.internet2.edu/display/COmanage/Identifier+API
>
> Using the COmanage user interface, in the Colorado State University
> collaboration, a custom type was added to Attribute Identifier (CO Person)
> with Name colostateedupersoncsuid and Display Name colostateEduPersonCsuId,
> and two identifiers with this type were added to a test person record. This
> identifier was edited using both the UI and both methods of calling the
> API. But when trying to add another identifier of this type using the API,
> I always get an error: 400 Invalid Fields.
>
> This is an existing identifier using GET identifiers.json:
> {
> "ResponseType": "Identifiers",
> "Version": "1.0",
> "Identifiers": [
> {
> "Version": "1.0",
> "Id": "12",
> "Identifier": "999999999",
> "Type": "colostateedupersoncsuid",
> "Login": true,
> "Status": "Active",
> "Person": {
> "Type": "CO",
> "Id": "13"
> },
> "Created": "2017-04-10 16:52:34",
> "Modified": "2017-04-10 17:10:21",
> "Revision": "1",
> "Deleted": false,
> "ActorIdentifier": "CSUAPIUser"
> },
> ...
>
> This is the request body for POST identifiers.json:
> {
> "ResponseType": "Identifiers",
> "Version": "1.0",
> "Identifiers": [
> {
> "Version": "1.0",
> "Identifier": "777777777",
> "Type": "colostateedupersoncsuid",
> "Login": true,
> "Status": "Active",
> "Person": {
> "Type": "CO",
> "Id": "13"
> }
> }
> ]
> }
>
> This is the response body:
> {
> "ResponseType": "ErrorResponse",
> "Version": "1.0",
> "Id": "New",
> "InvalidFields": {
> "type": [
> "content"
> ]
> }
> }
>
> I tried adding a shorter custom type (csuid), but when trying to add an
> identifier of that type using the API, I got the same error.
>
> What more can I do to diagnose and fix this problem?
>
> Thanks,
>
> Greg Vogl
> Middleware Developer
> Colorado State University
>



Archive powered by MHonArc 2.6.19.

Top of Page