Spaces

Create a space

Creates a space under a team with a chosen or generated slug. Pass source to create it from a GitHub repository and start its first build. Use POST /v1/publish to create a space and publish content in one call.

post/v1/spaces

Request

  • Base URL: https://api.spacefast.com
  • URL: https://api.spacefast.com/v1/spaces
  • Auth: one of:
    • HTTP bearer
    • OAuth 2 (authorization code, authorization URL https://api.spacefast.com/v1/auth/oauth2/authorize, token URL https://api.spacefast.com/v1/auth/oauth2/token; client credentials, token URL https://api.spacefast.com/v1/auth/oauth2/token, scopes: spaces:write)

Request body

teamIdstring nullable
slugstring
titlestring
access'private' | 'team' | 'public'

Set the initial root access for this new team-owned Space. Omit this field to use the team's default.

dataLocationstring

Data location for a new Space; "auto" lets placement decide.

Response

Response for status 201

$schemastring uri

Canonical JSON Schema URL for this response body. The server also sends it in the Link: rel="describedby" response header.

Changes

No recorded changes to this operation across all 1 revision of this API.