Question
Last updated
Last updated
DELETE /questions/:id
DELETE
http://api.slyk.io/questions/:id
Deletes the question
with given id
.
204
No Content
GET /questions
GET
https://api.slyk.io/questions
Returns a paginated list of questions
.
GET /questions/:id
GET
https://api.slyk.io/questions/:id
Gets the question details of the given id
.
GET /question-types
GET
https://api.slyk.io/question-types
Returns a paginated list of question types
.
PATCH /questions/:id
PATCH
https://api.slyk.io/questions/:id
Patches the questions
details of the given id
.
POST /questions
POST
https://api.slyk.io/questions
Creates a new question
.
Name
Type
Example
id
=
in
nin
filter[id]=7938e446-1c77-4513-8cb0-8b1f2e9f47b9
productTypeCode
ilike
filter[productTypeCode]=bar
title
ilike
filter[title]=foo
typeCode
=
in
nin
filter[typeCode]=nin:foo
Name
Example
createdAt
sort=createdAt
sort=-createdAt
typeCode
sort=typeCode
sort=-typeCode
title
sort=title
sort=-title
Name
Description
Example
size
Defines the number of results per page. Default = 30.
page[size]=2
number
Defines the number of the page to retrieve. Default = 1
page[number]=2
Name
Type
Example
code
=
in
nin
filter[code]=foo
Name
Example
code
sort=code
sort=-code
createdAt
sort=createdAt
sort=-createdAt
Name
Description
Example
size
Defines the number of results per page. Default = 30.
page[size]=2
number
Defines the number of the page to retrieve. Default = 1
page[number]=2
Field
Type
Required
Description
configurations
object
false
Question configurations that contains possible values.
customData
object
false
Can store any additional information about the question.
description
string
false
Question description.
productTypeCode
string
false
Associated product type code.
required
boolean
false
Require indicator.
title
string
false
Question title.
typeCode
string
false
Associated question type code. One of date
, multiple
, single
, text
, time
Field
Type
Required
Description
configurations
object
false
Question configurations that contains possible values.
customData
object
false
Can store any additional information about the question.
description
string
false
Question description.
productTypeCode
string
true
Associated product type code.
required
boolean
false
Require indicator.
title
string
true
Question title.
typeCode
string
true
Associated question type code. One of date
, multiple
, single
, text
, time