Update a report

put/reports/{reportId}
Internal-Use Only

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": "2019-08-24T14:15:22Z",
6 "createdBy": "user1",
7 "modifiedTimeStamp": "2019-08-24T14:15:22Z",
8 "modifiedBy": "user1",
9 "links": [
10 {
11 "method": "GET",
12 "rel": "self",
13 "href": "/reports/reports/f8b66d4b-d67a-4e4e-a66d-b6f06b1820bf",
14 "uri": "/reports/reports/f8b66d4b-d67a-4e4e-a66d-b6f06b1820bf",
15 "type": "application/vnd.sas.report"
16 },
17 {
18 "method": "GET",
19 "rel": "alternate",
20 "href": "/reports/reports/f8b66d4b-d67a-4e4e-a66d-b6f06b1820bf",
21 "uri": "/reports/reports/f8b66d4b-d67a-4e4e-a66d-b6f06b1820bf",
22 "type": "application/vnd.sas.summary"
23 },
24 {
25 "method": "PUT",
26 "rel": "update",
27 "href": "/reports/reports/f8b66d4b-d67a-4e4e-a66d-b6f06b1820bf",
28 "uri": "/reports/reports/f8b66d4b-d67a-4e4e-a66d-b6f06b1820bf",
29 "type": "application/vnd.sas.report",
30 "responseType": "application/vnd.sas.report"
31 },
32 {
33 "method": "PUT",
34 "rel": "updateContent",
35 "href": "/reports/reports/f8b66d4b-d67a-4e4e-a66d-b6f06b1820bf/content",
36 "uri": "/reports/reports/f8b66d4b-d67a-4e4e-a66d-b6f06b1820bf/content",
37 "type": "application/vnd.sas.report.content",
38 "responseType": "application/vnd.sas.report.content"
39 }
40 ],
41 "imageUris": {
42 "icon": "/reports/icons/report.gif"
43 },
44 "version": 1
45}

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.

Example:
{"id":"4eb3b675-e107-4857-a8f4-51aa555ac7e7","name":"TEST Update Report","description":"TEST New Description"}
NameTypeRequiredDescription
id
string<object-id>
false

Report id.

name
string
false

The localizable report name.

description
string
false

The localizable report description.

Responses

StatusMeaningDescription
200OKReport was updated.HeadersSchema
400Bad RequestThe input report was not valid.Schema
404Not FoundReport does not exist.Schema
412Precondition FailedThe `If-Match` or `If-Unmodified-Since` header did not match the current version of the resource.Schema
428Precondition RequiredThe `If-Match` or `If-Unmodified-Since` was not provided when updating the report.Schema