Skip to content

New command: update properties of the specified subsite #191

@waldekmastykarz

Description

@waldekmastykarz

Update properties of the specified subsite

  • command: spo web set -u|--webUrl <webUrl> -t|--title [title] -d|--description [description] --siteLogoUrl [siteLogoUrl] --quickLaunchEnabled [quickLaunchEnabled]
  • webUrl: Absolute URL of the subsite to update, required
  • title: New title for the site, optional
  • description: New description for the site, optional
  • siteLogoUrl: New URL of the site logo, optional
  • quickLaunchEnabled: Set to control if quick launch should be enabled or not

Update subsite using:

POST <webUrl>/_api/web
accept: application/json;odata=nometadata
content-type: application/json;odata=nometadata
X-HTTP-Method: MERGE
x-requestdigest: 0x5AB7E...

{
  "Title": "<title>",
  ...
}

Ensure you have access token for the web specified in the webUrl option.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions