# Batch Create Accounts

> Solarium docs, Batch Operations. All requests are `POST https://api.trysolarium.com/graphql/` with `Authorization: Bearer <api key>` and a JSON body `{"query": ..., "variables": ...}`. Every query and mutation takes an `organizationId` (find it with `myOrganizations`). Index of all pages: https://trysolarium.com/llms.txt

Create up to 500 accounts in a single call.

### Arguments

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `organizationId` | `UUID!` | Yes | Organization ID |
| `items` | `[AccountInput!]!` | Yes | Array of accounts. Each: name (String!), accountType (String!), classification (String!), subType (String), parentId (UUID) |

### Request

```graphql
mutation {
  batchCreateAccounts(
    organizationId: "a1b2c3d4-..."
    items: [
      { name: "Office Supplies", accountType: "expense", classification: "expense" },
      { name: "Travel", accountType: "expense", classification: "expense" },
      { name: "Software", accountType: "expense", classification: "expense" }
    ]
  ) {
    created
    errors { index error }
  }
}
```

### Response

```json
{
  "data": {
    "batchCreateAccounts": {
      "created": 3,
      "errors": []
    }
  }
}
```
