POST v1/customer-assets/{id}/update-status
Updates the status and sets the Status Note.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
Id of the Asset to update |
integer |
Required |
Body Parameters
Status of the Asset to update
CustomerAssetStatusParametersName | Description | Type | Additional information |
---|---|---|---|
Status |
New status to set for the asset. |
IdNamePair |
None. |
StatusNote |
Status display note. |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "status": { "id": 1, "name": "sample string 2" }, "statusNote": "sample string 1" }
application/xml, text/xml
Sample:
<CustomerAssetStatusParameters xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BAPI.Models.Assets"> <Status xmlns:d2p1="http://schemas.datacontract.org/2004/07/Striven.Common.Models"> <d2p1:_x003C_Id_x003E_k__BackingField>1</d2p1:_x003C_Id_x003E_k__BackingField> <d2p1:_x003C_Name_x003E_k__BackingField>sample string 2</d2p1:_x003C_Name_x003E_k__BackingField> </Status> <StatusNote>sample string 1</StatusNote> </CustomerAssetStatusParameters>
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.