Skip to content

Using rest api to create modern site #7430

@jrnesler13

Description

@jrnesler13

What type of issue is this?

Question

What SharePoint development model, framework, SDK or API is this about?

SharePoint REST API

Target SharePoint environment

SharePoint Online

What browser(s) / client(s) have you tested

  • 💥 Internet Explorer
  • 💥 Microsoft Edge
  • 💥 Google Chrome
  • 💥 FireFox
  • 💥 Safari
  • mobile (iOS/iPadOS)
  • mobile (Android)
  • not applicable
  • other (enter in the "Additional environment details" area below)

Additional environment details

  • browser version
  • SPFx version
  • Node.js version
  • etc

Issue description

I'm following the documentation here to utilizing the Sharepoint REST API to create a new site as part of a Power Automate Flow.

I always get back a 200 status code, but the SiteStatus comes back as "3", with no additional details. This happens easily 9 times out of 10.
On occasion I will get the SiteStatus back as "2", but this is intermittent at best.
I've attached a picture of my flow http request and the response I get back.

Am I missing something to get this to work consistently?

Flow Request:
httprequesttosharepoint

Response output:
responsenositecreatedbut200

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:csom/rest/apiCategory: SharePoint Client Side Object Model SDK / REST APItype:archive-old-issueIssues which are closed as tool old for active work

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions