Administration/Questionnaire Templates

Clone a questionnaire template as the Retraced admin

Changed on

Copies a Retraced-owned template, its sections and its questions into a brand-new draft template named "Copy of …". The admin twin of POST /api/questionnaires/:id/save-as-template — same clone, same service — but gated on admin:questionnaire:create, which only RETRACED_ADMIN holds. The source is looked up across companies and must be Retraced-owned: a company-owned questionnaire answers 403 cannot_clone_template, an unknown id 404. The clone belongs to the source's company, carries no answer requests or responses, and starts inactive so it stays out of the shared template pool until it is switched on.

post/api/admin/questionnaires/templates/{id}/copy

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/admin/questionnaires/templates/{id}/copy
  • Auth
    none declared

Path parameters

idstring required

Response

Default Response

Changes

    • 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

    • info

      endpoint added