Hello,
I'm trying to use GroupShare API to create project. When executing your example from here: http://sdldevelopmentpartners.sdlproducts.com/Documentation/api?apiId=POST-projectserver-api-1.0-Projects (of course I used OrganizationId taken from my system not from sample) I've got error: "Value cannot be null. Parameter name: parentId". So I tried to add field "parentId" to my JSON, but error still occurred. Could you explain what is wrong with this request?
Below you can find full request and response:
Request:
POST /management/api/1.0/Organizations HTTP/1.1
Host: sdldevelopmentpartners.sdlproducts.com
Content-Type: application/json
Authorization: Bearer << HERE COMES ACCES TOKEN >>
Cache-Control: no-cache
{"Name":"Project Name","OrganizationId":"23bc520f-4d08-4ca2-9d55-74bed8ee69dc"}
Response:
{
"Message": "An error has occurred.",
"ExceptionMessage": "Value cannot be null.\r\nParameter name: parentId",
"ExceptionType": "System.ArgumentNullException",
"StackTrace": " at Sdl.StudioServer.Services.IdentityModel.UserManager.AddResourceGroup(Guid parentId, ResourceGroup resourceGroup)\r\n at Sdl.StudioServer.Services.Management.RestApi.Api.UserManagerAdapter.AddResourceGroup(Guid parentId, ResourceGroup resourceGroup)\r\n at Sdl.StudioServer.Services.Management.RestApi.Controllers.OrganizationsController.AddOrganization(Organization organization)\r\n at lambda_method(Closure , Object , Object[] )\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass13.<GetExecutor>b__c(Object instance, Object[] methodParameters)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.<>c__DisplayClass5.<ExecuteAsync>b__4()\r\n at System.Threading.Tasks.TaskHelpers.RunSynchronously[TResult](Func`1 func, CancellationToken cancellationToken)"
}
Could you also write something more about structure of DTO that can be used in this method? Documentation says: "No documentation available." which is not very useful :)