> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stateset.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Batch update custom fields on NetSuite orders

> Batch custom-field update result

### Path parameters

<ParamField path="tenant_id" type="string" required>
  Tenant identifier
</ParamField>

### Request body

`object`

<ParamField body="orderIds" type="string[]" required>
  List of NetSuite order IDs to update
</ParamField>

<ParamField body="fieldName" type="string" required>
  Custom field internal ID or script ID
</ParamField>

<ParamField body="fieldValue" type="object" required>
  Value to set
</ParamField>

### Response

`object`

<ResponseField name="body" type="object" required>
  Response body
</ResponseField>

### Status codes

| Code  | Meaning                             |
| ----- | ----------------------------------- |
| `200` | Batch custom-field update result    |
| `401` | Unauthorized                        |
| `422` | Validation error                    |
| `424` | NetSuite integration not configured |

<RequestExample>
  ```bash cURL theme={null}
  curl --request POST \
    --url 'https://api.sync.stateset.com/v1/tenants/{tenant_id}/netsuite/custom-fields/batch' \
    --header 'x-stateset-api-key: YOUR_API_KEY' \
    --header 'Content-Type: application/json' \
    --data '{
    "orderIds": [
      "string"
    ],
    "fieldName": "string",
    "fieldValue": {}
  }'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "body": {}
  }
  ```
</ResponseExample>
