Skip to content

Corrigo: Update several entities, of any type

Corrigo batch.update: arguments, response, policy and SDK examples.

← Batch operations · Get started

Operation corrigo.batch_update

Provider route: POST /v1/batch/Update. Alter supplies the connection’s credentials and routing.

Install @alter-ai/sdk @alter-ai/corrigo with npm, or alter-sdk-corrigo with pip. Supply your connected customer’s grant ID and the arguments described below.

import { App } from "@alter-ai/sdk";
import { CorrigoIntegration } from "@alter-ai/corrigo";
async function execute(input: Parameters<CorrigoIntegration["batch"]["update"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new CorrigoIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.batch.update(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_corrigo import CorrigoIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = CorrigoIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.batch.update(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
bodyarrayRequired within parent
body[]ModelEach itemExpand Create several entities, of any type — request body — body item

Referenced models: Create several entities, of any type — request body — body item

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$JSONRoot
Create several entities, of any type — request body — body item
FieldTypePresenceDescription and constraints
$objectRoot
requestIdJSONOptional
requestId (anyOf 1)stringAlternative
requestId (anyOf 2)nullAlternative
entityJSONOptional
entity (anyOf 1)objectAlternativeAdditional keys: see wildcard field
entity (anyOf 1).*JSONAdditional keys
entity (anyOf 2)nullAlternative
propertiesJSONOptional
properties (anyOf 1)arrayAlternative
properties (anyOf 1)[]stringEach item
properties (anyOf 2)nullAlternative
entityTypeModelOptionalExpand Retrieve several entities — request body — body item entity Type

Referenced models: Retrieve several entities — request body — body item entity Type

Retrieve several entities — request body — body item entity Type
FieldTypePresenceDescription and constraints
$stringRootOne of: TaxCode, InvoiceDictionaryItem, BillingAccount, WorkOrder, Location, Address, Customer, Invoice, InvoiceLine, CorporateEntity, GLAccount, Payment, PaymentItem, Employee, WorkZone, Space, Task, Disposition, WoItem, CustomFieldDescriptor, CustomField, Organization, Contact, TimePeriod, Specialty, WorkOrderType, CustomerNoteType, RepairCode, AttributeDescriptor, WoActionReasonLookup, WoPriority, WoLastAction, WoNote, Actor, ContactAddress, Address2, ContactInfo, CustomField2, Note, WorkOrderCost, WoAssignment, WoOnSite, WoActionLog, WoVerification, WoActionLogProp, FinancialItem, WoQuote, WoEquipment, Blob, DocumentType, Document, Product, LaborCode, WpTree, WoEstimate, ToDoItem, LinkCustomerAndGroup, LinkContactAndGroup, AssetInfo, PmSchedule, PmItem, Contract, TaxRegion, TaxRegionItem, PriceList, PriceListItem, ChargeCodeLookup, CustomFieldOption, Model, LinkUserAndSpecialty, LinkUserAndCustomerGroup, LinkUserAndWorkZone, LinkUserAndPortfolio, LinkUserAndTeam, UserPayRate, UserCertification, LinkUserAndStockLocation, LinkProviderPriceList, LinkProviderAndService, Role, AlertScope, AlertSubscription, AssetTree, AttributeOption, Team, LinkTeamAndWorkZone, LinkPortfolioAndWorkZone, BusinessHours, Holiday, SpecDispatchRule, EscalationRule, OnCallRule, Responsibility, Warranty, AssetAttribute, SpecialtyMoneyValues, ContactMoneyValues, TaskMoneyValues, UserPayRateMoneyValues, RoleMoneyValues, Portfolio, AssetTemplate, AssetSystem, ProductCategory, LinkProductAndSupplier, ProductMoneyValues, ApInvoiceStatus, TimeCardWeek, TimeCard, TimeCardItem, ProviderCoi, ResponsibilityType, ToDoType, ApprovalTemplateStep, ApprovalTemplate, ProcedureTemplateStep, ProcedureFlagReason, ProcedureTemplate, WoProcedureStep, WoProcedure, StockLocation, ReplenishmentOrder, ReplenishmentOrderItem, ApprovalScope, CustomFieldAutocompleteOption, TimeOff, SlaValuesOverride, Turn, LinkModelAndAttribute, BillToOption, PrintoutTemplate, InvoiceLog, QuoteOrEstimateItem, MaterialTransaction, MaterialTransactionItem, StockLocationInventoryDetails, InternalCostStatus, WoFlag, ProcedureCategory, LinkProcedureCategoryAndTemplate, LinkProductAndQtyAttribute, RequiredDocCategory, WorkTemplate, Proposal, WorkOrderCostCategory, WoSchedule, RcsCircuit, RcsAction, RcsCylinder, LinkCommunityAndRcsCylinder, LinkEmployeeAndRcsCylinder, RcsLeakRateLog, RcsCircuitMonitorMapping, BlackoutDay, ShiftHours, WoVisit, WoVisitCfg, WoVisitSvc, LirOutstandingInvoiceWorkOrder
Format: int32

SDK function policy ID: corrigo.batch_update. Catalog operation: batch.update. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.

Refused by default. This operation leaves the caller holding a credential (Refused by default: the entity it names can be an Employee, so it can set Password, a login password the caller would then know. An admin allows it with a credential_minting rule, outright or behind approval.), so Alter refuses it on every connection with credential_minting_refused unless an organization admin allows it: a credential_minting rule naming provider corrigo and operation corrigo.batch_update (or batch.update). See Allow an operation that hands over a credential.

Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.