Previous: , Up: HTTP Reference   [Contents]


7.3 Writing Data

PUT /data/key
POST /data/key

Body: a JSON number. On success: 204 No Content.

PUT /data
POST /data

Body: a JSON object of string keys to numbers. On success: 204 No Content.

Errors:

403

Key exists but is not writable, or the plugin rejected the write with a permission error.

404

Unknown key (or missing key in the path).

400

Malformed JSON body.

The adapter checks the stored access flags before invoking the plugin.