Method: Fastly::SnippetApi#update_snippet

Defined in:
lib/fastly/api/snippet_api.rb

#update_snippet(opts = {}) ⇒ SnippetResponse

Update a versioned snippet Update a specific snippet for a particular service and version.

Parameters:

  • opts (Hash) (defaults to: {})

    a customizable set of options

Options Hash (opts):

  • :service_id (String)

    Alphanumeric string identifying the service. (required)

  • :version_id (Integer)

    Integer identifying a service version. (required)

  • :snippet_name (String)

    The name for the snippet. (required)

Returns:



418
419
420
421
# File 'lib/fastly/api/snippet_api.rb', line 418

def update_snippet(opts = {})
  data, _status_code, _headers = update_snippet_with_http_info(opts)
  data
end