Danbooru
Login Posts Comments Notes Artists Tags Pools Wiki Forum More ยป
Listing Upload Hot Changes Help
A list of tags to help categorize this search. Space delimited.

Search

  • Help
guro
scat
furry -rating:g

Tags

Options

Related

  • Deleted
  • Random
  • History
  • Discussions
  • Count
  • Posts Wiki Search »
  • Size
    • Small
    • Medium
    • Large
    • Huge
    • Huge
    • Gigantic
    • Absurd
    • Show scores
  • Edit

    Table of Contents
    • 01. Record field format
    • 02. Associated attributes
    • 03. Index
    • 04. Show
    • 05. Create
    • 06. Update
    • 07. Destroy
    • 08. Approve
    • 09. See also
    • 10. External links

    This page has details for how to interact with bulk update request records through the API.

    01 Record field format


    NameTypeDetails
    idinteger>0
    user_idinteger>0
    approver_idinteger>0
    forum_topic_idinteger>0
    forum_post_idinteger>0
    scripttext
    statusstring[pending, approved, rejected, processing, failed]
    created_attimestamp
    updated_attimestamp

    02 Associated attributes


    The following is the list of relations that can be included in the API results (see Help:Common URL parameters for more info):

    NameTypeNumberAvailabilityDetails
    userusersinglerequired
    approverusersingleoptional
    forum_topicforum topicsinglerequired
    forum_postforum postsinglerequired

    03 Index


    Returns multiple bulk update request records.

    HTTP MethodGET
    Base URL/bulk_update_requests.json
    Typeread request
    DescriptionThe default order is ID descending
    Search attributes

    Search parameters take the following format (see Help:Common URL parameters for more info):

    search[FIELD]=VALUE

    The following are the base fields along with their associated type. Check the syntax pages for all of the available variations.

    • Number syntax
      • id
      • created_at
      • updated_at
    • String syntax
      • script
    • Array syntax
      • tags
    • User syntax
      • user
      • approver
    • Chaining syntax
      • forum_topic
      • forum_post
    Special search parameters

    The following are additional search fields.

    • status - The status of the bulk update request (separated by commas).
    Search order

    Using the search parameter order with one of the following values changes the order of the results.

    • id_desc - ID descending.
    • id_asc - ID ascending.
    • updated_at_desc - Updated at descending.
    • updated_at_asc - Updated at ascending.
    • custom - Help:Common URL parameters
      • In order to use this order, search[id] must also be set with a list of comma-separated IDs.

    04 Show


    Returns a single bulk update request record.

    HTTP MethodGET
    Base URL/bulk_update_requests/$id.json
    Typeread request
    Description$id is the bulk update request ID.

    05 Create


    Creates a single bulk update request record.

    HTTP MethodPOST
    Base URL/bulk_update_requests.json
    Typewrite request
    Create parameters

    Bulk update request parameters take the following format (see Help:API Write Requests for more info):

    bulk_update_request[FIELD]=VALUE
    • Mandatory:
      • script
      • reason

    If the forum topic ID is present, then the title is ignored, and the BUR gets attached to the assigned forum topic ID.

    • Option 1
      • forum_topic_id

    If forum topic ID is absent, then title will be used to create a new forum topic.

    • Option 2
      • title

    In either case, the reason will be used to create a new forum post.

    06 Update

    Updates a single bulk update request record.


    HTTP MethodPUT/PATCH
    Base URL/bulk_update_request/$id.json
    Typewrite request
    Description$id is the bulk update request ID.
    Only non-approved BURs can be updated.
    Update parameters
    • Optional:
      • script
    • Admin-only parameters:
      • forum_post_id
      • forum_topic_id

    Note: Only the creator or an Admin can update a bulk update request.

    07 Destroy


    Deletes a single bulk update request record.

    HTTP MethodDELETE
    Base URL/bulk_update_request/$id.json
    Typewrite request
    Description$id is the bulk update request ID.
    Only pending BURs can be deleted.

    Note: Only the creator or an Admin can delete a bulk update request.

    09 Approve


    Approves a single bulk update request record.

    HTTP MethodPOST
    Base URL/bulk_update_request/$id/approve.json
    Typewrite request
    Description$id is the bulk update request ID.
    Only non-approved BURs can be updated.
    Approval conditions

    Builders and above can approve bulk update requests that:

    • Creator of the bulk update request
    • rename or alias commands
    • Only artist tags
      • The antecedent must be an artist tag
      • The consequent must be:
        • An artist tag
        • A non-exitent tag
        • An empty tag of any category
    • Post count must be less than or equeal to 200
      • For the antecedent
      • For the consequent if it is a non-empty artist tag

    Otherwise, only an admin can approve that request.

    09 See also


    • Help:Common URL Parameters
    • Help:API

    10 External links


    Controllerhttps://github.com/danbooru/danbooru/blob/master/app/controllers/bulk_update_requests_controller.rb
    Modelhttps://github.com/danbooru/danbooru/blob/master/app/models/bulk_update_request.rb
    Policyhttps://github.com/danbooru/danbooru/blob/master/app/policies/bulk_update_request_policy.rb

    View wiki

    No posts found.

    1
    Terms / Privacy / Upgrade / Contact /