Update survey report

Update Survey Report

Copies a specified survey report and optionally applies date filters to the copy. At this time, only copying a report is supported — you cannot add filters to an existing report via the API.

Endpoint

POST v5/survey/{survey_id}/surveyreport/{report_id}

Requires authentication

Path Parameters

survey_id
string
required
The ID of the survey the report belongs to.
report_id
string
required
The ID of the report to copy.

Query Parameters

copy
boolean
required
Must be set to true to copy the report.
filter_dates
object
Date range filter to apply to the copied report.

Response

Returns the newly created copy of the report.

result_ok
boolean
Whether the request succeeded.
data
object
The newly created report object. See Get Survey Report for the full list of response fields.

Examples

Request (cURL)
curl -X POST "https://api.alchemer.com/v5/survey/123456/surveyreport/1234567?api_token=YOUR_API_TOKEN&api_token_secret=YOUR_API_TOKEN_SECRET&copy=true&filter_dates[after]=1/1/2024&filter_dates[before]=3/31/2024"
Response
{
  "result_ok": true,
  "data": {
    "id": 1234568,
    "title": "Profile Report - Q1",
    "type": "report_profile",
    "created_on": "2018-03-28 12:56:04",
    "modified_on": "2018-03-28 13:02:14",
    "created_by": "123456",
    "modified_by": "123456",
    "last_run": null,
    "published": "False",
    "password_protected": "0",
    "filters": {
      "filter": null,
      "filter_map": ":5abbca8e95f9e,5abbca8e96048"
    },
    "publish_links": "https://app.alchemer.com/reportsview/?key=12345",
    "scheduled": {
      "type": null,
      "status": null,
      "next_run": null,
      "last_run": null,
      "recurring": null
    }
  }
}