Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New command: spo page default get #6493

Open
milanholemans opened this issue Nov 16, 2024 · 2 comments
Open

New command: spo page default get #6493

milanholemans opened this issue Nov 16, 2024 · 2 comments

Comments

@milanholemans
Copy link
Contributor

Usage

m365 spo page default get [options]

Description

Gets the home page for a specific site

Options

Option Description
-u, --siteUrl <siteUrl> URL of the SharePoint site.

Examples

Get the home page of a specific site

m365 spo page default get --siteUrl https://contoso.sharepoint.com/sites/Marketing

Default properties

No response

Additional Info

To get to know which page is the current home page, execute this request:

GET https://contoso.sharepoint.com/sites/Playground/_api/Web/RootFolder?$select=WelcomePage

Thereafter, you should retrieve the site page with a GetFileByServerRelativePath request.

@milanholemans milanholemans added new feature needs peer review Needs second pair of eyes to review the spec or PR good first issue labels Nov 16, 2024
@Jwaegebaert Jwaegebaert added help wanted and removed needs peer review Needs second pair of eyes to review the spec or PR labels Nov 19, 2024
@Saurabh7019
Copy link
Contributor

Assign this to me please.

...with a GetFileByServerRelativePath request.

assuming this command will return detailed information about the home page and not just the relative URL.

@milanholemans
Copy link
Contributor Author

Assign this to me please.

...with a GetFileByServerRelativePath request.

assuming this command will return detailed information about the home page and not just the relative URL.

Yes, the response should look the same as spo page get.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants