POST

Mission.Edit

Update a mission (alias of Mission.Update). Includes Priority: transparent (Default), yellow, red, green, blue.

Permissions

  • User must be logged in with a valid bearer token.
  • Returned or changed records are limited by the user permissions, team access, folder access, and account settings.

Action

  • Updates the requested Mission record after validating permissions and input fields.

Push Service

Pushes event mission.updated to users who should see this change.

Automation

Runs automation event mission.updated with the record id and submitted parameters after the action succeeds.

Special Instructions

  • Send the bearer token on protected calls with Authorization: Bearer YOUR TOKEN.
  • Send parameters as POST body fields exactly as documented.
  • Send date/time values in UTC Y-m-d H:i:s format when a date or datetime field is used.

Required Parameters

NameTypeSampleExplanation
id
post
int500Mission id. Aliases: mission_id, data_id.

Optional Parameters

NameTypeSampleWhat it gives
priority
post
stringredPriority dropdown. Values: transparent (Default), yellow, red, green, blue. Aliases: appoinment_color1, color. Also works as filed=priority + saveoutput=red.
appoinment_color1
post
stringredDashboard form name for Priority. Same values as priority.
color
post
stringredDB column alias for Priority.
mission
post
stringCall customerUpdated title.
note
post
stringFollow upUpdated notes.
date_to_do
post
stringtomorrowUpdated due date.
project_id
post
int10Updated project id.
missions_steps_id
post
int5Updated step id.
filed
post
stringprioritySingle-field update name (dashboard style). Alias: field. Use with saveoutput.
saveoutput
post
stringredNew value when using filed. Alias: value.

Authentication

Send the bearer token returned by Login in the request header.

Authorization: Bearer YOUR TOKEN

Sample Request

{
    "url": "\/app\/Mission.Edit",
    "method": "POST",
    "headers": {
        "Authorization": "Bearer YOUR TOKEN"
    },
    "body": {
        "id": "500",
        "priority": "red"
    },
    "url_user": "https:\/\/{user}.bull36.com\/app\/Mission.Edit",
    "url_domain": "https:\/\/{domain}\/app\/Mission.Edit"
}

Endpoint

POST /app/Mission.Edit
POST https://{user}.bull36.com/app/Mission.Edit
POST https://{domain}/app/Mission.Edit

Sample Output

{
    "success": 1,
    "message": "Success",
    "type": "success",
    "mission_id": "500",
    "automation_event": "mission.updated",
    "socket_event": "mission.updated"
}

JavaScript Example

const token = 'YOUR TOKEN';
const body = new URLSearchParams({ id: '500', priority: 'red' });
const res = await fetch('/app/Mission.Edit', { method: 'POST', headers: { Authorization: 'Bearer ' + token }, body });
console.log(await res.json());

Error Example

{
    "success": 0,
    "message": "Failed",
    "type": "error"
}