Body

  • stickers string(goodies) Required
  • beer string(drink)
  • lunch string(food) Deprecated
  • cheese string(food) Deprecated
  • rubber_duck string(goodies) Deprecated

Responses

  • 202

    Stuff has been accepted

    Hide response attributes Show response attributes object
    • message string

      A human friendly description of the accepted request

    • details array[string]

      The list of items you'd like to receive

    • instructions string

      The human instructions to follow to make sure your receive your gifts In Real Life.

  • 400

    Incorrect HTTP request used to fill the bag

    Hide response attributes Show response attributes object
    • error string

      A computer friendly error code

    • message string

      A human friendly description of the error

  • 418


    I'm not a totebag


    I'm a teapot

POST /fill
curl \
 -X POST https://totebag.bump.sh/fill \
 -H "Content-Type: application/json" \
 -d '{"stickers":"API hour and I ๐Ÿ’™ documenting APIs versions"}'
Request examples
{
  "stickers": "API hour and I ๐Ÿ’™ documenting APIs versions"
}
{
  "stickers": "All versions",
  "beer": "REST:IPA sounds delicious",
  "rubber_duck": "Why not?"
}
Request examples
{
  "stickers": "string",
  "beer": "string",
  "lunch": "string",
  "cheese": "string",
  "rubber_duck": "string"
}
Response examples (202)
{
  "message": "Thanks for testing the Totebag API ๐ŸŽ‰",
  "details": [
    "stickers",
    "beer",
    "rubber_duck"
  ],
  "instructions": "You will need to actually try the API to find out ๐Ÿ˜‰"
}
Response examples (202)
{
  "message": "Thanks for testing the Totebag API ๐ŸŽ‰",
  "details": [
    "stickers",
    "beer",
    "rubber_duck"
  ],
  "instructions": "You will need to actually try the API to find out ๐Ÿ˜‰"
}
Response examples (400)
{
  "error": "wrong_method",
  "message": "Oh no, try again with another method"
}
Response examples (400)
{
  "error": "wrong_method",
  "message": "Oh no, try again with another method"
}