POST assets/locations
Request Information
URI Parameters
None.
Body Parameters
LocationName | Description | Type | Additional information |
---|---|---|---|
ID | integer |
None. |
|
Name | string |
None. |
|
OrganizationalUnitID | integer |
None. |
|
OrganizationalUnit | OrganizationalUnit |
None. |
Request Formats
application/json, text/json
Sample:
{ "ID": 1, "Name": "sample string 2", "OrganizationalUnitID": 3, "OrganizationalUnit": { "ID": 1, "Name": "sample string 2", "Address": { "Street": "sample string 1", "Postcode": "sample string 2", "City": "sample string 3", "CountryID": 4, "Country": { "ID": 1, "Name": "sample string 2", "CurrencyID": 1, "Currency": { "ID": 1, "Code": "sample string 2", "Name": "sample string 3", "Sign": "sample string 4", "Lookup": "sample string 5" }, "ISO31661": 1, "Alpha2": "sample string 3", "Alpha3": "sample string 4", "Audit": { "AddUser": 1, "AddTime": "2025-04-03T06:55:34.1643158+00:00", "EditUser": 1, "EditTime": "2025-04-03T06:55:34.1643158+00:00" } } }, "Status": 3, "Type": 4, "InvoiceCalculationMethod": 5 } }
text/xml
Sample:
<Location xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Pixfin.DTO.Assets"> <ID>1</ID> <Name>sample string 2</Name> <OrganizationalUnit xmlns:d2p1="http://schemas.datacontract.org/2004/07/Pixfin.DTO.Common"> <d2p1:Address> <d2p1:City>sample string 3</d2p1:City> <d2p1:Country> <d2p1:Alpha2>sample string 3</d2p1:Alpha2> <d2p1:Alpha3>sample string 4</d2p1:Alpha3> <d2p1:Audit xmlns:d5p1="http://schemas.datacontract.org/2004/07/Pixfin.DTO"> <d5p1:AddTime>2025-04-03T06:55:34.1643158+00:00</d5p1:AddTime> <d5p1:AddUser>1</d5p1:AddUser> <d5p1:EditTime>2025-04-03T06:55:34.1643158+00:00</d5p1:EditTime> <d5p1:EditUser>1</d5p1:EditUser> </d2p1:Audit> <d2p1:Currency> <d2p1:Code>sample string 2</d2p1:Code> <d2p1:ID>1</d2p1:ID> <d2p1:Lookup>sample string 5</d2p1:Lookup> <d2p1:Name>sample string 3</d2p1:Name> <d2p1:Sign>sample string 4</d2p1:Sign> </d2p1:Currency> <d2p1:CurrencyID>1</d2p1:CurrencyID> <d2p1:ID>1</d2p1:ID> <d2p1:ISO31661>1</d2p1:ISO31661> <d2p1:Name>sample string 2</d2p1:Name> </d2p1:Country> <d2p1:CountryID>4</d2p1:CountryID> <d2p1:Postcode>sample string 2</d2p1:Postcode> <d2p1:Street>sample string 1</d2p1:Street> </d2p1:Address> <d2p1:ID>1</d2p1:ID> <d2p1:InvoiceCalculationMethod>5</d2p1:InvoiceCalculationMethod> <d2p1:Name>sample string 2</d2p1:Name> <d2p1:Status>3</d2p1:Status> <d2p1:Type>4</d2p1:Type> </OrganizationalUnit> <OrganizationalUnitID>3</OrganizationalUnitID> </Location>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |