Booth Wiki Booth Wiki
Pages

api/order

Change the display order of a user’s batches, or of the files inside a batch.

URL:

Authorization:

  • Basic Authorization Header must be defined.

Formats:

  • json

HTTP Method:

  • POST

Parameters:

  • order - JSON array listing all batch names (for /api/order) or all file names of the batch (for /api/order/:batch), in the desired order. The array must contain exactly the same entries as currently exist.

Response:

{"result":"SUCCESS","type":"notice"}

Note: when the list does not match the existing batches/files, the request currently fails with an HTTP 500 error page instead of a JSON error envelope (Invalid Sorting is raised but not handled on this route).