PlatformIntegrations
API ReferenceCommon Structures

Batch Processing

Create or update resources in bulk using batch endpoints.

For high-volume integrations, Obligo exposes asynchronous batch endpoints to create or update many resources in a single submission.

Endpoint pattern

Batch operations follow a consistent path layout per resource:

OperationMethod and path
Batch createPOST /{resource}/batch/create
Batch updatePOST /{resource}/batch/update
Job statusGET /{resource}/batch/{id}

Replace {resource} with the resource path documented in the API Reference.

Batch endpoints exist for leases, renters, properties and users, and need Obligo-Version: 1.2.

Workflow

Batch requests return immediately with a job identifier. The server processes items in the background.

  1. Submit a batch create or update request body to the appropriate endpoint.
  2. Receive 201 Created with the job's id in the response.
  3. Poll GET /{resource}/batch/{id} until the job reaches a terminal state.

Request

Send 1 to 100 items in items. For a batch create, each item is { "payload": … }. For a batch update, each item is { "id": …, "payload": … }, where id is the resource to update.

curl -X POST https://api.sandbox.myobligo.com/leases/batch/create \
  -u "$CLIENT_ID:$CLIENT_SECRET" \
  -H "Obligo-Version: 1.2" \
  -H "Content-Type: application/json" \
  -d '{
    "items": [
      {
        "payload": {
          "propertyId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
          "unit": "4B",
          "rent": 250000,
          "startsAt": "2026-05-01",
          "endsAt": "2027-04-30",
          "household": [
            {
              "renterId": "550e8400-e29b-41d4-a716-446655440000",
              "role": "LeaseHolder",
              "primary": true
            }
          ]
        }
      }
    ]
  }'

If any item fails validation, the whole request returns 400 and no job starts.

Response

The request returns 201 Created with the job's id.

{
  "id": "8d3c5c2e-1f4a-4b2c-9e7d-6a5b4c3d2e1f"
}

Job status

Poll the job endpoint to track progress.

curl https://api.sandbox.myobligo.com/leases/batch/8d3c5c2e-1f4a-4b2c-9e7d-6a5b4c3d2e1f \
  -u "$CLIENT_ID:$CLIENT_SECRET" \
  -H "Obligo-Version: 1.2"

The job is { id, status, items }. Each item is { id, status, error, result }, where error is an error code or null, and result is always null. The job has no aggregate counts.

The job's status is Queued, InProgress, Completed or Error. The terminal states are Completed and Error.

A Completed job can still contain failed items, so check each item's status. Jobs are kept for 24 hours.

Consult the API Reference for the resource you are batching.

Note: Processing is asynchronous. Do not assume child resources exist until the job completes successfully.

Summary

AspectDetail
SubmissionPOST /{resource}/batch/create or batch/update.
ProcessingAsynchronous — returns the job's id immediately.
TrackingPoll GET /{resource}/batch/{id}.
Terminal statesCompleted, Error.