v1

latestSwagger 2.0Apache 2.02026-07-1334102.9 MB
Nodes

Update a node

Updates a node by setting the values of the attributes specified in the request body. Any unspecified attributes will be left unchanged.

Nodes can be updated with either a PUT or PATCH request. The title and category fields are mandatory in a PUT request, and optional in a PATCH.

Permissions

Only write contributors may update a node. Attempting to update a node for which you do not have write access will result in a 403 Forbidden response.

Returns

Returns a JSON object with a data key containing the new representation of the updated node, if the request is successful.

If the request is unsuccessful, an errors key containing information about the failure will be returned. Refer to the list of error codes to understand why this request may have failed.

patch/nodes/{node_id}/

Path parameters

node_idstring required

The unique identifier of the node.

Request body

object required

Example request

{
  "data": {
    "type": "nodes",
    "id": "{node_id}",
    "attributes": {
      "description": "An updated abstract.",
      "tags": [
        "cancer biology",
        "reproducibility"
      ],
      "public": true
    }
  }
}

Response

OK