Description: Create SharedGroups
URL: http://{your-server-url}/api/v1/core/libraries/sharedgroups
Method: POST
Token Required: True
currentuserid: {switch to user id}
content-type: application/json or content-type: application/xml
token: {token}
Portal Administrator, Account Administrator, Account Owner, Content Administrator, Content Manager, Widget Manager
Type: Nexus.AppSpace.Service.Contract.Model.Enums.Rights.Rights
Right | Require | Comment |
---|---|---|
Content_Management | Yes | |
Network_Management | Optional | Required if shared group created to share within network |
Account_Management | Optional | Required if shared group created to share within account |
Portal_Management | Optional | Required if shared group created to share within portal |
Type: Nexus.AppSpace.Service.Contract.Messages.AppSpaceIntegration.v1.Library.LibraryRequest
Parameter | Type | Nullable |
---|---|---|
Request.SharedGroups | Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.Contents.SharedGroup[] | False |
Type: Nexus.AppSpace.Service.Contract.Messages.AppSpaceIntegration.v1.Library.LibraryResponse
Parameter | Type |
---|---|
Response.SharedGroups | Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.Contents.SharedGroup[] |
Field | Name | Values |
---|---|---|
Permission | 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 |
ResourceScope | Nexus.AppSpace.Service.Contract.Model.Enums.Resource.Scope | Undefined = 0, Portal = 1, Account_Groups = 2, Accounts = 3, Networks = 4, Applications = 5, Players = 6, User_Groups = 7, Users = 8, Zones = 9, DataSources = 10, ContentSize = 11, Server = 12, Content = 13, Campaign = 14, Client = 15, Site = 16, Widget = 17, LayoutSchedule = 18, CampaignEntity = 19, ContentFolders = 20, Layouts = 21, MediaZone = 22, Player_Groups = 23, Space = 24 |
<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"> <SharedGroups xmlns:a="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.Contents"> <a:SharedGroup> <a:GroupId>123</a:GroupId> <a:Id>123</a:Id> <a:IsRecursive>true</a:IsRecursive> <a:Permission>Special</a:Permission> <a:ResourceId>123</a:ResourceId> <a:ResourceScope>Space</a:ResourceScope> </a:SharedGroup> </SharedGroups> </LibraryRequest>
{ "SharedGroups":[ { "GroupId":123, "Id":123, "IsRecursive":true, "Permission":14, "ResourceId":123, "ResourceScope":24 } ] }
<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> <SharedGroups xmlns:a="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.Contents"> <a:SharedGroup> <a:GroupId>123</a:GroupId> <a:Id>123</a:Id> <a:IsRecursive>true</a:IsRecursive> <a:Permission>Special</a:Permission> <a:ResourceId>123</a:ResourceId> <a:ResourceScope>Space</a:ResourceScope> </a:SharedGroup> </SharedGroups> </LibraryResponse>
{ "DebugMessage":"String", "Errors":[ { "Code":"String", "Message":"String", "StackTrace":"String" } ], "Status":1, "SharedGroups":[ { "GroupId":123, "Id":123, "IsRecursive":true, "Permission":14, "ResourceId":123, "ResourceScope":24 } ] }