Create report

post/reports

Creates a new report and adds it to a folder as a child.

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}

Query Parameters

NameTypeRequiredDescription
parentFolderUri
string<uri>
true

The URI of the parent folder of the report.

Request Body

The report to create. A full report can be included, but only the name and description are used to create the new report.

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

NameTypeRequiredDescription
name
string
false

The localizable report name.

description
string
false

The localizable report description.

Responses

StatusMeaningDescription
201Created

New report created. Use the updateContent link in the new report to store the report content. ETag header is returned. See Conditional Operations.

HeadersSchema
400Bad Request

The input report is invalid, or the parentFolderUri is not a valid folder URI or is not found.

Schema
409Conflict

A report with the same name is already a member of the folder.

Schema