POST

Projects.Save

Dashboard-compatible save: creates a project when project_id is empty/0, otherwise updates. Same fields as Projects.Add / Projects.Update.

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 Projects record after validating permissions and input fields.

Push Service

No push is sent because this function only reads data or returns helper information.

Automation

No automation is run for this function.

Special Instructions

  • 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.
  • Prefer Projects.Add / Projects.Update for explicit SDK calls; use Projects.Save to mirror the dashboard form submit.

Required Parameters

NameTypeSampleExplanation
project_name
post
stringWebsite redesignProject name. Alias: name.

Optional Parameters

NameTypeSampleWhat it gives
project_id
post
int0Empty/0 = add. Non-zero = update. Aliases: id, data_id.
client_id
post
int12614595Customer id.
organizations_user
post
mixed[47]Team member ids.
credentials
post
stringCredentials.
note
post
stringNote.
private_project
post
int0Private flag.

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\/Projects.Save",
    "method": "POST",
    "headers": {
        "Authorization": "Bearer YOUR TOKEN"
    },
    "body": {
        "project_name": "Website redesign",
        "client_id": "12614595"
    },
    "url_user": "https:\/\/{user}.bull36.com\/app\/Projects.Save",
    "url_domain": "https:\/\/{domain}\/app\/Projects.Save"
}

Endpoint

POST /app/Projects.Save
POST https://{user}.bull36.com/app/Projects.Save
POST https://{domain}/app/Projects.Save

Sample Output

{
    "success": 1,
    "id": 900,
    "project_id": 900
}

JavaScript Example

const token = 'YOUR TOKEN';
const body = new URLSearchParams({ project_name: 'Website redesign', client_id: '12614595' });
const res = await fetch('/app/Projects.Save', { method: 'POST', headers: { Authorization: 'Bearer ' + token }, body });
console.log(await res.json());

Error Example

{
    "success": 0,
    "message": "Missing required parameter: project_name"
}