Raise a job with no request behind it — a breakdown somebody is standing in front of. It opens,
curl --request POST \
--url https://app.assetinfinity.ai/api/rpc/create_work_order \
--header 'Content-Type: application/json' \
--data '
{
"p_title": "<string>",
"p_asset_category_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"p_asset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"p_assign_team_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"p_assign_vendor_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"p_assign_worker_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"p_cc_user_ids": [
"<string>"
],
"p_custom_fields": "<string>",
"p_department_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"p_description": "<string>",
"p_due_at": "<string>",
"p_estimated_duration_minutes": 123,
"p_location_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"p_open_now": true,
"p_planned_end_at": "<string>",
"p_planned_start_at": "<string>",
"p_priority_code": "<string>",
"p_reported_by_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"p_requires_permit": true,
"p_safety_instructions": "<string>",
"p_severity": "<string>",
"p_site_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"p_status_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"p_work_order_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"p_work_order_type_code": "<string>"
}
'import requests
url = "https://app.assetinfinity.ai/api/rpc/create_work_order"
payload = {
"p_title": "<string>",
"p_asset_category_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"p_asset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"p_assign_team_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"p_assign_vendor_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"p_assign_worker_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"p_cc_user_ids": ["<string>"],
"p_custom_fields": "<string>",
"p_department_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"p_description": "<string>",
"p_due_at": "<string>",
"p_estimated_duration_minutes": 123,
"p_location_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"p_open_now": True,
"p_planned_end_at": "<string>",
"p_planned_start_at": "<string>",
"p_priority_code": "<string>",
"p_reported_by_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"p_requires_permit": True,
"p_safety_instructions": "<string>",
"p_severity": "<string>",
"p_site_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"p_status_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"p_work_order_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"p_work_order_type_code": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
p_title: '<string>',
p_asset_category_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
p_asset_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
p_assign_team_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
p_assign_vendor_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
p_assign_worker_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
p_cc_user_ids: ['<string>'],
p_custom_fields: '<string>',
p_department_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
p_description: '<string>',
p_due_at: '<string>',
p_estimated_duration_minutes: 123,
p_location_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
p_open_now: true,
p_planned_end_at: '<string>',
p_planned_start_at: '<string>',
p_priority_code: '<string>',
p_reported_by_user_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
p_requires_permit: true,
p_safety_instructions: '<string>',
p_severity: '<string>',
p_site_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
p_status_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
p_work_order_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
p_work_order_type_code: '<string>'
})
};
fetch('https://app.assetinfinity.ai/api/rpc/create_work_order', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.assetinfinity.ai/api/rpc/create_work_order",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'p_title' => '<string>',
'p_asset_category_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'p_asset_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'p_assign_team_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'p_assign_vendor_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'p_assign_worker_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'p_cc_user_ids' => [
'<string>'
],
'p_custom_fields' => '<string>',
'p_department_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'p_description' => '<string>',
'p_due_at' => '<string>',
'p_estimated_duration_minutes' => 123,
'p_location_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'p_open_now' => true,
'p_planned_end_at' => '<string>',
'p_planned_start_at' => '<string>',
'p_priority_code' => '<string>',
'p_reported_by_user_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'p_requires_permit' => true,
'p_safety_instructions' => '<string>',
'p_severity' => '<string>',
'p_site_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'p_status_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'p_work_order_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'p_work_order_type_code' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.assetinfinity.ai/api/rpc/create_work_order"
payload := strings.NewReader("{\n \"p_title\": \"<string>\",\n \"p_asset_category_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_asset_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_assign_team_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_assign_vendor_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_assign_worker_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_cc_user_ids\": [\n \"<string>\"\n ],\n \"p_custom_fields\": \"<string>\",\n \"p_department_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_description\": \"<string>\",\n \"p_due_at\": \"<string>\",\n \"p_estimated_duration_minutes\": 123,\n \"p_location_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_open_now\": true,\n \"p_planned_end_at\": \"<string>\",\n \"p_planned_start_at\": \"<string>\",\n \"p_priority_code\": \"<string>\",\n \"p_reported_by_user_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_requires_permit\": true,\n \"p_safety_instructions\": \"<string>\",\n \"p_severity\": \"<string>\",\n \"p_site_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_status_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_work_order_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_work_order_type_code\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.assetinfinity.ai/api/rpc/create_work_order")
.header("Content-Type", "application/json")
.body("{\n \"p_title\": \"<string>\",\n \"p_asset_category_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_asset_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_assign_team_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_assign_vendor_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_assign_worker_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_cc_user_ids\": [\n \"<string>\"\n ],\n \"p_custom_fields\": \"<string>\",\n \"p_department_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_description\": \"<string>\",\n \"p_due_at\": \"<string>\",\n \"p_estimated_duration_minutes\": 123,\n \"p_location_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_open_now\": true,\n \"p_planned_end_at\": \"<string>\",\n \"p_planned_start_at\": \"<string>\",\n \"p_priority_code\": \"<string>\",\n \"p_reported_by_user_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_requires_permit\": true,\n \"p_safety_instructions\": \"<string>\",\n \"p_severity\": \"<string>\",\n \"p_site_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_status_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_work_order_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_work_order_type_code\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.assetinfinity.ai/api/rpc/create_work_order")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"p_title\": \"<string>\",\n \"p_asset_category_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_asset_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_assign_team_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_assign_vendor_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_assign_worker_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_cc_user_ids\": [\n \"<string>\"\n ],\n \"p_custom_fields\": \"<string>\",\n \"p_department_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_description\": \"<string>\",\n \"p_due_at\": \"<string>\",\n \"p_estimated_duration_minutes\": 123,\n \"p_location_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_open_now\": true,\n \"p_planned_end_at\": \"<string>\",\n \"p_planned_start_at\": \"<string>\",\n \"p_priority_code\": \"<string>\",\n \"p_reported_by_user_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_requires_permit\": true,\n \"p_safety_instructions\": \"<string>\",\n \"p_severity\": \"<string>\",\n \"p_site_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_status_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_work_order_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_work_order_type_code\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyWork lifecycle
Raise a job with no request behind it — a breakdown somebody is standing in front of. It opens,
as every work order does. On the offline allowlist, so a handset in a basement can raise one and the server applies it when the signal comes back.
It asks what the edit form asks: one list of questions, so nothing appears for the first time after the job exists — the eight columns and the tenant’s own fields both, the second answered through the same customFields a record edit takes. The status is the exception and is not an argument — a job opens where the state model starts records.
POST
/
rpc
/
create_work_order
Raise a job with no request behind it — a breakdown somebody is standing in front of. It opens,
curl --request POST \
--url https://app.assetinfinity.ai/api/rpc/create_work_order \
--header 'Content-Type: application/json' \
--data '
{
"p_title": "<string>",
"p_asset_category_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"p_asset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"p_assign_team_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"p_assign_vendor_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"p_assign_worker_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"p_cc_user_ids": [
"<string>"
],
"p_custom_fields": "<string>",
"p_department_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"p_description": "<string>",
"p_due_at": "<string>",
"p_estimated_duration_minutes": 123,
"p_location_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"p_open_now": true,
"p_planned_end_at": "<string>",
"p_planned_start_at": "<string>",
"p_priority_code": "<string>",
"p_reported_by_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"p_requires_permit": true,
"p_safety_instructions": "<string>",
"p_severity": "<string>",
"p_site_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"p_status_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"p_work_order_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"p_work_order_type_code": "<string>"
}
'import requests
url = "https://app.assetinfinity.ai/api/rpc/create_work_order"
payload = {
"p_title": "<string>",
"p_asset_category_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"p_asset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"p_assign_team_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"p_assign_vendor_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"p_assign_worker_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"p_cc_user_ids": ["<string>"],
"p_custom_fields": "<string>",
"p_department_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"p_description": "<string>",
"p_due_at": "<string>",
"p_estimated_duration_minutes": 123,
"p_location_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"p_open_now": True,
"p_planned_end_at": "<string>",
"p_planned_start_at": "<string>",
"p_priority_code": "<string>",
"p_reported_by_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"p_requires_permit": True,
"p_safety_instructions": "<string>",
"p_severity": "<string>",
"p_site_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"p_status_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"p_work_order_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"p_work_order_type_code": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
p_title: '<string>',
p_asset_category_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
p_asset_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
p_assign_team_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
p_assign_vendor_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
p_assign_worker_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
p_cc_user_ids: ['<string>'],
p_custom_fields: '<string>',
p_department_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
p_description: '<string>',
p_due_at: '<string>',
p_estimated_duration_minutes: 123,
p_location_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
p_open_now: true,
p_planned_end_at: '<string>',
p_planned_start_at: '<string>',
p_priority_code: '<string>',
p_reported_by_user_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
p_requires_permit: true,
p_safety_instructions: '<string>',
p_severity: '<string>',
p_site_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
p_status_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
p_work_order_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
p_work_order_type_code: '<string>'
})
};
fetch('https://app.assetinfinity.ai/api/rpc/create_work_order', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.assetinfinity.ai/api/rpc/create_work_order",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'p_title' => '<string>',
'p_asset_category_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'p_asset_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'p_assign_team_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'p_assign_vendor_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'p_assign_worker_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'p_cc_user_ids' => [
'<string>'
],
'p_custom_fields' => '<string>',
'p_department_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'p_description' => '<string>',
'p_due_at' => '<string>',
'p_estimated_duration_minutes' => 123,
'p_location_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'p_open_now' => true,
'p_planned_end_at' => '<string>',
'p_planned_start_at' => '<string>',
'p_priority_code' => '<string>',
'p_reported_by_user_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'p_requires_permit' => true,
'p_safety_instructions' => '<string>',
'p_severity' => '<string>',
'p_site_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'p_status_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'p_work_order_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'p_work_order_type_code' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.assetinfinity.ai/api/rpc/create_work_order"
payload := strings.NewReader("{\n \"p_title\": \"<string>\",\n \"p_asset_category_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_asset_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_assign_team_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_assign_vendor_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_assign_worker_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_cc_user_ids\": [\n \"<string>\"\n ],\n \"p_custom_fields\": \"<string>\",\n \"p_department_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_description\": \"<string>\",\n \"p_due_at\": \"<string>\",\n \"p_estimated_duration_minutes\": 123,\n \"p_location_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_open_now\": true,\n \"p_planned_end_at\": \"<string>\",\n \"p_planned_start_at\": \"<string>\",\n \"p_priority_code\": \"<string>\",\n \"p_reported_by_user_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_requires_permit\": true,\n \"p_safety_instructions\": \"<string>\",\n \"p_severity\": \"<string>\",\n \"p_site_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_status_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_work_order_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_work_order_type_code\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.assetinfinity.ai/api/rpc/create_work_order")
.header("Content-Type", "application/json")
.body("{\n \"p_title\": \"<string>\",\n \"p_asset_category_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_asset_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_assign_team_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_assign_vendor_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_assign_worker_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_cc_user_ids\": [\n \"<string>\"\n ],\n \"p_custom_fields\": \"<string>\",\n \"p_department_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_description\": \"<string>\",\n \"p_due_at\": \"<string>\",\n \"p_estimated_duration_minutes\": 123,\n \"p_location_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_open_now\": true,\n \"p_planned_end_at\": \"<string>\",\n \"p_planned_start_at\": \"<string>\",\n \"p_priority_code\": \"<string>\",\n \"p_reported_by_user_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_requires_permit\": true,\n \"p_safety_instructions\": \"<string>\",\n \"p_severity\": \"<string>\",\n \"p_site_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_status_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_work_order_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_work_order_type_code\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.assetinfinity.ai/api/rpc/create_work_order")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"p_title\": \"<string>\",\n \"p_asset_category_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_asset_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_assign_team_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_assign_vendor_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_assign_worker_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_cc_user_ids\": [\n \"<string>\"\n ],\n \"p_custom_fields\": \"<string>\",\n \"p_department_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_description\": \"<string>\",\n \"p_due_at\": \"<string>\",\n \"p_estimated_duration_minutes\": 123,\n \"p_location_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_open_now\": true,\n \"p_planned_end_at\": \"<string>\",\n \"p_planned_start_at\": \"<string>\",\n \"p_priority_code\": \"<string>\",\n \"p_reported_by_user_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_requires_permit\": true,\n \"p_safety_instructions\": \"<string>\",\n \"p_severity\": \"<string>\",\n \"p_site_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_status_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_work_order_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"p_work_order_type_code\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyHeaders
Preference
Available options:
params=single-object Body
application/jsonapplication/vnd.pgrst.object+jsonapplication/vnd.pgrst.object+json;nulls=strippedtext/csv
Raise a job with no request behind it — a breakdown somebody is standing in front of. It opens, as every work order does. On the offline allowlist, so a handset in a basement can raise one and the server applies it when the signal comes back.
It asks what the edit form asks: one list of questions, so nothing appears for the first time
after the job exists — the eight columns and the tenant's own fields both, the second answered
through the same customFields a record edit takes. The status is the exception and is not an
argument — a job opens where the state model starts records.
Response
200
OK
⌘I

