.. _administrator_restfulsimplifiednode_details_update: ============================================================================= PUT /administrator/restfulsimplifiednode/id ============================================================================= Update a Node. The underlying data model where the item is updated is defined in :class:`devilry.apps.core.models.Node`. The :ref:`simplified` that the server forwards this request to is :meth:`devilry.apps.administrator.simplified.simplifiednode.SimplifiedNode.update`. ******** Request ******** Example ################ .. code-block:: javascript PUT /administrator/restfulsimplifiednode/id { long_name: "My example value", short_name: "my_example001_value", parentnode: 15 } Required request parameters encoded in the URL ############################################## id -------------- The unique identifier of a Node as the last item in the URL. You will typically get this id in response from a search. Required request parameters ########################### The following request parameters are encoded as a JSON object and sent as the request body as shown in the example above. long_name -------------------------------------------------- Actual location of the field: :class:`devilry.apps.core.models.Node` About the field: A longer name, more descriptive than "Short name". This is the name visible to students. Type String short_name -------------------------------------------------- Actual location of the field: :class:`devilry.apps.core.models.Node` About the field: Max 20 characters. Only numbers, lowercase characters, '_' and '-'. Type String parentnode -------------------------------------------------- Actual location of the field: :class:`devilry.apps.core.models.Node` About the field: Autogenerated identifier. Type Integer ************** Response ************** On success ########## Example ---------------- .. code-block:: javascript 200 OK { long_name: "My example value", short_name: "my_example001_value", parentnode: 15, id: 15 } Success response details ------------------------ As long as the Node is updated without an error, the response is *HTTP 201* with the requested data in the body. The result always contains the data you sent in to the update method, however some values may have been changed due to logic performed on the server before saving. On error ######## On errors, we respond with one of the :ref:`restful_api_error_statuscodes`.