Click or drag to resize

ContainerManagerAddContainer Method

Adds the given container and all of its container items. All container items of type ContainerItemPassword and ContainerItemPasswordMemo are encrypted in the process. If neither a template group ID nor right templates are provided, the rights of the organisation unit are applied to the password.

Namespace:  PsrApi.Managers
Assembly:  PsrApi (in PsrApi.dll) Version: 9.3.1.33994 (05.02.2026)+877276ecd19b420b1689117d76424351f3a6cb2b
Syntax
C#
public Task<PsrContainer> AddContainer(
	PsrContainer container,
	Nullable<Guid> parentOrganisationUnitId,
	List<PsrDataRightTemplate> rightTemplates = null,
	Nullable<Guid> templateGroupId = null
)

Parameters

container
Type: PsrApi.DataPsrContainer
parentOrganisationUnitId
Type: SystemNullableGuid
ID of the organisation unit the new container should belong to
rightTemplates (Optional)
Type: System.Collections.GenericListPsrDataRightTemplate
templateGroupId (Optional)
Type: SystemNullableGuid
ID of a PsrTemplateGroup

Return Value

Type: TaskPsrContainer
See Also