Skip To Content

Create Mission Service

  • URL:https://<services>/createMission(POST only)
  • Required Capability:Publisher
  • Version Introduced:11.0

Description

The Create Mission Service operation (POST only) is used to create a new Mission Service for ArcGIS Mission Server.

Request parameters

ParameterDetails
title

(Required)

Required. String. The title of the Mission Service.

snippet

(Optional)

String. A short summary of the Mission Service.

description

(Optional)

String. A description of the Mission Service.

licenseInfo

(Optional)

String. Any license information or restrictions.

capabilities

(Optional)

Comma separated list of strings. Used to define the desired capabilities for a Mission Service. If no capabilities are provided a Mission Service is created with all capabilities.

Values: EVENTS, CHAT,PRESENCE,TRACK, and TASK

Example of creating a mission with only chat, track, and task capabilities:

capabilities=CHAT,TRACK,TASK

appId

(Optional)

The application that created the Mission Service

tags

(Optional)

Comma-separated list of strings used to tag the Mission Service.

Format: tag1,tag2,...,tagN

extent

(Optional)

Comma-separated list that defines the bounding rectangle of the mission. Should always be in WGS84. The default is -180, -90, 180, 90.

Format: <xmin>,<ymin>,<xmax>,<ymax>

templateWebMapId

(Optional)

String. The portal item id of the web map to use as a template for the Mission Service.

baseMap

(Optional)

JSON Object. The basemap to add to the Mission Service. See baseMap.

webMapDescription

(Optional)

String. The description of the web map added to the Mission Service

locale

(Optional)

String. The locale in which to generate Mission assets with. Must be a valid IETF BCP 47 language tag. Defaults to en

async

(Required)

Boolean. If true, the missionservice is created asynchronously and a jobId is given. If false, the mission is uploaded synchronously. Default is false.

f

(Optional)

The response format. The default response format is html.

Values: html | json | pjson

Example usage

Below is a sample request URL for the createMission operation:

URL for Create Mission

https://mission.server.com/webadaptor/rest/services/createMission
Content-Type: application/x-www-form-urlencoded

title=My Mission
description=a mission based around the events in a local area
capabilities=CHAT,TASK,REPORT
tags=web,mission
appId=myapp
extent= -85.49998283384012,31.604737101722126,-77.06248283384222,37.39459931132208
baseMap={"baseMapLayers":[{"id":"World_Hillshade_6472","showLegend":true,"title":"World Hillshade","url":"https://services.arcgisonline.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer","layerType":"ArcGISTiledMapServiceLayer"},
{"id":"VectorTile_4829","title":"Charted Territory","layerType":"VectorTileLayer","styleUrl":"https://cdn.arcgis.com/sharing/rest/content/items/4389d7f064a149acb9029820bd075dc4/resources/styles/root.json"}],"title":"Charted Territory Map"}]}
async=true
f=json

JSON Synchronous Response Syntax

Synchronous


{"success":"true"}

JSON Asynchronous Response Syntax

Asynchronous


{"jobId": "<job_id>"}