POST api/BulkLocationHierarchy
Request Information
URI Parameters
None.
Body Parameters
BulkLocationHierarchyModelName | Description | Type | Additional information |
---|---|---|---|
LocationHierarchiesToUpdate | Collection of LocationHierarchy |
None. |
|
LocationNodesToCreate | Collection of LocationNodeCreateUpdateModel |
None. |
|
LocationNodesToUpdate | Collection of LocationNodeCreateUpdateModel |
None. |
Request Formats
application/json, text/json
Sample:
{ "LocationHierarchiesToUpdate": [ { "Name": "sample string 1", "BaseId": 2, "ParentId": 3, "Order": 4, "AccountId": 5, "GlobalLocationHierarchyId": 6, "Id": 7, "Status": "sample string 8", "CreatedBy": "sample string 9", "CreateTimestamp": "2024-11-21T08:44:11.0227196+00:00", "ModifiedBy": "sample string 11", "ModifiedTimestamp": "2024-11-21T08:44:11.0227196+00:00", "DataStateFlag": "sample string 12" }, { "Name": "sample string 1", "BaseId": 2, "ParentId": 3, "Order": 4, "AccountId": 5, "GlobalLocationHierarchyId": 6, "Id": 7, "Status": "sample string 8", "CreatedBy": "sample string 9", "CreateTimestamp": "2024-11-21T08:44:11.0227196+00:00", "ModifiedBy": "sample string 11", "ModifiedTimestamp": "2024-11-21T08:44:11.0227196+00:00", "DataStateFlag": "sample string 12" } ], "LocationNodesToCreate": [ { "LocationTypes": [ 1, 2 ], "departments": [ 1, 2 ], "AccountId": 1, "BaseId": 2, "ParentId": 3, "HierarchyId": 4, "Name": "sample string 5", "Latitude": 6.1, "Longitude": 7.1, "Order": 8, "Tags": "sample string 9", "Id": 10, "Status": "sample string 11", "CreatedBy": "sample string 12", "CreateTimestamp": "2024-11-21T08:44:11.0227196+00:00", "ModifiedBy": "sample string 14", "ModifiedTimestamp": "2024-11-21T08:44:11.0227196+00:00", "DataStateFlag": "sample string 15" }, { "LocationTypes": [ 1, 2 ], "departments": [ 1, 2 ], "AccountId": 1, "BaseId": 2, "ParentId": 3, "HierarchyId": 4, "Name": "sample string 5", "Latitude": 6.1, "Longitude": 7.1, "Order": 8, "Tags": "sample string 9", "Id": 10, "Status": "sample string 11", "CreatedBy": "sample string 12", "CreateTimestamp": "2024-11-21T08:44:11.0227196+00:00", "ModifiedBy": "sample string 14", "ModifiedTimestamp": "2024-11-21T08:44:11.0227196+00:00", "DataStateFlag": "sample string 15" } ], "LocationNodesToUpdate": [ { "LocationTypes": [ 1, 2 ], "departments": [ 1, 2 ], "AccountId": 1, "BaseId": 2, "ParentId": 3, "HierarchyId": 4, "Name": "sample string 5", "Latitude": 6.1, "Longitude": 7.1, "Order": 8, "Tags": "sample string 9", "Id": 10, "Status": "sample string 11", "CreatedBy": "sample string 12", "CreateTimestamp": "2024-11-21T08:44:11.0227196+00:00", "ModifiedBy": "sample string 14", "ModifiedTimestamp": "2024-11-21T08:44:11.0227196+00:00", "DataStateFlag": "sample string 15" }, { "LocationTypes": [ 1, 2 ], "departments": [ 1, 2 ], "AccountId": 1, "BaseId": 2, "ParentId": 3, "HierarchyId": 4, "Name": "sample string 5", "Latitude": 6.1, "Longitude": 7.1, "Order": 8, "Tags": "sample string 9", "Id": 10, "Status": "sample string 11", "CreatedBy": "sample string 12", "CreateTimestamp": "2024-11-21T08:44:11.0227196+00:00", "ModifiedBy": "sample string 14", "ModifiedTimestamp": "2024-11-21T08:44:11.0227196+00:00", "DataStateFlag": "sample string 15" } ] }
application/xml, text/xml
Sample:
<BulkLocationHierarchyModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Walsh.Service.Models"> <LocationHierarchiesToUpdate xmlns:d2p1="http://schemas.datacontract.org/2004/07/Walsh.Model.Models.LocationHirearchy"> <d2p1:LocationHierarchy> <CreateTimestamp xmlns:d4p1="http://schemas.datacontract.org/2004/07/System" xmlns="http://schemas.datacontract.org/2004/07/Walsh.Model.Models.BaseEntities"> <d4p1:DateTime>2024-11-21T08:44:11.0227196Z</d4p1:DateTime> <d4p1:OffsetMinutes>0</d4p1:OffsetMinutes> </CreateTimestamp> <CreatedBy xmlns="http://schemas.datacontract.org/2004/07/Walsh.Model.Models.BaseEntities">sample string 9</CreatedBy> <DataStateFlag xmlns="http://schemas.datacontract.org/2004/07/Walsh.Model.Models.BaseEntities">sample string 12</DataStateFlag> <Id xmlns="http://schemas.datacontract.org/2004/07/Walsh.Model.Models.BaseEntities">7</Id> <ModifiedBy xmlns="http://schemas.datacontract.org/2004/07/Walsh.Model.Models.BaseEntities">sample string 11</ModifiedBy> <ModifiedTimestamp xmlns:d4p1="http://schemas.datacontract.org/2004/07/System" xmlns="http://schemas.datacontract.org/2004/07/Walsh.Model.Models.BaseEntities"> <d4p1:DateTime>2024-11-21T08:44:11.0227196Z</d4p1:DateTime> <d4p1:OffsetMinutes>0</d4p1:OffsetMinutes> </ModifiedTimestamp> <Status xmlns="http://schemas.datacontract.org/2004/07/Walsh.Model.Models.BaseEntities">sample string 8</Status> <d2p1:AccountId>5</d2p1:AccountId> <d2p1:BaseId>2</d2p1:BaseId> <d2p1:GlobalLocationHierarchyId>6</d2p1:GlobalLocationHierarchyId> <d2p1:Name>sample string 1</d2p1:Name> <d2p1:Order>4</d2p1:Order> <d2p1:ParentId>3</d2p1:ParentId> </d2p1:LocationHierarchy> <d2p1:LocationHierarchy> <CreateTimestamp xmlns:d4p1="http://schemas.datacontract.org/2004/07/System" xmlns="http://schemas.datacontract.org/2004/07/Walsh.Model.Models.BaseEntities"> <d4p1:DateTime>2024-11-21T08:44:11.0227196Z</d4p1:DateTime> <d4p1:OffsetMinutes>0</d4p1:OffsetMinutes> </CreateTimestamp> <CreatedBy xmlns="http://schemas.datacontract.org/2004/07/Walsh.Model.Models.BaseEntities">sample string 9</CreatedBy> <DataStateFlag xmlns="http://schemas.datacontract.org/2004/07/Walsh.Model.Models.BaseEntities">sample string 12</DataStateFlag> <Id xmlns="http://schemas.datacontract.org/2004/07/Walsh.Model.Models.BaseEntities">7</Id> <ModifiedBy xmlns="http://schemas.datacontract.org/2004/07/Walsh.Model.Models.BaseEntities">sample string 11</ModifiedBy> <ModifiedTimestamp xmlns:d4p1="http://schemas.datacontract.org/2004/07/System" xmlns="http://schemas.datacontract.org/2004/07/Walsh.Model.Models.BaseEntities"> <d4p1:DateTime>2024-11-21T08:44:11.0227196Z</d4p1:DateTime> <d4p1:OffsetMinutes>0</d4p1:OffsetMinutes> </ModifiedTimestamp> <Status xmlns="http://schemas.datacontract.org/2004/07/Walsh.Model.Models.BaseEntities">sample string 8</Status> <d2p1:AccountId>5</d2p1:AccountId> <d2p1:BaseId>2</d2p1:BaseId> <d2p1:GlobalLocationHierarchyId>6</d2p1:GlobalLocationHierarchyId> <d2p1:Name>sample string 1</d2p1:Name> <d2p1:Order>4</d2p1:Order> <d2p1:ParentId>3</d2p1:ParentId> </d2p1:LocationHierarchy> </LocationHierarchiesToUpdate> <LocationNodesToCreate xmlns:d2p1="http://schemas.datacontract.org/2004/07/Walsh.Service.Models.LocationStructure"> <d2p1:LocationNodeCreateUpdateModel> <CreateTimestamp xmlns:d4p1="http://schemas.datacontract.org/2004/07/System"> <d4p1:DateTime>2024-11-21T08:44:11.0227196Z</d4p1:DateTime> <d4p1:OffsetMinutes>0</d4p1:OffsetMinutes> </CreateTimestamp> <CreatedBy>sample string 12</CreatedBy> <DataStateFlag>sample string 15</DataStateFlag> <Id>10</Id> <ModifiedBy>sample string 14</ModifiedBy> <ModifiedTimestamp xmlns:d4p1="http://schemas.datacontract.org/2004/07/System"> <d4p1:DateTime>2024-11-21T08:44:11.0227196Z</d4p1:DateTime> <d4p1:OffsetMinutes>0</d4p1:OffsetMinutes> </ModifiedTimestamp> <Status>sample string 11</Status> <d2p1:AccountId>1</d2p1:AccountId> <d2p1:BaseId>2</d2p1:BaseId> <d2p1:HierarchyId>4</d2p1:HierarchyId> <d2p1:Latitude>6.1</d2p1:Latitude> <d2p1:LocationTypes xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:int>1</d4p1:int> <d4p1:int>2</d4p1:int> </d2p1:LocationTypes> <d2p1:Longitude>7.1</d2p1:Longitude> <d2p1:Name>sample string 5</d2p1:Name> <d2p1:Order>8</d2p1:Order> <d2p1:ParentId>3</d2p1:ParentId> <d2p1:Tags>sample string 9</d2p1:Tags> <d2p1:departments xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:int>1</d4p1:int> <d4p1:int>2</d4p1:int> </d2p1:departments> </d2p1:LocationNodeCreateUpdateModel> <d2p1:LocationNodeCreateUpdateModel> <CreateTimestamp xmlns:d4p1="http://schemas.datacontract.org/2004/07/System"> <d4p1:DateTime>2024-11-21T08:44:11.0227196Z</d4p1:DateTime> <d4p1:OffsetMinutes>0</d4p1:OffsetMinutes> </CreateTimestamp> <CreatedBy>sample string 12</CreatedBy> <DataStateFlag>sample string 15</DataStateFlag> <Id>10</Id> <ModifiedBy>sample string 14</ModifiedBy> <ModifiedTimestamp xmlns:d4p1="http://schemas.datacontract.org/2004/07/System"> <d4p1:DateTime>2024-11-21T08:44:11.0227196Z</d4p1:DateTime> <d4p1:OffsetMinutes>0</d4p1:OffsetMinutes> </ModifiedTimestamp> <Status>sample string 11</Status> <d2p1:AccountId>1</d2p1:AccountId> <d2p1:BaseId>2</d2p1:BaseId> <d2p1:HierarchyId>4</d2p1:HierarchyId> <d2p1:Latitude>6.1</d2p1:Latitude> <d2p1:LocationTypes xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:int>1</d4p1:int> <d4p1:int>2</d4p1:int> </d2p1:LocationTypes> <d2p1:Longitude>7.1</d2p1:Longitude> <d2p1:Name>sample string 5</d2p1:Name> <d2p1:Order>8</d2p1:Order> <d2p1:ParentId>3</d2p1:ParentId> <d2p1:Tags>sample string 9</d2p1:Tags> <d2p1:departments xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:int>1</d4p1:int> <d4p1:int>2</d4p1:int> </d2p1:departments> </d2p1:LocationNodeCreateUpdateModel> </LocationNodesToCreate> <LocationNodesToUpdate xmlns:d2p1="http://schemas.datacontract.org/2004/07/Walsh.Service.Models.LocationStructure"> <d2p1:LocationNodeCreateUpdateModel> <CreateTimestamp xmlns:d4p1="http://schemas.datacontract.org/2004/07/System"> <d4p1:DateTime>2024-11-21T08:44:11.0227196Z</d4p1:DateTime> <d4p1:OffsetMinutes>0</d4p1:OffsetMinutes> </CreateTimestamp> <CreatedBy>sample string 12</CreatedBy> <DataStateFlag>sample string 15</DataStateFlag> <Id>10</Id> <ModifiedBy>sample string 14</ModifiedBy> <ModifiedTimestamp xmlns:d4p1="http://schemas.datacontract.org/2004/07/System"> <d4p1:DateTime>2024-11-21T08:44:11.0227196Z</d4p1:DateTime> <d4p1:OffsetMinutes>0</d4p1:OffsetMinutes> </ModifiedTimestamp> <Status>sample string 11</Status> <d2p1:AccountId>1</d2p1:AccountId> <d2p1:BaseId>2</d2p1:BaseId> <d2p1:HierarchyId>4</d2p1:HierarchyId> <d2p1:Latitude>6.1</d2p1:Latitude> <d2p1:LocationTypes xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:int>1</d4p1:int> <d4p1:int>2</d4p1:int> </d2p1:LocationTypes> <d2p1:Longitude>7.1</d2p1:Longitude> <d2p1:Name>sample string 5</d2p1:Name> <d2p1:Order>8</d2p1:Order> <d2p1:ParentId>3</d2p1:ParentId> <d2p1:Tags>sample string 9</d2p1:Tags> <d2p1:departments xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:int>1</d4p1:int> <d4p1:int>2</d4p1:int> </d2p1:departments> </d2p1:LocationNodeCreateUpdateModel> <d2p1:LocationNodeCreateUpdateModel> <CreateTimestamp xmlns:d4p1="http://schemas.datacontract.org/2004/07/System"> <d4p1:DateTime>2024-11-21T08:44:11.0227196Z</d4p1:DateTime> <d4p1:OffsetMinutes>0</d4p1:OffsetMinutes> </CreateTimestamp> <CreatedBy>sample string 12</CreatedBy> <DataStateFlag>sample string 15</DataStateFlag> <Id>10</Id> <ModifiedBy>sample string 14</ModifiedBy> <ModifiedTimestamp xmlns:d4p1="http://schemas.datacontract.org/2004/07/System"> <d4p1:DateTime>2024-11-21T08:44:11.0227196Z</d4p1:DateTime> <d4p1:OffsetMinutes>0</d4p1:OffsetMinutes> </ModifiedTimestamp> <Status>sample string 11</Status> <d2p1:AccountId>1</d2p1:AccountId> <d2p1:BaseId>2</d2p1:BaseId> <d2p1:HierarchyId>4</d2p1:HierarchyId> <d2p1:Latitude>6.1</d2p1:Latitude> <d2p1:LocationTypes xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:int>1</d4p1:int> <d4p1:int>2</d4p1:int> </d2p1:LocationTypes> <d2p1:Longitude>7.1</d2p1:Longitude> <d2p1:Name>sample string 5</d2p1:Name> <d2p1:Order>8</d2p1:Order> <d2p1:ParentId>3</d2p1:ParentId> <d2p1:Tags>sample string 9</d2p1:Tags> <d2p1:departments xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:int>1</d4p1:int> <d4p1:int>2</d4p1:int> </d2p1:departments> </d2p1:LocationNodeCreateUpdateModel> </LocationNodesToUpdate> </BulkLocationHierarchyModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Collection of LocationNewNodesModelName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
BaseId | integer |
None. |
|
Order | integer |
None. |
Response Formats
application/json, text/json
Sample:
[ { "Id": 1, "BaseId": 2, "Order": 3 }, { "Id": 1, "BaseId": 2, "Order": 3 } ]
application/xml, text/xml
Sample:
<ArrayOfLocationNewNodesModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Walsh.Service.Models.LocationStructure"> <LocationNewNodesModel> <BaseId>2</BaseId> <Id>1</Id> <Order>3</Order> </LocationNewNodesModel> <LocationNewNodesModel> <BaseId>2</BaseId> <Id>1</Id> <Order>3</Order> </LocationNewNodesModel> </ArrayOfLocationNewNodesModel>