comanage-users - [comanage-users] error 400 Invalid Fields using API to add identifier with custom type
Subject: COmanage Users List
List archive
[comanage-users] error 400 Invalid Fields using API to add identifier with custom type
Chronological Thread
- From: "Vogl,Greg" <>
- To: "" <>
- Subject: [comanage-users] error 400 Invalid Fields using API to add identifier with custom type
- Date: Tue, 18 Apr 2017 17:35:13 +0000
- Accept-language: en-US
- Authentication-results: internet2.edu; dkim=none (message not signed) header.d=none;internet2.edu; dmarc=none action=none header.from=ColoState.EDU;
- Ironport-phdr: 9a23:pr4YRBWTWUwIcEcZG0+nS5h+cALV8LGtZVwlr6E/grcLSJyIuqrYbROBt8tkgFKBZ4jH8fUM07OQ6PG+HzZQqs/Y6zgrS99lb1c9k8IYnggtUoauKHbQC7rUVRE8B9lIT1R//nu2YgB/Ecf6YEDO8DXptWZBUhrwOhBoKevrB4Xck9q41/yo+53Ufg5EmCexbal8IRiyrAjdrNcajIhtJqos1xfErGZDdvhLy29vOV+dhQv36N2q/J5k/SRQuvYh+NBFXK7nYak2TqFWASo/PWwt68LlqRfMTQ2U5nsBSWoWiQZHAxLE7B7hQJj8tDbxu/dn1ymbOc32Sq00WSin4qx2RhLklDsLOjgk+2zRl8d+jr9UoAi5qhJ/3YDafZ2VOvR9cKPcYdwUSmVOU91NVyxYHo+wc5cDA/YfMetesoLzp0EOrRy7BQS0Cu/gxThIhnDy3aEi0uohCx/J3AMuE9kTt3narc/1O7kdUeCy1qnJzS/PYPxR2Tfy7IjFaQ4sofaIXbJ3bMTR1VMgFx/bgVmKpoLrMT2a2/0LvmOG4eRgUuevhHQmqwF3ujWvx8EsipXXiYIPzFDL6zl5zJgvKdKmVUF7fMaoH4FLtyGCLYd2RN0tQ31utS0nybMGoYa2cDYQx5g72hLSbuGLf5WV7h/mWuacLit0iG5gdbKxmRm//ketx+j5W8S13ltGszJJnsTSun0JzRDe6daLRuFj8ku9xDqDzR7f5v9ELE0yiKHVMYQuwqQqmZoWqUnDHjH5mEHxjKKObksp5u+m5/j5brn/u5GSL5J4hhj5Mqs1hMOzG+M4MhUSX2eA/uS8ybvj8lDjTLVSlP02lbXZv47GKsQHp665BAlV3pwk6xaiEzem1NMYnX4ELF5fZB2HiI3pN0nPIPD+E/i/n0yhnClxyPzaI7HsB4jBImXenLrkc7Zw5FJQxBY2wNBR+Z1ZBb4MLff2V0LwutHUEwc1MwmuzObmDNV92JkeWWWKAqKBMa3Sq0GH5u0oI+mWZI4ZojnyK/8q5/7qlnI2hVgdfa2u3ZsMdHC3BOhmLFuDbXXyn9gBDH8GvhAiQ+zylF2CTTlTam6uUKI74zE0EoSmAp3MRo+zmbCBwTy7EYNMZmBdEV2MFXbod56YW/cXdi6eOM5hkjoYVbe/UY8h0w+htBPkx7Z9MOXb5zAY5trf040/7OrWnBc7+jExEt+QyXqlTmdok3kOSiNsmq1zvAY1nlyE1KF+ivNVUMFI6ulSegY8KZPGyeFmUZb/Vh+XLfmTT1PzCOuhDjV1Ycg8zJVGN2lnFtqllAGF4S2lB5c+kLiMP4A97q+a8lTMcZUug03a3bUs2gF1CvBEMner0/Zy
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
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
- [comanage-users] error 400 Invalid Fields using API to add identifier with custom type, Vogl,Greg, 04/18/2017
- Re: [comanage-users] error 400 Invalid Fields using API to add identifier with custom type, Benn Oshrin, 04/19/2017
- Re: [comanage-users] error 400 Invalid Fields using API to add identifier with custom type, Benn Oshrin, 04/22/2017
- RE: [comanage-users] error 400 Invalid Fields using API to add identifier with custom type, Vogl,Greg, 04/23/2017
Archive powered by MHonArc 2.6.19.