Update¶
Use PUT to update an existing resource. Include only the fields you want to change in the request body.
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 API returns status code 204 (No Content) when it accepts the update.
Note
Include only the fields you want to update in the request body.
You must also list the fields you are updating in the select HTTP custom header.
If you include a field in the select header but omit it from the request body, the API clears that field's value.
Removing field value¶
To clear a field's value, include it in both the select header and the request body with an empty string:
PUT /clientprojects/{id}
PUT /api/clientprojects HTTP/1.1
clientname: <Client Name>
authorization: <Token>
select: {"Name", "CityName"}
Request Body
{
"Name": "My Project - New",
"CityName": ""
}