DocCloud API

<back to all web services

UpdateFixedAssetCommand

Requires Authentication
The following routes are available for this service:
PUT/fixedasset/{id}Update fixed asset
FixedAssetDto Parameters:
NameParameterData TypeRequiredDescription
IsFinishedformboolNo
InConstructionformboolNo
CountAtCostsBookingformboolNo
GroupIdformuintNo
GroupNameformstringNo
ClassificationIdformuintNo
ClassificationSymbolformstringNo
InventoryNumberformstringNo
BarCodeformstringNo
NameformstringNo
CategoryIdformuintNo
PurchaseDateformDateTimeNo
UsageStartDateformDateTimeNo
SourceStatusformintNo
DisposalDateformDateTime?No
DisposalDocumentIdformulong?No
DisposalDocumentformstringNo
DisposalCauseformstringNo
DescriptionformstringNo
BoundedDocumentsformIList<FixedAssetBoundedDocumentDto>No
IsBalanceAndCostDepreciationsDiffrentformboolNo
DepreciationMethodformintNo
DepreciationRateformdecimalNo
DepreciationFactorformdecimalNo
MonthlyDepreciationValueformdecimalNo
IsSeasonallyUsedformboolNo
IsDepreciationSuspendedformboolNo
DepreciationStartDateformDateTimeNo
OriginAmountformdecimalNo
UpdatedAmountformdecimalNo
CurrentGrossAmountformdecimalNo
AllowancesformdecimalNo
UpdatedAllowancesformdecimalNo
CurrentYearAllowancesformdecimalNo
CurrentNettoAmountformdecimalNo
ResponsiblePersonsformIList<FixedAssetResponsiblePersonDto>No
UsagePlacesformIList<FixedAssetUsagePlaceDto>No
GeneratePTDocumentsAtSaveformboolNo
BaseKeyDto Parameters:
NameParameterData TypeRequiredDescription
CreatedByIdformuintNo
ModifiedByIdformuintNo
CreatedDateformDateTimeNo
ModifiedDateformDateTimeNo
IdformuintNo
FixedAssetBoundedDocumentDto Parameters:
NameParameterData TypeRequiredDescription
FixedAssetIdformuintNo
CostInvoiceIdformulongNo
CostInvoicePositionIdformulongNo
CostInvoiceNumberformstringNo
DateformDateTimeNo
NettoformdecimalNo
GrossformdecimalNo
VatformdecimalNo
DepreciationValueTotalformdecimalNo
DepreciationValueLeftformdecimalNo
IsDeletedformboolNo
FixedAssetResponsiblePersonDto Parameters:
NameParameterData TypeRequiredDescription
FixedAssetIdformuintNo
StartDateformDateTimeNo
EndDateformDateTimeNo
AcronymformstringNo
NameformstringNo
SurnameformstringNo
IsDeletedformboolNo
FixedAssetUsagePlaceDto Parameters:
NameParameterData TypeRequiredDescription
FixedAssetIdformuintNo
StartDateformDateTimeNo
EndDateformDateTimeNo
DescriptionformstringNo
IsDeletedformboolNo
PostOperationResult<T> Parameters:
NameParameterData TypeRequiredDescription
IdformTNo
OperationResult Parameters:
NameParameterData TypeRequiredDescription
CodeformstringNo
ResponseStatusformResponseStatusNo
ResultformObjectNo
IsSuccessformboolNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

PUT /fixedasset/{id} HTTP/1.1 
Host: api.chmuradokumentow.pl 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<UpdateFixedAssetCommand xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.FixedAsset.Command">
  <CreatedById xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.Base">0</CreatedById>
  <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.Base">0001-01-01T00:00:00</CreatedDate>
  <Id xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.Base">0</Id>
  <ModifiedById xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.Base">0</ModifiedById>
  <ModifiedDate xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.Base">0001-01-01T00:00:00</ModifiedDate>
  <Allowances xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.FixedAsset.Model">0</Allowances>
  <BarCode xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.FixedAsset.Model">String</BarCode>
  <BoundedDocuments i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.FixedAsset.Model" />
  <CategoryId xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.FixedAsset.Model">0</CategoryId>
  <ClassificationId xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.FixedAsset.Model">0</ClassificationId>
  <ClassificationSymbol xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.FixedAsset.Model">String</ClassificationSymbol>
  <CountAtCostsBooking xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.FixedAsset.Model">false</CountAtCostsBooking>
  <CurrentGrossAmount xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.FixedAsset.Model">0</CurrentGrossAmount>
  <CurrentNettoAmount xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.FixedAsset.Model">0</CurrentNettoAmount>
  <CurrentYearAllowances xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.FixedAsset.Model">0</CurrentYearAllowances>
  <DepreciationFactor xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.FixedAsset.Model">0</DepreciationFactor>
  <DepreciationMethod xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.FixedAsset.Model">0</DepreciationMethod>
  <DepreciationRate xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.FixedAsset.Model">0</DepreciationRate>
  <DepreciationStartDate xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.FixedAsset.Model">0001-01-01T00:00:00</DepreciationStartDate>
  <Description xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.FixedAsset.Model">String</Description>
  <DisposalCause xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.FixedAsset.Model">String</DisposalCause>
  <DisposalDate xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.FixedAsset.Model">0001-01-01T00:00:00</DisposalDate>
  <DisposalDocument xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.FixedAsset.Model">String</DisposalDocument>
  <DisposalDocumentId xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.FixedAsset.Model">0</DisposalDocumentId>
  <GeneratePTDocumentsAtSave xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.FixedAsset.Model">false</GeneratePTDocumentsAtSave>
  <GroupId xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.FixedAsset.Model">0</GroupId>
  <GroupName xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.FixedAsset.Model">String</GroupName>
  <InConstruction xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.FixedAsset.Model">false</InConstruction>
  <InventoryNumber xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.FixedAsset.Model">String</InventoryNumber>
  <IsBalanceAndCostDepreciationsDiffrent xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.FixedAsset.Model">false</IsBalanceAndCostDepreciationsDiffrent>
  <IsDepreciationSuspended xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.FixedAsset.Model">false</IsDepreciationSuspended>
  <IsFinished xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.FixedAsset.Model">false</IsFinished>
  <IsSeasonallyUsed xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.FixedAsset.Model">false</IsSeasonallyUsed>
  <MonthlyDepreciationValue xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.FixedAsset.Model">0</MonthlyDepreciationValue>
  <Name xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.FixedAsset.Model">String</Name>
  <OriginAmount xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.FixedAsset.Model">0</OriginAmount>
  <PurchaseDate xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.FixedAsset.Model">0001-01-01T00:00:00</PurchaseDate>
  <ResponsiblePersons i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.FixedAsset.Model" />
  <SourceStatus xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.FixedAsset.Model">0</SourceStatus>
  <UpdatedAllowances xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.FixedAsset.Model">0</UpdatedAllowances>
  <UpdatedAmount xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.FixedAsset.Model">0</UpdatedAmount>
  <UsagePlaces i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.FixedAsset.Model" />
  <UsageStartDate xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.FixedAsset.Model">0001-01-01T00:00:00</UsageStartDate>
</UpdateFixedAssetCommand>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<UpdateFixedAssetResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.FixedAsset.Command">
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types" xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.Recipient.Global">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
        <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:Meta>
      </d2p1:ResponseError>
    </d2p1:Errors>
    <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Meta>
  </ResponseStatus>
  <Result xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.Recipient.Global" />
  <Id xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.Recipient.Global">0</Id>
</UpdateFixedAssetResponse>