Danbooru
Login Posts Comments Notes Artists Tags Pools Wiki Forum More ยป
Search Changes Help
  • |
  • Posts (0) History

    Blacklisted (help)

    • guro
    • scat
    • furry -rating:g
    Disable all Re-enable all

    Recent Changes (all)

    • amo aster
    • ranpha (summer) (princess connect!)
    • ranpha (princess connect!)
    • vsk-94 (girls' frontline)
    • lyrael (princess connect!)
    • lyrael (real) (princess connect!)
    • kururu (princess connect!)
    • kururu (real) (princess connect!)
    • deltarune
    • sensei haruki suetsugu (style)
    • mifuyu (princess connect!)
    • mifuyu (mechanic) (princess connect!)
    • isuzu kai ni (kancolle)
    • mifuyu (summer) (princess connect!)
    • stigmata
    • spirits of haruka
    • yukimura eri
    • kanon (princess connect!)
    • ranpha (real) (princess connect!)
    • stoutland
    • project ultraman
    • lillipup
    • nea (princess connect!)
    • herdier
    • ultra series

    Options

    • Wiki History
    • Discussions
    • What Links Here

    api:users

    Table of Contents
    • 1. Record field format
    • 1. Bit fields
    • 2. Associated attributes
    • 3. Nomenclature
    • 4. Actions
      • 4.01 Index
      • 4.02 Show
      • 4.03 Create
      • 4.04 Update
    • 5. See also
    • 6. External links

    The following includes the details of how to interface with the user records through the API.

    Record field format

    NameTypeDetails
    idinteger>0
    namestring
    levelinteger[10, 20, 30, 31, 32, 40, 50]
    inviter_idinteger>0
    post_update_countinteger
    note_update_countinteger
    post_upload_countinteger
    favorite_countinteger
    unread_dmail_countinteger
    is_bannedboolean
    bit_prefsintegerEach bit stores a boolean value. See Bit fields below for more information.
    themestring[light, dark]
    favorite_tagsstring
    blacklisted_tagsstring
    comment_thresholdinteger
    timezonestring
    per_pageinteger1 - 200
    default_image_sizestring[large, original]
    custom_cssstring
    upload_pointsinteger
    last_forum_read_attimestamp
    last_logged_in_attimestamp
    created_attimestamp
    updated_attimestamp

    Bit fields

    NameTypeBit position
    is_bannedstatus0
    receive_email_notificationssetting2
    always_resize_imagessetting3
    enable_post_navigationsetting4
    new_post_navigation_layoutsetting5
    enable_private_favoritessetting6
    enable_sequential_post_navigationsetting7
    hide_deleted_postssetting8
    style_usernamessetting9
    enable_auto_completesetting10
    show_deleted_childrensetting11
    disable_categorized_saved_searchessetting15
    disable_tagged_filenamessetting17
    disable_cropped_thumbnailssetting19
    disable_mobile_gesturessetting20
    enable_safe_modesetting21
    enable_desktop_modesetting22
    disable_post_tooltipssetting23
    enable_recommended_postssetting24
    requires_verificationstatus28
    is_verifiedstatus29

    Associated attributes

    NameTypeNumberAvailabilityDetails
    inviterusersingleoptional

    Nomenclature

    • Plural form: "users"
      • Used in the URL pathname
    • Singular form: "user"
      • Used for write parameters (Help:API Write Requests)
    • Versions: none

    Actions

    These are the various actions that can be done with user records.

    Index
    HTTP MethodGET
    Base URL/users.json
    Typeread request
    DescriptionThe default order is created at descending.
    Search attributes

    All of the following are standard attributes with all of their available formats and qualifiers.

    • Number syntax
      • id
      • level
      • post_upload_count
      • post_update_count
      • note_update_count
      • favorite_count
      • created_at
      • updated_at
    • Text syntax
      • name
    • User syntax
      • inviter
    Special search parameters
    • name_matches - Case-insensitive wildcard search on the name field.
    • min_level - Minimum user level to include.
    • max_level - Maximum user level to include.
    • current_user_first - Shows the current user first, then all other users by ID desc.
    • order - Sets the order of results.
      • name - Alphabetical on the name field.
      • post_upload_count
      • post_update_count
      • note_count
    Show
    HTTP MethodGET
    Base URL/users/$id.json
    Typeread request
    Description$id is the user ID.
    Can also be reached by using the /profile endpoint for the current user.
    Create
    HTTP MethodPOST
    Base URL/users.json
    Typewrite request
    Create parameters
    • Required:
      • name
      • password
      • password_confirmation
    • Optional:
      • email
    Update
    HTTP MethodPUT/PATCH
    Base URL/users/$id.json
    Typewrite request
    Description$id is the user ID.
    Update parameters
    • Optional:
      • comment_threshold
      • default_image_size
      • favorite_tags
      • blacklisted_tags
      • time_zone
      • per_page
      • custom_style
      • theme
      • receive_email_notifications
      • always_resize_images
      • enable_post_navigation
      • new_post_navigation_layout
      • enable_private_favorites
      • enable_sequential_post_navigation
      • show_deleted_posts
      • style_usernames
      • enable_auto_complete
      • show_deleted_children
      • disable_categorized_saved_searches
      • disable_tagged_filenames
      • disable_cropped_thumbnails
      • disable_mobile_gestures
      • enable_safe_mode
      • enable_desktop_mode
      • disable_post_tooltips
    • Admin only:
      • level

    See also

    • Help:Common URL Parameters
    • Help:API

    External links

    Controllerhttps://github.com/danbooru/danbooru/blob/master/app/controllers/user_controller.rb
    Modelhttps://github.com/danbooru/danbooru/blob/master/app/models/user.rb
    Policyhttps://github.com/danbooru/danbooru/blob/master/app/policies/user_policy.rb
    Terms / Privacy / Upgrade / Contact /