Skip to content
nitsuga5124 edited this page Feb 27, 2021 · 2 revisions

POST GET - /yank

Yanks a mod; removing it from the search index, and force marking it as Unsafe.

  • Yanked mods are still available for download, but should not be used.
  • This action cannot be undone.
  • Requires the user to own the mod they try to yank.
  • A team token must be provided to yank mods owned by a team.

Output

Content-Type: application/text

Returned Status

  • 200 The mod was successfully yanked.
  • 400 Mod already yanked.
  • 403 User does not own the mod.

Query Parameters

  • checksum:

    • 64 hex characters String.
    • The checksum of the mod to verify.
  • reason:

    • String.
    • The reason of the yank.
    • Default to null.

Example usage

curl -i -X POST -H 'Authorization: $TOKEN' "http://5124.mywire.org:1232/api/yank?checksum=e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"

Clone this wiki locally