FousDocs

Save a key for a site

Save or replace a service key for tools that call a particular website.

PUT/v1/variables

Saves the value under the site and name, replacing what was saved there. A tool that calls the site uses it, as the variable the name gives (API_KEY, the default, becomes the site’s own, such as ACME_API_KEY). Needs variables:write.

Requires Authorization: Bearer $FOUS_API_KEY. Create a key.

Request body

Required. JSON.

  • sitestringrequired
  • namestringdefault "API_KEY"
  • labelstring
  • valuestringrequired

Response 200

Success

  • successtruerequired
  • dataobjectrequired
    Show child attributesHide child attributes

Errors

Every failure is an Error: branch on error.code. The errors guide lists each code.

  • 400
  • 401WWW-Authenticate
  • 402
  • 403
  • 404
  • 408
  • 409
  • 410
  • 413
  • 422
  • 429Retry-After
  • 500
  • 502
  • 503Retry-After
  • 504