Questions

Create a question. Roles: admin.

Changed on
post/api/questions

Request

  • Base URL
    https://api.mobilecoach.org (the document declares no server; this is the origin it was published from)
  • URL
    https://api.mobilecoach.org/api/questions
  • Auth
    AuthToken (a scheme the document does not define)

Request body

profileQuestionIdinteger
membershipIdinteger required
profileSectionIdinteger
evalSectionIdinteger
contentIdinteger
eventIdinteger
contextKey'ACTIVITY' | 'EVAL' | 'EVENT' | 'PROFILE_SECTION' | 'SELF_REPORT' required
namestring
profileQuestionTypestring required
promptstring required
helpTextstring
seqinteger required
propertiesobject
optionalboolean required
disabledboolean required
adminOnlyboolean required
externalReferenceIdstring
responderType'PRIMARY' | 'DEPENDENT' | 'ALL' required
responderCommentMode'DISABLED' | 'OPTIONAL' | 'REQUIRED' required
responseImagesMode'DISABLED' | 'OPTIONAL' | 'REQUIRED' required
scoringMode'BEST_MATCH' | 'EXACT_MATCH' | 'PARTIAL_MATCH_STRICT' | 'PARTIAL_MATCH_PENALIZED'
isDeferredboolean required

Response

OK

successboolean
errorstring

Changes

    • breaking

      the request property's maxLength was decreased to 255

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status