Request
Body Params multipart/form-data
Request samples
curl --location --request PUT 'https://api.sqabl.com/v1/post/' \
--header 'Authorization: Bearer some-random-token' \
--form 'imageFile=@""' \
--form 'imageSrc=""' \
--form 'question=""' \
--form 'title=""' \
--form 'description=""' \
--form 'pollContent=""' \
--form 'pollOptions[]=""' \
--form 'duration="3600"' \
--form 'scheduledStartTime="2024-10-05T18:50:00+01:00"' \
--form 'deleteCurrentImage=""'
Responses
application/json {
"success": true,
"statusCode": 200,
"data": {
"id": "cm1z66sxy0000u4v311cjcpzo",
"type": "poll",
"dateCreated": "2024-10-07 15:31:43.751Z",
"dateEdited": "2024-10-07 15:31:43.751Z",
"owner": {
"id": "cm1n5ubk200008ov3f8907ugy",
"displayName": "Hiseous Hiseous",
"imageSrc": "https://lh3.googleusercontent.com/a/ACg8ocICrDCtTUBH6BWXwWnRJkBHknyk9iHBfjupK_mhZrdj13z0EQ=s96-c"
},
"arena": {
"id": "cm1xknwrc000008jp5hnu84m0",
"name": "United for life"
},
"closed": true,
"closingDate": "2024-10-07T16:10:43.000Z",
"pollOptions": [
{
"text": "Some option text"
},
{
"text": "Some option text"
}
],
"pollContent": "Some poll content.",
"edited": true
}
}
Modified at 2025-06-23 10:38:43