POST api/branch/saveBranch
Request Information
URI Parameters
None.
Body Parameters
BranchName | Description | Type | Additional information |
---|---|---|---|
BranchID | integer |
None. |
|
BranchName | string |
None. |
|
Description | string |
None. |
|
Address | string |
None. |
|
PhoneNumber | string |
None. |
|
string |
None. |
||
MapURL | string |
None. |
|
ImageURL | string |
None. |
|
ImageDescription | string |
None. |
|
CreatedOn | date |
None. |
|
CreatedBy | integer |
None. |
|
ModifiedOn | date |
None. |
|
ModifiedBy | integer |
None. |
|
IsDeleted | boolean |
None. |
|
CompanyID | integer |
None. |
|
FacebookURL | string |
None. |
|
InstagramURL | string |
None. |
|
TwitterURL | string |
None. |
|
LinkedInURL | string |
None. |
|
CompanyName | string |
None. |
|
branchImages | Collection of BranchImage |
None. |
|
BranchDescriptions | Collection of BranchDescription |
None. |
Request Formats
application/json, text/json
Sample:
{ "BranchID": 1, "BranchName": "sample string 1", "Description": "sample string 2", "Address": "sample string 3", "PhoneNumber": "sample string 4", "Email": "sample string 5", "MapURL": "sample string 6", "ImageURL": "sample string 7", "ImageDescription": "sample string 8", "CreatedOn": "2024-10-04T21:59:06.26987+03:00", "CreatedBy": 1, "ModifiedOn": "2024-10-04T21:59:06.26987+03:00", "ModifiedBy": 1, "IsDeleted": true, "CompanyID": 1, "FacebookURL": "sample string 9", "InstagramURL": "sample string 10", "TwitterURL": "sample string 11", "LinkedInURL": "sample string 12", "CompanyName": "sample string 13", "branchImages": [ { "BranchImageID": 1, "BranchID": 1, "ImageURL": "sample string 1", "ImageDescription": "sample string 2", "CreatedOn": "2024-10-04T21:59:06.26987+03:00", "CreatedBy": 1, "ModifiedOn": "2024-10-04T21:59:06.26987+03:00", "ModifiedBy": 1, "IsDeleted": true, "IsNewInsert": true, "OriginalName": "sample string 3", "IsSelected": true, "IsHeadOffice": true, "Description": "sample string 4", "BranchDescriptionID": 1 }, { "BranchImageID": 1, "BranchID": 1, "ImageURL": "sample string 1", "ImageDescription": "sample string 2", "CreatedOn": "2024-10-04T21:59:06.26987+03:00", "CreatedBy": 1, "ModifiedOn": "2024-10-04T21:59:06.26987+03:00", "ModifiedBy": 1, "IsDeleted": true, "IsNewInsert": true, "OriginalName": "sample string 3", "IsSelected": true, "IsHeadOffice": true, "Description": "sample string 4", "BranchDescriptionID": 1 } ], "BranchDescriptions": [ { "BranchDescriptionID": 1, "BranchID": 1, "Description": "sample string 1", "IsDeleted": true, "CreatedBy": 1, "CreatedOn": "2024-10-04T21:59:06.26987+03:00", "ModifiedBy": 1, "ModifiedOn": "2024-10-04T21:59:06.26987+03:00", "branchImages": [ { "BranchImageID": 1, "BranchID": 1, "ImageURL": "sample string 1", "ImageDescription": "sample string 2", "CreatedOn": "2024-10-04T21:59:06.26987+03:00", "CreatedBy": 1, "ModifiedOn": "2024-10-04T21:59:06.26987+03:00", "ModifiedBy": 1, "IsDeleted": true, "IsNewInsert": true, "OriginalName": "sample string 3", "IsSelected": true, "IsHeadOffice": true, "Description": "sample string 4", "BranchDescriptionID": 1 }, { "BranchImageID": 1, "BranchID": 1, "ImageURL": "sample string 1", "ImageDescription": "sample string 2", "CreatedOn": "2024-10-04T21:59:06.26987+03:00", "CreatedBy": 1, "ModifiedOn": "2024-10-04T21:59:06.26987+03:00", "ModifiedBy": 1, "IsDeleted": true, "IsNewInsert": true, "OriginalName": "sample string 3", "IsSelected": true, "IsHeadOffice": true, "Description": "sample string 4", "BranchDescriptionID": 1 } ] }, { "BranchDescriptionID": 1, "BranchID": 1, "Description": "sample string 1", "IsDeleted": true, "CreatedBy": 1, "CreatedOn": "2024-10-04T21:59:06.26987+03:00", "ModifiedBy": 1, "ModifiedOn": "2024-10-04T21:59:06.26987+03:00", "branchImages": [ { "BranchImageID": 1, "BranchID": 1, "ImageURL": "sample string 1", "ImageDescription": "sample string 2", "CreatedOn": "2024-10-04T21:59:06.26987+03:00", "CreatedBy": 1, "ModifiedOn": "2024-10-04T21:59:06.26987+03:00", "ModifiedBy": 1, "IsDeleted": true, "IsNewInsert": true, "OriginalName": "sample string 3", "IsSelected": true, "IsHeadOffice": true, "Description": "sample string 4", "BranchDescriptionID": 1 }, { "BranchImageID": 1, "BranchID": 1, "ImageURL": "sample string 1", "ImageDescription": "sample string 2", "CreatedOn": "2024-10-04T21:59:06.26987+03:00", "CreatedBy": 1, "ModifiedOn": "2024-10-04T21:59:06.26987+03:00", "ModifiedBy": 1, "IsDeleted": true, "IsNewInsert": true, "OriginalName": "sample string 3", "IsSelected": true, "IsHeadOffice": true, "Description": "sample string 4", "BranchDescriptionID": 1 } ] } ] }
application/xml, text/xml
Sample:
<Branch xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MODEL.Models"> <Address>sample string 3</Address> <BranchDescriptions> <BranchDescription> <BranchDescriptionID>1</BranchDescriptionID> <BranchID>1</BranchID> <CreatedBy>1</CreatedBy> <CreatedOn>2024-10-04T21:59:06.26987+03:00</CreatedOn> <Description>sample string 1</Description> <IsDeleted>true</IsDeleted> <ModifiedBy>1</ModifiedBy> <ModifiedOn>2024-10-04T21:59:06.26987+03:00</ModifiedOn> <branchImages> <BranchImage> <BranchDescriptionID>1</BranchDescriptionID> <BranchID>1</BranchID> <BranchImageID>1</BranchImageID> <CreatedBy>1</CreatedBy> <CreatedOn>2024-10-04T21:59:06.26987+03:00</CreatedOn> <Description>sample string 4</Description> <ImageDescription>sample string 2</ImageDescription> <ImageURL>sample string 1</ImageURL> <IsDeleted>true</IsDeleted> <IsHeadOffice>true</IsHeadOffice> <IsNewInsert>true</IsNewInsert> <IsSelected>true</IsSelected> <ModifiedBy>1</ModifiedBy> <ModifiedOn>2024-10-04T21:59:06.26987+03:00</ModifiedOn> <OriginalName>sample string 3</OriginalName> </BranchImage> <BranchImage> <BranchDescriptionID>1</BranchDescriptionID> <BranchID>1</BranchID> <BranchImageID>1</BranchImageID> <CreatedBy>1</CreatedBy> <CreatedOn>2024-10-04T21:59:06.26987+03:00</CreatedOn> <Description>sample string 4</Description> <ImageDescription>sample string 2</ImageDescription> <ImageURL>sample string 1</ImageURL> <IsDeleted>true</IsDeleted> <IsHeadOffice>true</IsHeadOffice> <IsNewInsert>true</IsNewInsert> <IsSelected>true</IsSelected> <ModifiedBy>1</ModifiedBy> <ModifiedOn>2024-10-04T21:59:06.26987+03:00</ModifiedOn> <OriginalName>sample string 3</OriginalName> </BranchImage> </branchImages> </BranchDescription> <BranchDescription> <BranchDescriptionID>1</BranchDescriptionID> <BranchID>1</BranchID> <CreatedBy>1</CreatedBy> <CreatedOn>2024-10-04T21:59:06.26987+03:00</CreatedOn> <Description>sample string 1</Description> <IsDeleted>true</IsDeleted> <ModifiedBy>1</ModifiedBy> <ModifiedOn>2024-10-04T21:59:06.26987+03:00</ModifiedOn> <branchImages> <BranchImage> <BranchDescriptionID>1</BranchDescriptionID> <BranchID>1</BranchID> <BranchImageID>1</BranchImageID> <CreatedBy>1</CreatedBy> <CreatedOn>2024-10-04T21:59:06.26987+03:00</CreatedOn> <Description>sample string 4</Description> <ImageDescription>sample string 2</ImageDescription> <ImageURL>sample string 1</ImageURL> <IsDeleted>true</IsDeleted> <IsHeadOffice>true</IsHeadOffice> <IsNewInsert>true</IsNewInsert> <IsSelected>true</IsSelected> <ModifiedBy>1</ModifiedBy> <ModifiedOn>2024-10-04T21:59:06.26987+03:00</ModifiedOn> <OriginalName>sample string 3</OriginalName> </BranchImage> <BranchImage> <BranchDescriptionID>1</BranchDescriptionID> <BranchID>1</BranchID> <BranchImageID>1</BranchImageID> <CreatedBy>1</CreatedBy> <CreatedOn>2024-10-04T21:59:06.26987+03:00</CreatedOn> <Description>sample string 4</Description> <ImageDescription>sample string 2</ImageDescription> <ImageURL>sample string 1</ImageURL> <IsDeleted>true</IsDeleted> <IsHeadOffice>true</IsHeadOffice> <IsNewInsert>true</IsNewInsert> <IsSelected>true</IsSelected> <ModifiedBy>1</ModifiedBy> <ModifiedOn>2024-10-04T21:59:06.26987+03:00</ModifiedOn> <OriginalName>sample string 3</OriginalName> </BranchImage> </branchImages> </BranchDescription> </BranchDescriptions> <BranchID>1</BranchID> <BranchName>sample string 1</BranchName> <CompanyID>1</CompanyID> <CompanyName>sample string 13</CompanyName> <CreatedBy>1</CreatedBy> <CreatedOn>2024-10-04T21:59:06.26987+03:00</CreatedOn> <Description>sample string 2</Description> <Email>sample string 5</Email> <FacebookURL>sample string 9</FacebookURL> <ImageDescription>sample string 8</ImageDescription> <ImageURL>sample string 7</ImageURL> <InstagramURL>sample string 10</InstagramURL> <IsDeleted>true</IsDeleted> <LinkedInURL>sample string 12</LinkedInURL> <MapURL>sample string 6</MapURL> <ModifiedBy>1</ModifiedBy> <ModifiedOn>2024-10-04T21:59:06.26987+03:00</ModifiedOn> <PhoneNumber>sample string 4</PhoneNumber> <TwitterURL>sample string 11</TwitterURL> <branchImages> <BranchImage> <BranchDescriptionID>1</BranchDescriptionID> <BranchID>1</BranchID> <BranchImageID>1</BranchImageID> <CreatedBy>1</CreatedBy> <CreatedOn>2024-10-04T21:59:06.26987+03:00</CreatedOn> <Description>sample string 4</Description> <ImageDescription>sample string 2</ImageDescription> <ImageURL>sample string 1</ImageURL> <IsDeleted>true</IsDeleted> <IsHeadOffice>true</IsHeadOffice> <IsNewInsert>true</IsNewInsert> <IsSelected>true</IsSelected> <ModifiedBy>1</ModifiedBy> <ModifiedOn>2024-10-04T21:59:06.26987+03:00</ModifiedOn> <OriginalName>sample string 3</OriginalName> </BranchImage> <BranchImage> <BranchDescriptionID>1</BranchDescriptionID> <BranchID>1</BranchID> <BranchImageID>1</BranchImageID> <CreatedBy>1</CreatedBy> <CreatedOn>2024-10-04T21:59:06.26987+03:00</CreatedOn> <Description>sample string 4</Description> <ImageDescription>sample string 2</ImageDescription> <ImageURL>sample string 1</ImageURL> <IsDeleted>true</IsDeleted> <IsHeadOffice>true</IsHeadOffice> <IsNewInsert>true</IsNewInsert> <IsSelected>true</IsSelected> <ModifiedBy>1</ModifiedBy> <ModifiedOn>2024-10-04T21:59:06.26987+03:00</ModifiedOn> <OriginalName>sample string 3</OriginalName> </BranchImage> </branchImages> </Branch>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.