docstr: Update a dashboard's filter state value.
  ---
  put:
    summary: Update a dashboard's filter state value
    parameters:
    - in: path
      schema:
        type: integer
      name: pk
    - in: path
      schema:
        type: string
      name: key
    - in: query
      schema:
        type: integer
      name: tab_id
    requestBody:
      required: true
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/TemporaryCachePutSchema'
    responses:
      200:
        description: The value was stored successfully.
        content:
          application/json:
            schema:
              type: object
              properties:
                key:
                  type: string
                  description: The key to retrieve the value.
      400:
        $ref: '#/components/responses/400'
      401:
        $ref: '#/components/responses/401'
      404:
        $ref: '#/components/responses/404'
      422:
        $ref: '#/components/responses/422'
      500:
        $ref: '#/components/responses/500'
docstr_tok: ["Update","a","dashboard","'s","filter","state","value",".","--","-","put",":","summary",":","Update","a","dashboard","'s","filter","state","value","parameters",":","-","in",":","path","schema",":","type",":","integer","name",":","pk","-","in",":","path","schema",":","type",":","string","name",":","key","-","in",":","query","schema",":","type",":","integer","name",":","tab_id","requestBody",":","required",":","true","content",":","application\/json",":","schema",":","$","ref",":","'","#","\/components\/schemas\/TemporaryCachePutSchema'","responses",":","200",":","description",":","The","value","was","stored","successfully",".","content",":","application\/json",":","schema",":","type",":","object","properties",":","key",":","type",":","string","description",":","The","key","to","retrieve","the","value",".","400",":","$","ref",":","'","#","\/components\/responses\/400'","401",":","$","ref",":","'","#","\/components\/responses\/401'","404",":","$","ref",":","'","#","\/components\/responses\/404'","422",":","$","ref",":","'","#","\/components\/responses\/422'","500",":","$","ref",":","'","#","\/components\/responses\/500","'"]
code: def put(self, pk: int, key: str) -> Response:
      """Update a dashboard's filter state value.
      ---
      put:
        summary: Update a dashboard's filter state value
        parameters:
        - in: path
          schema:
            type: integer
          name: pk
        - in: path
          schema:
            type: string
          name: key
        - in: query
          schema:
            type: integer
          name: tab_id
        requestBody:
          required: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TemporaryCachePutSchema'
        responses:
          200:
            description: The value was stored successfully.
            content:
              application/json:
                schema:
                  type: object
                  properties:
                    key:
                      type: string
                      description: The key to retrieve the value.
          400:
            $ref: '#/components/responses/400'
          401:
            $ref: '#/components/responses/401'
          404:
            $ref: '#/components/responses/404'
          422:
            $ref: '#/components/responses/422'
          500:
            $ref: '#/components/responses/500'
      """
      return super().put(pk, key)
  
file_path: superset/superset/dashboards/filter_state/api.py
imports: import logging
  from flask import Response
  from flask_appbuilder.api import expose, protect, safe
  from superset.commands.dashboard.filter_state.create import CreateFilterStateCommand
  from superset.commands.dashboard.filter_state.delete import DeleteFilterStateCommand
  from superset.commands.dashboard.filter_state.get import GetFilterStateCommand
  from superset.commands.dashboard.filter_state.update import UpdateFilterStateCommand
  from superset.extensions import event_logger
  from superset.temporary_cache.api import TemporaryCacheRestApi
label_desc: Use image node_id 6 for calling the DashboardFilterStateRestApi obj's underlying member method code with example usage: obj.put(pk, key) and returns: super