Skip to main content
POST
Copy a site

Authorizations

Authorization
string
header
required

A member credential in the Authorization: Bearer header: a member session JWT, a portal JWT whose login is linked to a membership in that company, an opaque member token, or a verified One Auth identity access token. The credential alone identifies the member and company. Member session and portal JWTs are read-only and are refused with 403 on every write.

Path Parameters

id
string<uuid>
required

Public id of one of the member's sites.

Body

application/json

Optional choices for a copy. Any other field, such as visibility, is refused as an unknown field.

name
string

Display name of the copy. Omit it to use "Copy of" followed by the original's name.

Required string length: 1 - 255
Pattern: ^[^\u0000]*[^\s\u0000][^\u0000]*$
handle
string

Lowercase letters and digits separated by single hyphens, not reserved and not used by another site in the company. Omit it to have one proposed from the name.

Required string length: 1 - 40
Pattern: ^[a-z0-9]+(-[a-z0-9]+)*$

Response

The new site, a draft owned by the member.

One site.

status
integer
required

HTTP status code (mirrors the response status line).

data
object
required

One of the member's sites.

meta
object
required

Envelope metadata present on every response.