POST api/entities/{id}/clone
Clone Entity
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
Entity Id |
integer |
Required |
Body Parameters
Clone Entity View Model
CloneEntityViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| SuperEntityName |
Super Entity Name |
string |
None. |
| EntityName |
Entity Name |
string |
None. |
| EntityNumber |
Entity Number |
string |
None. |
| TaxLegalName |
Tax/Legal Name |
string |
None. |
| cloneEntityOptions |
|
CloneEntityOptions |
None. |
Request Formats
application/json, text/json
Sample:
{
"superEntityName": "sample string 1",
"entityName": "sample string 2",
"entityNumber": "sample string 3",
"taxLegalName": "sample string 4",
"cloneEntityOptions": {
"entityInformation": true,
"chartOfAccounts": true,
"funds": true,
"periodClose": true,
"payableReceivables": true
}
}
application/xml, text/xml
Sample:
<CloneEntityViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels">
<EntityName>sample string 2</EntityName>
<EntityNumber>sample string 3</EntityNumber>
<SuperEntityName>sample string 1</SuperEntityName>
<TaxLegalName>sample string 4</TaxLegalName>
<cloneEntityOptions>
<ChartOfAccounts>true</ChartOfAccounts>
<EntityInformation>true</EntityInformation>
<Funds>true</Funds>
<PayableReceivables>true</PayableReceivables>
<PeriodClose>true</PeriodClose>
</cloneEntityOptions>
</CloneEntityViewModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
Cloned Entities
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.