Questionnaire

Create a questionnaire template

Changed on

Creates an empty draft template for the calling company. Unlike creating a questionnaire, nothing is cloned and the name is not checked for uniqueness — a company may hold several templates under one name. A Retraced admin's template is Retraced-owned and starts inactive, so it stays hidden until it is switched on.

post/api/questionnaires/templates

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/templates
  • Auth
    none declared

Request body

namestring required
descriptionstring

Response

Default Response

Changes

    • info

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

    • breaking

      the response property / became nullable for the status

    • breaking

      the response property / became nullable for the status

    • breaking

      the response property / became nullable for the status

    • breaking

      the response property / became nullable for the status

    • breaking

      the response property / became nullable for the status

    • breaking

      the response property / became nullable for the status

    • breaking

      the response property / became nullable for the status

    • breaking

      the response property / became nullable for the status

    • breaking

      the response property / became nullable for the status

    • breaking

      the response property / became nullable for the status

    • info

      response property data/companyId list-of-types was narrowed by removing types null from media type application/json of response 201

    • info

      response property data/description list-of-types was narrowed by removing types null from media type application/json of response 201

    • info

      response property data/isActive list-of-types was narrowed by removing types null from media type application/json of response 201

    • info

      response property data/isArchived list-of-types was narrowed by removing types null from media type application/json of response 201

    • info

      response property data/isRetraced list-of-types was narrowed by removing types null from media type application/json of response 201

    • info

      response property data/isTemplate list-of-types was narrowed by removing types null from media type application/json of response 201

    • info

      response property data/name list-of-types was narrowed by removing types null from media type application/json of response 201

    • info

      response property data/statistics list-of-types was narrowed by removing types null from media type application/json of response 201

    • info

      response property data/status list-of-types was narrowed by removing types null from media type application/json of response 201

    • info

      response property data/templateId list-of-types was narrowed by removing types null from media type application/json of response 201