Fields

Fields
ParameterDescription
name
String
requiredThe display name of the site, reflecting its purpose (e.g., Marketing Team).
url
String
requiredThe web address for accessing the site, typically in the format https://<organization>.sharepoint.com/sites/<site-name>.
languageCode
Integer
optionalThe language of the site as an ISO language code (e.g., 1033 for English, 1036 for French). If omitted, the organisation's default language is used.
description
String
optionalA brief summary explaining the site's purpose or content.
templateId
String
optionalIdentifies the template used to create the site, determining its structure and features (e.g., STS#0 for a Team Site).
designId
String
optionalA unique identifier for the site's design, referring to a site design or customization for layout, branding, or functionality.
admins
List<String>
optionalUsernames or identifiers to grant administrative access to the site.

Constructors

global CreateSharePointSiteInput(String name, String url)
global CreateSharePointSiteInput(
  String name,
  String url,
  Integer languageCode,
  String description,
  String templateId,
  String designId
)

Example

global class CreateSharePointSiteInput {
  public String name;
  public String url;
  public Integer languageCode;
  public String description;
  public String templateId;
  public String designId;

  global CreateSharePointSiteInput(String name, String url) {
    this.name = name;
    this.url = url;
  }
}