跳到主要内容

Duplicate survey

Duplicate an existing survey with a new name

Path Parameters
workspaceId cuid2 REQUIRED

Possible values: Value must match regular expression ^[0-9a-z]+$

surveyId string REQUIRED
Request Body REQUIRED
name string REQUIRED
Responses
200

Successful response

Schema OPTIONAL
id string
workspaceId string
name string
payload object
items object[]
label string
name string
type string

Possible values: [text, select, email, imageUrl]

options string[] OPTIONAL
feedChannelIds string[]
feedTemplate string
webhookUrl string
recentSuggestionCategory string[]
createdAt string
updatedAt string
400

Invalid input data

Schema OPTIONAL
message string

The error message

code string

The error code

issues object[] OPTIONAL

An array of issues that were responsible for the error

message string
401

Authorization not provided

Schema OPTIONAL
message string

The error message

code string

The error code

issues object[] OPTIONAL

An array of issues that were responsible for the error

message string
403

Insufficient access

Schema OPTIONAL
message string

The error message

code string

The error code

issues object[] OPTIONAL

An array of issues that were responsible for the error

message string
500

Internal server error

Schema OPTIONAL
message string

The error message

code string

The error code

issues object[] OPTIONAL

An array of issues that were responsible for the error

message string