<department_uri>/name[.<format>]
The departmentName resource can be used for updating department name.
Supported Methods:
Supported output formats: rjson, json, html, xml.
Implement the HTTP request on the following URI, where supermapiserver is the server name, with rjson being the output format.
http://supermapiportal:8090/iportal/manager/iportalconfig/departments/{departmentId}/name.rjson
Updates department name. When sending request, department name to update need to be passed.
The structure of the response resource representation is as follows:
Field | Type | Description |
succeed | boolean | Whether it is successful to update department name. |
error | Httperror | Error information. This field will not be displayed if the member is successfully updated. |
Exectue PUT request for departmentName resource http://localhost:8090/iportal/manager/iportalconfig/departments/4/name.rjson to update department name. The reqeust body is as follows:
Environmental protection bureau of county c.
The returned resource representation in rjson format is as follows:
{"succeed": true}
Asks for the response identical to the one that would correspond to a GET request, but without the response body. This is useful for retrieving meta-information written in response headers, without having to transport the entire content. The meta-information includes the media-type, content-encoding, transfer-encoding, content-length, etc.
HEAD request can be used to check whether the departmentName resource exists, or whether the the client has the permission to access it. It can also determine if the departmentName resource supports an output format <format> if performed on a URI with .<format> included.