questions

Add an option

post/workspaces/{id}/questions/{questionId}/options

Request

  • Base URL: https://api.swingfactor.ai/v1
  • URL: https://api.swingfactor.ai/v1/workspaces/{id}/questions/{questionId}/options
  • Auth: HTTP bearer

Path parameters

idstring uuid required

The workspace's id (a UUID).

questionIdstring uuid required

The question's id (a UUID).

Headers

Idempotency-Keystring

Any unique string. The same key, method, path and body within 24 hours answers with the first response instead of creating again; the same key on a different request is 409 idempotency_key_reused.

Request body

labelstring required
descriptionstring
positioninteger
suggestedboolean

SwingFactor suggested it while the question was asked, and the person accepted it.

Response

The option.

idstring uuid required
workspaceIdstring uuid required
questionIdstring uuid required
labelstring required
descriptionstring
positioninteger required
status'proposed' | 'accepted' | 'rejected' required

A person’s option stands accepted; a draft’s is proposed until a person decides it. Only accepted options compute; a rejected one is kept.

decidedBystring uuid
decidedByNamestring
decidedAtstring
createdAtstring required
draftIdstring uuid

Set where SwingFactor drafted it.

suggestedboolean

SwingFactor suggested it while the question was asked.

updatedAtstring required

Example response

{
  "label": "Remain in the UK"
}

Changes

No recorded changes to this operation across all 1 revision of this API.