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.
- 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
| Name | Type | Sample | Explanation |
|---|---|---|---|
idpost | int | 500 | Mission id. Aliases: mission_id, data_id. |
Optional Parameters
| Name | Type | Sample | What it gives |
|---|---|---|---|
prioritypost | string | red | Priority dropdown. Values: transparent (Default), yellow, red, green, blue. Aliases: appoinment_color1, color. Also works as filed=priority + saveoutput=red. |
appoinment_color1post | string | red | Dashboard form name for Priority. Same values as priority. |
colorpost | string | red | DB column alias for Priority. |
missionpost | string | Call customer | Updated title. |
notepost | string | Follow up | Updated notes. |
date_to_dopost | string | tomorrow | Updated due date. |
project_idpost | int | 10 | Updated project id. |
missions_steps_idpost | int | 5 | Updated step id. |
filedpost | string | priority | Single-field update name (dashboard style). Alias: field. Use with saveoutput. |
saveoutputpost | string | red | New 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.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.UpdateSample 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"
}