Intralinks Developer Portal

2 posts / 0 new
Last post
apigeeadmin
Workspace User API - Is it working correctly?

I am attempting to use the Workspace User API to add and remove users and I'm seeing some inconsistent things.

Such as:
Adding a user with through the Swagger UI performing a POST command to /workspaces/{workspace_id}/users always returns an error. Sample request JSON:
{
"users": [
{
"emailId": "<<email address removed>>",
"firstName": "UserFirstName",
"lastName": "UserLastName",
"title": "TestTitle",
"organization": "MyOrg",
"officePhone": "1112223333",
"keyContact": true,
"roleType": "reviewer"
}
]
}

This receives error:
"message": "Invalid optional fields passed (title/industry/country/timeZone/functionalArea/alertPreference)."

Using the full JSON Request such as:
{
"users": [
{
"emailId": "<<email address removed>>",
"userId": 0,
"firstName": "FN",
"lastName": "LN",
"title": "MyTitle",
"organization": "org",
"officePhone": "5551112222",
"keyContact": true,
"roleType": "REVIEWER",
"isPlaceholderUser": true,
"welcomeAlertDetails": {
"customSubject": "string",
"customNote": "string",
"saveAlertSettings": true
}
}
]
}

Invalid optional fields passed (title/industry/country/timeZone/functionalArea/alertPreference).

When i try to remove a user from a workspace i first perform a GET on /workspaces/{workspace_id}/users
which returns back two users along with their ID value and userId value.

I try to perform a DELETE on /workspaces/{workspace_id}/users/{workspaceUser_id} through SwaggerUI
With the workspace_id = 714291 and workspaceUser_Id set to either the ID or the userID as mentioned above I always receive error:

"message": "Failed to lock the records optimistically"

Can someone from the API team take a look at the Workspace User API to ensure it setup and working properly?
Thanks


apigeeadmin
Workspace Users API

The API appears to be setup correctly and working fine. I've just now tested all the calls myself again just for good measure, and they worked.

The issue in your first two requests to add a user to a workspace seems to be with the optional field "Title," which you are passing. The title has to be one of the title's which the Platform recognizes. This certainly merits an update to the docs to specify which titles are recognized. For now, either omit the Title (you can always set it later) or go into the UI and check out the long list of available titles.

For your delete user request, you are missing the "version" query string parameter. It is set to optional because the requirement of this parameter depends on workspace settings, and can vary from use-case to use-case. Grab the version from the initial GET you are sending, and pass that in with the DELETE.

Please let me know if you have any further questions. Thanks!

Best,
Chris


Add new comment