Report

URL:
https://<reports-url>/<report_id>
Methods:
GET
Child Resources:
Edit Report
Version Introduced:
11.1

Description

A resource describing all of the specified fields and associated data for a specific report.

Request parameters

ParameterDetails

f

The response format. The default response format is html .

Values: html | json | pjson

Example usage

Below is a sample request URL for the connectionInfo resource:

Use dark colors for code blocksCopy
1
https://machine.domain.com/webadaptor/rest/services/<mission_id>/MissionServer/reports/<report_id>?f=pjson

JSON Response syntax

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{
    "reportType": "<title>",
    "itemId": "<portal_item_id>",
    "settings": {
        "completeContent": {
            "instructions": "Thank you.",
            "completeMessage": "Your report was successfully submitted.",
            "asset": null
        },
        "errorContent": {
            "instructions": "Please try again.",
            "errorMessage": "There was a problem submitting your report.",
            "asset": null
        }
    },
    "reportServiceId": "<feature_service_id>",
    "submit": {"buttonText": "Submit Report"},
    "footer": {
        "isVisible": true,
        "content": "Powered by ArcGIS Mission"
    },
    "authoringApp": "<authoring_app>",
    "questions": [
        {
            "isRequired": <bool>,
            "fieldName": "<field_name>",
            "defaultValue": "<default>",
            "name": "<name>",
            "description": "<description>",
            "id": "<id>",
            "position": <int>,
            "label": "<label>",
            "type": "<esri_question_type>"
        }
    ],
    "header": {
        "isVisible": true,
        "content": "<title>"
    },
    "reportUrl": "<feature_service_url>",
    "version": "1.0",
    "subHeader": {
        "isVisible": true,
        "content": "<description>"
    }
}

JSON Response example

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
{
    "reportType": "Damage Report",
    "itemId": "b364b0f6bd584df797f0c9cfdb333b29",
    "settings": {
        "completeContent": {
            "instructions": "Thank you.",
            "completeMessage": "Your report was successfully submitted.",
            "asset": null
        },
        "errorContent": {
            "instructions": "Please try again.",
            "errorMessage": "There was a problem submitting your report.",
            "asset": null
        }
    },
    "reportServiceId": "3fb096050a6245149b2f8db436866675",
    "submit": {"buttonText": "Submit Report"},
    "footer": {
        "isVisible": true,
        "content": "Powered by ArcGIS Mission"
    },
    "authoringApp": "arcgisMissionManager",
    "questions": [
        {
            "isRequired": true,
            "fieldName": "damage_description",
            "defaultValue": "",
            "name": "multi_line_text",
            "description": "Multiline Text Field used to describe the damage",
            "id": "field_2",
            "position": 1,
            "label": "Describe the damage",
            "type": "esriQuestionTypeTextArea"
        },
        {
            "isRequired": false,
            "fieldName": "damage_level",
            "defaultValue": "single_choice_1",
            "name": "single_choice",
            "description": "Select a level of damage.",
            "id": "field_3",
            "position": 2,
            "label": "Label for selecting a level of damage",
            "type": "esriQuestionTypeSingleChoice",
            "choices": {"items": [
                {
                    "label": "This is option 1",
                    "position": 0,
                    "value": "single_choice_1"
                },
                {
                    "label": "This is option 2",
                    "position": 1,
                    "value": "single_choice_2"
                }
            ]}
        },
        {
            "isRequired": false,
            "fieldName": "date_time_occured",
            "name": "date_time",
            "description": "Select a Date and Time when the damage approx. occured",
            "id": "field_4",
            "position": 3,
            "label": "Date and Time damage occured",
            "type": "esriQuestionTypeDateTime"
        },
        {
            "isRequired": false,
            "fieldName": "team_reported",
            "defaultValue": "",
            "name": "dropdown",
            "description": "Select a team that reported the damage",
            "id": "field_5",
            "position": 4,
            "label": "Reported by team:",
            "type": "esriQuestionTypeDropdown",
            "choices": {"items": [
                {
                    "label": "Team Alpha",
                    "position": 0,
                    "value": "dropdown_choice_1"
                },
                {
                    "label": "Team Bravo",
                    "position": 1,
                    "value": "dropdown_choice_2"
                }
            ]}
        },
        {
            "isRequired": false,
            "fieldName": "damage_image",
            "name": "Image",
            "description": "Upload an Image",
            "id": "field_6",
            "position": 5,
            "label": "img label",
            "type": "esriQuestionTypeImage"
        }
    ],
    "header": {
        "isVisible": true,
        "content": "Damage Report"
    },
    "reportUrl": "https://your.server.com/server/rest/services/Hosted/DamageReport_14fee53027d943b699113b5268a64677/FeatureServer/0",
    "version": "1.0",
    "subHeader": {
        "isVisible": true,
        "content": "Use this report to document damage in the area"
    }
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.