Update a report

put/reports/{reportId}

Updates the specified report. Requires an If-Match or If-Unmodified-Since request header. See Conditional Operations.

Request Samples

1

Response Samples

1{
2 "id": "f8b66d4b-d67a-4e4e-a66d-b6f06b1820bf",
3 "name": "Sample Report",
4 "description": "Description of a sample report.",
5 "creationTimeStamp": "2025-06-19T10:15:30Z",
6 "label": "my label",
7 "level": "standard",
8 "properties": [
9 "prop1",
10 "prop2"
11 ],
12 "resourceUri": "/reports/reports/f8b66d4b-d67a-4e4e-a66d-b6f06b1820bf",
13 "sasType": "report",
14 "schema": "schema1",
15 "mediaType": 1,
16 "createdBy": "user1",
17 "reportModifiedTimeStamp": "2025-06-19T11:45:00Z",
18 "modifiedBy": "user1",
19 "links": [
20 {
21 "method": "GET",
22 "rel": "self",
23 "href": "/reports/reports/f8b66d4b-d67a-4e4e-a66d-b6f06b1820bf",
24 "uri": "/reports/reports/f8b66d4b-d67a-4e4e-a66d-b6f06b1820bf",
25 "type": "application/vnd.sas.report"
26 },
27 {
28 "method": "GET",
29 "rel": "alternate",
30 "href": "/reports/reports/f8b66d4b-d67a-4e4e-a66d-b6f06b1820bf",
31 "uri": "/reports/reports/f8b66d4b-d67a-4e4e-a66d-b6f06b1820bf",
32 "type": "application/vnd.sas.summary"
33 },
34 {
35 "method": "PUT",
36 "rel": "update",
37 "href": "/reports/reports/f8b66d4b-d67a-4e4e-a66d-b6f06b1820bf",
38 "uri": "/reports/reports/f8b66d4b-d67a-4e4e-a66d-b6f06b1820bf",
39 "type": "application/vnd.sas.report",
40 "responseType": "application/vnd.sas.report"
41 },
42 {
43 "method": "PUT",
44 "rel": "updateContent",
45 "href": "/reports/reports/f8b66d4b-d67a-4e4e-a66d-b6f06b1820bf/content",
46 "uri": "/reports/reports/f8b66d4b-d67a-4e4e-a66d-b6f06b1820bf/content",
47 "type": "application/vnd.sas.report.content",
48 "responseType": "application/vnd.sas.report.content"
49 }
50 ],
51 "imageUris": {
52 "icon": "/reports/icons/report.gif"
53 },
54 "version": 1
55}

Path Parameters

NameTypeRequiredDescription
reportId
string<object-id>
true

Report id for this operation.

Header Parameters

NameTypeRequiredDescription
If-Match
string
false

The ETag that was returned from a GET, POST, PUT, or HEAD of this resource. If the ETag does not match, the update will fail.

If-Unmodified-Since
string
false

The value of the modifiedTimeStamp of the resource. If the resource has been updated since this time, the update will fail.

Request Body

Report to update. A full report can be included, but only id, name, and description are used to update the report.

The representation of a report. This representation is version 1. Optional version=1 parameter is the only one that can be included.

NameTypeRequiredDescription
id
string<object-id>
false

Report id.

name
string
false

The localizable report name.

description
string
false

The localizable report description.

Responses

StatusMeaningDescription
200OK

Report was updated.

HeadersSchema
400Bad Request

The input report was not valid.

Schema
404Not Found

Report does not exist.

Schema
412Precondition Failed

The If-Match or If-Unmodified-Since header did not match the current version of the resource.

Schema
428Precondition Required

The If-Match or If-Unmodified-Since was not provided when updating the report.

Schema