---
updatedAt: 2025-06-05T01:07:13.000Z
agentTools:
  projectIndex: https://api.portal.xpertdoc.com/llms.txt
---

# Update

## Definition

<https://portal.xpertdoc.com/odata4/v8/BatchGroups(:batchGroupId)>

# Parameters

**batchGroupId: String**

# Examples

```json JSON
{
	"@odata.context": "https://portal.xpertdoc.com/odata4/v6/$metadata#BatchGroups/$entity",
	"BatchGroupId": "00000000-0000-0000-0000-000000000000",
	"Name": "New Name",
	"Description": null,
	"EnableBatchArchiving": false,
	"BatchHistoryCount": 0,
	"BatchHistoryTimeInMillis": 0,
	"CreatedByUserProfileId": "00000000-0000-0000-0000-000000000000",
	"CreatedDate": "2016-01-01T00:00:00.0000000Z",
	"ModifiedByUserProfileId": "00000000-0000-0000-0000-000000000000",
	"ModifiedDate": "2016-01-01T00:00:00.0000000Z",
	"Timestamp": "AAAAAAAEqd4="
}
```
```csharp
var batchGroup = portalContext.BatchGroups.Where(b => b.BatchGroupId == Guid.Parse("00000000-0000-0000-0000-000000000000")).FirstOrDefault ();

batchGroup.Name = "New Name";
batchGroup.ValueToChange = value;
	
portalContext.UpdateObject(batchGroup);
portalContext.SaveChanges();
```

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "preview",
    "version": "5.0"
  },
  "servers": [
    {
      "url": "http://preview.portal.xpertdoc.com/odata4/v8"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "http",
        "scheme": "basic"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/BatchGroups(:batchGroupId)": {
      "patch": {
        "summary": "Update",
        "description": "",
        "operationId": "update-batchgroups",
        "parameters": [
          {
            "name": "batchGroupId",
            "in": "path",
            "description": "BatchGroup identifier",
            "schema": {
              "type": "string",
              "default": "00000000-0000-0000-0000-000000000000"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "BatchGroupId": {
                    "type": "string",
                    "default": "00000000-0000-0000-0000-000000000000"
                  },
                  "Name": {
                    "type": "string"
                  },
                  "Description": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false,
        "x-readme": {
          "code-samples": [
            {
              "language": "csharp",
              "code": "var url = \"http://pewview.portal.xpertdoc.com/odata4/v8/Batches(00000000-0000-0000-0000-000000000000)\";\t\n\t\nvar values = new Dictionary<string, string>\n{\t\t\n\t\t\t\t{ \"ValueToChange\", \"Value\"},  \n\t\t\t\t{ \"Name\", \"New Name\"}\t\n};\nvar value = await Update(url, values);"
            }
          ],
          "samples-languages": [
            "csharp"
          ]
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```