ScrollX Tag Page

Api:Note Versions

0 posts0 sourcesWiki updated 1/22/2025
Browse Full Gallery →

About Api:Note Versions

Table of Contents

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

Record field format

[table]

[thead]

[tr]

[th]Name[/th]

[th]Type[/th]

[th]Details[/th]

[/tr]

[/thead]

[tbody]

[tr]

[td][code]id[/code][/td]

[td]integer[/td]

[td]>0[/td]

[/tr]

[tr]

[td][code]note_id[/code][/td]

[td]integer[/td]

[td]>0[/td]

[/tr]

[tr]

[td][code]post_id[/code][/td]

[td]integer[/td]

[td]>0[/td]

[/tr]

[tr]

[td][code]x[/code][/td]

[td]integer[/td]

[td]>=0[/td]

[/tr]

[tr]

[td][code]y[/code][/td]

[td]integer[/td]

[td]>=0[/td]

[/tr]

[tr]

[td][code]width[/code][/td]

[td]integer[/td]

[td]>=0[/td]

[/tr]

[tr]

[td][code]height[/code][/td]

[td]integer[/td]

[td]>=0[/td]

[/tr]

[tr]

[td][code]body[/code][/td]

[td]string[/td]

[td][/td]

[/tr]

[tr]

[td][code]is_active[/code][/td]

[td]boolean[/td]

[td][/td]

[/tr]

[tr]

[td][code]version[/code][/td]

[td]integer[/td]

[td]>0[/td]

[/tr]

[tr]

[td][code]updater_id[/code][/td]

[td]integer[/td]

[td]>0[/td]

[/tr]

[tr]

[td][code]created_at[/code][/td]

[td]timestamp[/td]

[td][/td]

[/tr]

[tr]

[td][code]updated_at[/code][/td]

[td]timestamp[/td]

[td][/td]

[/tr]

[tr]

[td][code]updater_addr_ip[/code][/td]

[td]inet[/td]

[td]Limited to Moderator+[/td]

[/tr]

[/tbody]

[/table]

Associated attributes

[table]

[thead]

[tr]

[th]Name[/th]

[th]Type[/th]

[th]Number[/th]

[th]Availability[/th]

[th]Details[/th]

[/tr]

[/thead]

[tbody]

[tr]

[td][code]note[/code][/td]

[td]note[/td]

[td]single[/td]

[td]required[/td]

[td][/td]

[/tr]

[tr]

[td][code]post[/code][/td]

[td]post[/td]

[td]single[/td]

[td]required[/td]

[td][/td]

[/tr]

[tr]

[td][code]updater[/code][/td]

[td]user[/td]

[td]single[/td]

[td]required[/td]

[td][/td]

[/tr]

[/tbody]

[/table]

Nomenclature

  • Plural form: "note_versions"
  • Used in the URL pathname
  • Singular form: "note_version"
  • Unused
  • Version of: API:Notes

Actions

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

Index

[table]

[tbody]

[tr]

[td]HTTP Method[/td]

[td]GET[/td]

[/tr]

[tr]

[td]Base URL[/td]

[td][code]/note_versions.json[/code][/td]

[/tr]

[tr]

[td]Type[/td]

[td]read request[/td]

[/tr]

[tr]

[td]Description[/td]

[td]The default order is ID descending.[/td]

[/tr]

[/tbody]

[/table]

Search attributes

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

  • Number syntax
  • [code]id[/code]
  • [code]note_id[/code]
  • [code]post_id[/code]
  • [code]x[/code]
  • [code]y[/code]
  • [code]width[/code]
  • [code]height[/code]
  • [code]version[/code]
  • [code]created_at[/code]
  • [code]updated_at[/code]
  • Text syntax
  • [code]body[/code]
  • Boolean syntax
  • [code]is_active[/code]
  • User syntax
  • [code]updater[/code]

Special search parameters

  • [code]post_tags_match[/code] - The post query of the search term matches the post of the note.
  • [code]body_matches[/code] - Case-insensitive wildcard search on the body field.

Show

[table]

[tbody]

[tr]

[td]HTTP Method[/td]

[td]GET[/td]

[/tr]

[tr]

[td]Base URL[/td]

[td][code]/note_versions/$id.json[/code][/td]

[/tr]

[tr]

[td]Type[/td]

[td]read request[/td]

[/tr]

[tr]

[td]Description[/td]

[td][code]$id[/code] is the note version ID.[/td]

[/tr]

[/tbody]

[/table]

See also

[table]

[tbody]

[tr]

[td]Controller[/td]

[td]<https://github.com/danbooru/danbooru/blob/master/app/controllers/note_versions_controller.rb>[/td]

[td][/td]

[/tr]

[tr]

[td]Model[/td]

[td]<https://github.com/danbooru/danbooru/blob/master/app/models/note_version.rb>[/td]

[/tr]

[tr]

[td]Policy[/td]

[td]<https://github.com/danbooru/danbooru/blob/master/app/policies/note_version_policy.rb>[/td]

[/tr]

[/tbody]

[/table]

Page 1