POST

Rooms.Add

Create a room/resource in The route mirrors the old app_resource_save whitelist, scopes the row to the active owner, runs rooms.created automation, and emits realtime rooms.created.

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

  • Creates a Rooms record or sends the requested data after validation.

Push Service

Pushes event rooms.created to users who should see this change.

Automation

Runs automation event rooms.created 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
name
post
stringRoom ARoom name. You may also use room_name when that field exists.

Optional Parameters

NameTypeSampleWhat it gives
room_name
post
stringRoom AAlternate room name field when used by the account.
description
post
stringMain meeting roomShort room description.
city
post
stringTel AvivRoom city.
area
post
stringCenterRoom area.
price
post
number150.00Room price when stored.
max_guest
post
int8Maximum guests/capacity when stored.
status
post
int1Sets active/inactive status when stored.

Authentication

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

Authorization: Bearer YOUR TOKEN

Sample Request

{
    "url": "\/app\/Rooms.Add",
    "method": "POST",
    "headers": {
        "Authorization": "Bearer YOUR TOKEN"
    },
    "body": {
        "name": "Room A",
        "city": "Tel Aviv"
    },
    "url_user": "https:\/\/{user}.bull36.com\/app\/Rooms.Add",
    "url_domain": "https:\/\/{domain}\/app\/Rooms.Add"
}

Endpoint

POST /app/Rooms.Add
POST https://{user}.bull36.com/app/Rooms.Add
POST https://{domain}/app/Rooms.Add

Sample Output

{
    "success": 1,
    "id": "3710",
    "message": "Record added successfully.",
    "automation_event": "rooms.created",
    "socket_event": "rooms.created"
}

JavaScript Example

const token = 'YOUR TOKEN';
const body = new URLSearchParams({});
// Fill body fields from the Sample Request JSON above.
const res = await fetch('/app/Rooms.Add', { method: 'POST', headers: { Authorization: 'Bearer ' + token }, body });
const data = await res.json();
console.log(data);

Error Example

{
    "success": 0,
    "message": "No supported fields were sent."
}