Skip to content
Lifecycle Twin API

Create and manage various objects in the Lifecycle Twin.

Update

PUT is used to send data to the server to create/update a resource.

The data sent to the server with PUT is stored in the request body of the HTTP request.

PUT /clientprojects/{id}

PUT /api/clientprojects HTTP/1.1
clientname: <Client Name>
authorization: <Token>
select: {"Name", "Latitude", "Longitude"}

Request Body

{                     
    "Name": "My Project",
    "Latitude": 57,
    "Longitude": 13
}

Response

The response will have Status Code 204 (No Content) if the request accepted.

Note: The request body should only contain the fields which needs to be updated. No other properties should be included in the request body.

The fields which needs to be updated should also be added in the "select" HTTP custom header.

Remove/ Empty field value

Removing/ emptying value of a fields can be done as below

PUT /clientprojects/{id}

PUT /api/clientprojects HTTP/1.1
clientname: <Client Name>
authorization: <Token>
select: {"Name", "CityName"}

Request Body

{                     
    "Name": "My Project - New",
    "CityName": ""
}