Questionnaire

Update a questionnaire

Changed on

Updates name, description, due date and/or status. Omitted fields keep their stored value; an explicit null clears description or dueDate. A questionnaire owned by Retraced can only be updated by a Retraced admin.

patch/api/questionnaires/{id}

Request

  • Base URL
    https://api.retraced.com (the document declares no server; this is the origin it was published from)
  • URL
    https://api.retraced.com/api/questionnaires/{id}
  • Auth
    none declared

Path parameters

idstring required

Request body

namestring
descriptionstring nullable
dueDatestring date-time nullable
status'ACTIVE' | 'COMPLETED' | 'DRAFT'

Response

Default Response

Changes

    • info

      the request property's maxLength was increased from 500 to 1024

    • breaking

      removed subschema #1 subschema #2 from the request property anyOf list

    • breaking

      removed subschema #1 subschema #2 from the request property anyOf list

    • breaking

      added the pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$ to the request property

    • breaking

      the request property type changed from no type to string

    • breaking

      the request property type changed from no type to string, and format from no format to date-time

    • warning

      the request property's maxLength was set to 500

    • info

      the request property became nullable

    • info

      the request property became nullable