UpdateView

Handles updating users' views

Parameters

Name Type Description Required?
id Integer Id of the view **true**
newName String New name for the view false
newDescription String New description for the view false

Response

Success

{
  "id": "<id of the view>",
  "name": "<name of the view>",
  "isPublic": "<Boolean>"
}

Error

{
  "error" : "message"
}

Examples

Example query for Paikkatietoikkuna

http://www.paikkatietoikkuna.fi/web/fi/kartta?p_p_id=Portti2Map_WAR_portti2mapportlet&p_p_lifecycle=2&action_route=UpdateView

With POST params:

{
  "id": 2811,
  "newName": "blaa",
  "newDescription": "foo"
}

Response:

{
  "id": 2811,
  "name": "blaa",
  "isPublic": false
}

Example curl request

Last modified: Thu Nov 10 2022 13:59:32 GMT+0200 (Eastern European Standard Time)