Skip to main content

Update a mission by ID

PUT 

/missions/:missionId

The Update Mission request allows you to update the information of an existing mission for current Active Map in ANSCER. This request takes in the mission's unique ID as a parameter, as well as any updated mission information in the form of a JSON object. This request can be used to update a mission's name, and iteration, and/or its tasks.

Request

Path Parameters

    missionId stringrequired

    The ID of the mission to retrieve, update or delete

Body

required
    name stringrequired

    Possible values: >= 3 characters and <= 50 characters

    iteration int32required

    Possible values: >= 1

    Default value: 1

    tasks object[]required

    Possible values: >= 1

  • Array [
  • anyOf
    type stringrequired

    Possible values: [move]

    name string

    Possible values: <= 50 characters

    id timestamp
    data objectrequired
    waypoint uuidrequired

    The ID of the waypoint to move to

    label string

    Possible values: >= 3 characters and <= 50 characters

  • ]
  • properties object

Responses

Mission updated

Schema
    name stringrequired

    Possible values: >= 3 characters and <= 50 characters

    iteration int32required

    Possible values: >= 1

    Default value: 1

    tasks object[]required

    Possible values: >= 1

  • Array [
  • anyOf
    type stringrequired

    Possible values: [move]

    name string

    Possible values: <= 50 characters

    id timestamp
    data objectrequired
    waypoint uuidrequired

    The ID of the waypoint to move to

    label string

    Possible values: >= 3 characters and <= 50 characters

  • ]
  • map object
    _id uuid
    name string

    Possible values: >= 3 characters and <= 50 characters

    properties object
    createdBy object

    The user who created this mission

    _id string
    name string
    email email
    updatedBy object

    The user who last updated this mission

    _id string
    name string
    email email
    createdAt date-time

    The date and time this mission was created

    updatedAt date-time

    The date and time this mission was last updated

Loading...