POST

Mission.Update

Update a mission (same as dashboard edit). Send mission id plus fields to change. Priority is the Create Mission Priority dropdown (stored as color). Alias: Mission.Edit. Runs mission.updated automation and realtime mission.updated.

Permissions

  • User must be logged in with a valid bearer token.
  • The user must be from the same company domain as the request Host (call the API on that account subdomain or allowed custom domain). A token from another company returns success=0, error user_not_in_company.
  • 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.
  • On a company subdomain (e.g. https://{user_domain}.bull36.com) the user must match that Host — Login and protected APIs reject another company with success=0, error user_not_in_company. On a main brand host (bull36.com, biz1.co.il, mastrocrm.com, …) the company domain gate is skipped.
  • 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. The user must be from the same company domain as this Host — a token from another company is rejected (user_not_in_company).

Authorization: Bearer YOUR TOKEN

Sample Request

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

Endpoint

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

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.Update', { method: 'POST', headers: { Authorization: 'Bearer ' + token }, body });
console.log(await res.json());

Error Example

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