curl --request PUT \
--url https://app.aiinsurance.io/api/v1/external/companies/{companyId}/submissions/{submissionId} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"submissionName": "Acme Corp Renewal"
}
'import requests
url = "https://app.aiinsurance.io/api/v1/external/companies/{companyId}/submissions/{submissionId}"
payload = { "submissionName": "Acme Corp Renewal" }
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({submissionName: 'Acme Corp Renewal'})
};
fetch('https://app.aiinsurance.io/api/v1/external/companies/{companyId}/submissions/{submissionId}', 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.aiinsurance.io/api/v1/external/companies/{companyId}/submissions/{submissionId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'submissionName' => 'Acme Corp Renewal'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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.aiinsurance.io/api/v1/external/companies/{companyId}/submissions/{submissionId}"
payload := strings.NewReader("{\n \"submissionName\": \"Acme Corp Renewal\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "<api-key>")
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.put("https://app.aiinsurance.io/api/v1/external/companies/{companyId}/submissions/{submissionId}")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"submissionName\": \"Acme Corp Renewal\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.aiinsurance.io/api/v1/external/companies/{companyId}/submissions/{submissionId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"submissionName\": \"Acme Corp Renewal\"\n}"
response = http.request(request)
puts response.read_body{
"id": "550e8400-e29b-41d4-a716-446655440010",
"companyId": "550e8400-e29b-41d4-a716-446655440000",
"fieldModelV1Data": {
"submissionNumber": "SUB-2025-001",
"submissionName": "Acme Corp Renewal",
"submissionType": "newBusiness",
"submissionStatus": "quoteInProgress",
"submissionPrimaryInsured": "Acme Corp",
"submissionQuotes": [
"550e8400-e29b-41d4-a716-446655440001"
]
},
"createdAt": "2025-01-15T10:30:00.000Z",
"createdBy": "google-oauth2|123456789",
"updatedAt": "2025-01-20T14:00:00.000Z",
"updatedBy": null
}Update Submission
Updates a Field Model V1 submission. The request body is a flat JSON
object where keys are field referenceIds. Fields not included in the
request are preserved — this is a merge, not a full replacement.
Lifecycle fields (submissionStatus, submissionNumber,
submissionName, submissionPrimaryInsured, submissionBoundDate,
submissionQuotes) are system-managed and will be rejected with a
400 error if included in the request body.
Required permission: company.quote:update
Note: Uses
company.quote:updatebecausecompany.submission:updatedoes not exist yet.
curl --request PUT \
--url https://app.aiinsurance.io/api/v1/external/companies/{companyId}/submissions/{submissionId} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"submissionName": "Acme Corp Renewal"
}
'import requests
url = "https://app.aiinsurance.io/api/v1/external/companies/{companyId}/submissions/{submissionId}"
payload = { "submissionName": "Acme Corp Renewal" }
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({submissionName: 'Acme Corp Renewal'})
};
fetch('https://app.aiinsurance.io/api/v1/external/companies/{companyId}/submissions/{submissionId}', 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.aiinsurance.io/api/v1/external/companies/{companyId}/submissions/{submissionId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'submissionName' => 'Acme Corp Renewal'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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.aiinsurance.io/api/v1/external/companies/{companyId}/submissions/{submissionId}"
payload := strings.NewReader("{\n \"submissionName\": \"Acme Corp Renewal\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "<api-key>")
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.put("https://app.aiinsurance.io/api/v1/external/companies/{companyId}/submissions/{submissionId}")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"submissionName\": \"Acme Corp Renewal\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.aiinsurance.io/api/v1/external/companies/{companyId}/submissions/{submissionId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"submissionName\": \"Acme Corp Renewal\"\n}"
response = http.request(request)
puts response.read_body{
"id": "550e8400-e29b-41d4-a716-446655440010",
"companyId": "550e8400-e29b-41d4-a716-446655440000",
"fieldModelV1Data": {
"submissionNumber": "SUB-2025-001",
"submissionName": "Acme Corp Renewal",
"submissionType": "newBusiness",
"submissionStatus": "quoteInProgress",
"submissionPrimaryInsured": "Acme Corp",
"submissionQuotes": [
"550e8400-e29b-41d4-a716-446655440001"
]
},
"createdAt": "2025-01-15T10:30:00.000Z",
"createdBy": "google-oauth2|123456789",
"updatedAt": "2025-01-20T14:00:00.000Z",
"updatedBy": null
}Authorizations
Path Parameters
Body
Submission field data to update (keys are field referenceIds)
Response
Submission updated successfully
A Field Model V1 submission with custom field data.
Submission-level custom field data. Keys are field referenceIds
defined in the company's field configuration. Includes lifecycle
fields (submissionStatus, submissionType, submissionNumber,
submissionName, submissionPrimaryInsured, submissionBoundDate,
submissionQuotes) which are read-only and system-managed.
Was this page helpful?
