admCreateSpace

admCreateSpace

Syntax

admCreateSpace(spaceKey, spaceName, spaceDescription, user)

Package

Alias

admCreateSpace(cSpaceType)

Pkg Usage

Description

Creates a new space, optionally offering support for the category of the space.

Parameters

Parameter name

Type

Required

Description

space key

String

Yes

Key of new space. Required if not using CSpace as the parameter.

space name

String

Yes

Name of new space. Required if not using CSpace as the parameter.

space description

String

Yes

Description for the new space. Required if not using CSpace as the parameter.

user

String

Yes

User who will be listed as the space creator. Required if not using CSpace as the parameter.

Or

Parameter name

Type

Required

Description

space type

CSpace

Yes

Predefined structure that defines the new space.

Return Type

Boolean (true/false)

Returns true if the key and name aren't already used by another space.

Examples

Example 1

string spaceKey = "TST"; string spaceName = "New Test Space"; string spaceDescription = "New space create by Power Scripts"; string user = "admin"; return admCreateSpace(spaceKey, spaceName, spaceDescription, user);

Example 2

CSpace newSpace; newSpace.key = "TST"; newSpace.name = "New Test Space"; newSpace.description = "New space create by Power Scripts"; newSpace.creator = "admin"; return admCreateSpace(newSpace);

See also

Need support? Create a request with our support team.

Copyright © 2005 - 2025 Appfire | All rights reserved.