Intralinks Developer Portal

3 posts / 0 new
Last post
jfloydvarde
Can't create new workspace.

I am trying to create a new workspace using the following URI and Json request:

curl -X POST --header "Content-Type: application/json" --header "Accept: application/json" --header "Authorization: Bearer 2ZhFbmqYGwmrk7kVXWeGb9bLb70l" -d "{
\"workspaces\": [
{
\"name\": \"New Workspace For JDF\",
\"templateId\": 123456,
\"hostName\": \"Intralinks\",
\"description\": \"This is a new workspace for JDF\",
\"phase\": \"HOLD\",
\"suppressWelcomeAlert\": true,
\"industryCodeValue\": \"string\"
}
]
}" "https://test-api.intralinks.com/v2/workspaces"

I get the following error:

{
"status": {
"code": 400,
"errorId": "47e108e5-dc64-4a5d-a30e-196d6cd30d4c-1475507716453",
"message": "Cannot find entity in repository",
"subcode": "3-1"
},
"errors": [
{
"code": 400,
"message": "Cannot find entity in repository",
"subCode": "3-1"
}
]
}

What is the repository and how to I know what 'templateid' I need to pass in this request (I'm guessing 123456 is not a valid template id but I don't know what this field should be filled in with. The information at the top of your 'POST' example says that the 'id' field need not contain anything as the system will assign it when a new workspace is created. That doesn't seem to be the case...

Help please.

Thanks,
John Floyd


cschumann
Re: Can't create new workspace.

Hi John,


When working with the Intralinks VIA Pro API (https://developers.intralinks.com/content/via_interactive), the template ID is optional. If you know it, you can pass it, but in 90% of the cases, users do not and need not know what it is. VIA will figure that out for you.


When working with the VIA Elite API (https://developers.intralinks.com/content/v2_interactive) you need to pass a valid template ID that you have access to. However, creating workspaces is not an operation that the average user ever does and therefore there are additional requirements before being able to execute this. The first is having access to the template ID. THere is no API to get the templates that you have access to because it is not a typical operation. Second, you will need to be a business group coordinator in the same business group that the template belongs to.


Based on your sample here, you are calling the VIA Elite API and passing an invalid template ID. However, I think from past communications you are working with VIA Pro. If this is the case simply switching to the appropriate API set will solve your problem. Otherwise, please reach out to me directly and we can see what we can do to help get you moving in the right direction.


 


- Craig


jfloydvarde
Thanks Craig,

Thanks Craig,

I've switched to the Elite API because I thought that was the more current of the two. If that's not correct, please let me know. For now, I'll back off of the requirement to create a workspace. I was simply going through the exercise of creating methods in my code for each of the corresponding API methods that are available. Thanks for the quick response.

John


Add new comment