Batch

Batch create resources

Create multiple resources in a single request. The request body must be an array of items (max 50). Each item is validated independently. Returns 201 if all succeed, 207 if partially successful, 400 if all fail.

post/v1/{resource}/batch

Request

  • Base URL: https://api.frihet.io
  • URL: https://api.frihet.io/v1/{resource}/batch
  • Auth: API key in header X-API-Key

Path parameters

resource'invoices' | 'expenses' | 'clients' | 'vendors' | 'products' | 'quotes' required

Resource type to batch create

Request body

object[] required

Response

All items created successfully

Example response

{
  "summary": {
    "total": 10,
    "succeeded": 8,
    "failed": 2
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.