UpdateGroup

 

LibraryService / UpdateGroup

 

Description: Update Groups

URL: http://{your-server-url}/api/v1/core/libraries/groups/{groupid}

Method: PUT

Token Required: True


Request Headers:
content-type: application/json or content-type: application/xml
token: {token}
currentuserid: {switch to user id}
Required Roles:

Portal Administrator, Account Administrator, Account Owner, Content Administrator, Content Manager, Widget Manager

Rights:

Type: Nexus.AppSpace.Service.Contract.Model.Enums.Rights.Rights

Right Require
Content_Management Yes

Request:

Type: Nexus.AppSpace.Service.Contract.Messages.AppSpaceIntegration.v1.Library.LibraryRequest

Parameter Type Nullable
Request.Group Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.Contents.Group False

Response:

Type: Nexus.AppSpace.Service.Contract.Messages.AppSpaceIntegration.v1.Library.LibraryResponse

Parameter Type
Response.Group Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.Contents.Group

Enums:
Field Name Values
Operation Nexus.AppSpace.Service.Contract.Model.Enums.Rights.Operation Undefined = 0, Read_Only = 2, Read_Only = 2, Write = 4, Modify = 8, Special = 14, Delete = 16, Full_Control = 30

The following is an example request Xml body:
<LibraryRequest xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages.AppSpaceIntegration.v1.Library" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <Group xmlns:a="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.Contents">
    <a:Guid>11111111-1111-1111-1111-111111111111</a:Guid>
    <a:IsRootShare>true</a:IsRootShare>
    <a:IsShare>true</a:IsShare>
    <a:IsShared>true</a:IsShared>
    <a:LastUpdate>2015-08-25T17:17:39.6770806Z</a:LastUpdate>
    <a:Metadata xmlns:b="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Model.DTO">
      <b:KeyValuePair>
        <b:Key>String</b:Key>
        <b:Value>String</b:Value>
      </b:KeyValuePair>
    </a:Metadata>
    <a:Name>String</a:Name>
    <a:Operation>Special</a:Operation>
    <a:ParentId>123</a:ParentId>
    <a:SharedGroupId>123</a:SharedGroupId>
  </Group>
</LibraryRequest>

The following is an example request Json body:
{
	"Group":{
		"Guid":"11111111-1111-1111-1111-111111111111",
		"IsRootShare":true,
		"IsShare":true,
		"IsShared":true,
		"LastUpdate":"\/Date(1440523059677)\/",
		"Metadata":[
			{
				"Key":"String",
				"Value":"String"
			}
		],
		"Name":"String",
		"Operation":14,
		"ParentId":123,
		"SharedGroupId":123
	}
}

The following is an example response Xml body:
<LibraryResponse xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages.AppSpaceIntegration.v1.Library" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <DebugMessage xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages">String</DebugMessage>
  <Errors xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages">
    <Error>
      <Code>String</Code>
      <Message>String</Message>
      <StackTrace>String</StackTrace>
    </Error>
  </Errors>
  <Status xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages">Success</Status>
  <Group xmlns:a="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.Contents">
    <a:Guid>11111111-1111-1111-1111-111111111111</a:Guid>
    <a:Id>123</a:Id>
    <a:IsRootShare>true</a:IsRootShare>
    <a:IsShare>true</a:IsShare>
    <a:IsShared>true</a:IsShared>
    <a:LastUpdate>2015-08-25T17:17:39.6770806Z</a:LastUpdate>
    <a:Metadata xmlns:b="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Model.DTO">
      <b:KeyValuePair>
        <b:Key>String</b:Key>
        <b:Value>String</b:Value>
      </b:KeyValuePair>
    </a:Metadata>
    <a:Name>String</a:Name>
    <a:Operation>Special</a:Operation>
    <a:ParentId>123</a:ParentId>
    <a:SharedGroupId>123</a:SharedGroupId>
  </Group>
</LibraryResponse>

The following is an example response Json body:
{
	"DebugMessage":"String",
	"Errors":[
		{
			"Code":"String",
			"Message":"String",
			"StackTrace":"String"
		}
	],
	"Status":1,
	"Group":{
		"Guid":"11111111-1111-1111-1111-111111111111",
		"Id":123,
		"IsRootShare":true,
		"IsShare":true,
		"IsShared":true,
		"LastUpdate":"\/Date(1440523059677)\/",
		"Metadata":[
			{
				"Key":"String",
				"Value":"String"
			}
		],
		"Name":"String",
		"Operation":14,
		"ParentId":123,
		"SharedGroupId":123
	}
}