Skip to navigation

Create a website

View as MarkdownOpen in Claude

Adds a website to your organization, in the team you choose. The website starts unconnected: link it afterwards with “Create a Modular Connector download link” or “Retrieve a website’s manual connection credentials”.

Body

  • name (string, required): the website’s name, at most 60 characters.
  • provider (string, required): only wp (WordPress) is supported.
  • uri (string, required): the website’s address, at most 250 characters. It must be a public URL that Modular DS can reach and cannot belong to another website of your organization.
  • team (integer, required): the team the website joins.

Errors

  • 422: the address is unreachable, private or already used by one of your websites.
  • 404: the team is not one of yours, or your organization has used all the websites its plan includes and does not allow extra ones.

Authentication

AuthorizationBearer

Personal access token created in the Modular DS dashboard; read-only tokens can only call GET endpoints.

Request

This endpoint expects an object.
namestringOptional
providerstringOptional
teamdoubleOptional
uristringOptional

Response headers

LocationstringOptional

Response

201 - Website created

dataobjectOptional
jsonapiobjectOptional