Danbooru
Login Posts Comments Notes Artists Tags Pools Wiki Forum More ยป
Search Changes Help | Posts (0) History
  • Help
guro
scat
furry -rating:g

Recent Changes (all)

  • lily (pokemon)
  • stella lab
  • gao garuru (vtuber)
  • playboy bunny
  • kyou kimi to unmei no koi ni ochinai tame ni
  • grave keeper (kinomi master)
  • torahige (kinomi master)
  • flower hat (kinomi master)
  • holy sister (kinomi master)
  • light underwood
  • monica bolst (kinomi master)
  • lena floria
  • dratena belbury
  • ayla lawrence
  • wake ari doku hakushaku wa futsutsuka-sha
  • gunshin no hanayome
  • batsu 3 no mitori fujin to yoba rete imasunode suteoite kudasaimase
  • kimajime gunshin koushaku wa hakoiri oujo to ai o shiru
  • zoid (fuguusoku "kanteishi" ga jitsu wa saikyou datta)
  • jasper (fuguushoku "kanteishi" ga jitsu wa saikyou datta)
  • yuri (fuguushoku "kanteishi" ga jitsu wa saikyou datta)
  • ursula (fuguushoku "kanteishi" ga jitsu wa saikyou datta)
  • pina (fuguushoku "kanteishi" ga jitsu wa saikyou datta)
  • torikago no kaguyahime
  • echidna (fuguushoku "kanteishi" ga jitsu wa saikyou datta)

Options

  • Wiki History
  • Discussions
  • What Links Here

help:api write requests

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 levelsBurst writesRegen rate
Member10 API writes1 write/sec
Gold30 API writes2 write/sec
Platinum+60 API writes4 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 for method override

The POST method can be used to send data to endpoints that require other methods, in such cases where only one method is available, for instance <form> HTML elements.

URL encoding

PUT/PATCH and DELETE methods can also be sent by setting the parameter _method with the name of the method as its value.

JSON encoding

PUT/PATCH and DELETE methods can also be sent by setting the X-HTTP-Method-Override header with the name of the method as its value.

See also

  • Help:API read requests
  • Help:API

External links

[1] https://www.w3resource.com/JSON/structures.php

Terms / Privacy / Upgrade / Contact /