Salta ai contenuti

Create or update additional question

POST
/v2/additional-questions
curl --request POST \
--url https://api-crm-staging.divinea.com/api/v2/additional-questions \
--header 'APIKey: <APIKey>' \
--header 'Content-Type: application/json' \
--data '{ "answerType": "example", "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "options": [ { "id": 1, "sortOrder": 1, "texts": { "additionalProperty": "example" } } ], "texts": { "additionalProperty": "example" } }'

Request

Media typeapplication/json
UpsertQuestionRequest
object
answerType
string
id
string format: uuid
options
Array<object>
OptionInput
object
id
integer format: int64
sortOrder
integer format: int32
texts
object
key
additional properties
string
texts
object
key
additional properties
string
Examplegenerated
{
"answerType": "example",
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"options": [
{
"id": 1,
"sortOrder": 1,
"texts": {
"additionalProperty": "example"
}
}
],
"texts": {
"additionalProperty": "example"
}
}

OK

Media type*/*
CreationResponse
object
id
string
message
string
status
string