Required parameters for new snippet do not match API spec

The API states that in order to create a snippet, the following parameters are optional:

  • title
  • file_name
  • code

However, attempting to create a snippet using the API will result in Bad request errors unless all three parameters are provided, as well as visibility_level, which the spec does not mention.