PUT /entities/:id
Update some data on a specified entity.
The ID of the entity must be provided in the URL of the request. The following parameters are recognized in the POST request body.
- name — [string] The new name of the entity.
Status 2oo — OK
A JSON Object filled with an entity following the entity format.
- 4o4 — Not Found. The specified entity by this ID is not in the DB.
- 422 — Unprocessable Entity. The new name is already token.
PUT /entities/24
{
"name" : "Lorem ipsum"
}
{
"id": 24,
"name": "Lorem ipsum",
"url": "entity_test",
"image": null,
"created_at": "2017-07-29 00:00:00",
"updated_at": "2017-07-29 00:00:00"
}