Edit
These are API requests which use the HTTP POST, PUT/PATCH or DELETE methods.
Limit
These types of requests are rate-limited per user level (Help:Users). Burst writes is just where the available API writes caps off at. Regen rate is just how quickly the available writes get replaced after use.
Member levels | Burst writes | Regen rate |
---|---|---|
Member | 10 API writes | 1 write/sec |
Gold | 30 API writes | 2 write/sec |
Platinum+ | 60 API writes | 4 write/sec |
Parameters
The parameters for write requests must be passed along in the body instead of as part of the URL.
URL encoding
These parameters use URL hash encoding (Help:Hash syntax), where the base object is the singular name of the endpoint.
- Content-Type:
application/x-www-form-urlencoded
- Format: OBJECT[PARAMETER]=VALUE
- Example:
post[rating]=s&post[tag_string]=danboo
JSON encoding
These parameters use JSON hash encoding [1], where the base object is also the singular name of the endpoint.
- Content-Type:
application/json
- Format: { "OBJECT": { "PARAMETER": VALUE } }
- Example:
{ "post": { "rating": "s", "tag_string": "danboo" } }
Using POST
Like with read requests, both the PUT/PATCH and DELETE methods can also be sent by setting the parameter "_method" with the lowercase name of the method as its value, i.e. "put", "patch", or "delete".
See also
External links
No posts found.