title: Correct request with client-payload to run workflow_dispatch in github action
body: <p>I create simple github action with workflow_dispatch.</p>
  <pre><code>name: Run Workflow Dispatch
  
  on: 
    workflow_dispatch:
      inputs:
        version:
          description: 'version'     
          required: true
          default: 'latest'
  
  jobs:
    build:
      runs-on: ubuntu-latest
  
      steps:
      - name: Checkout
        uses: actions/checkout@v2
  
      - run: |
          echo &quot;version: ${{ github.event.inputs.version }}&quot;
  </code></pre>
  <p>I create request by curl.</p>
  <pre><code>curl -X POST \
    -H &quot;Accept: application/vnd.github.everest-preview+json&quot; \
    -H &quot;Authorization: token xxxxxxxxx&quot; \
    https://api.github.com/repos/patsevanton/workflow-dispatch-client-payload/actions/workflows/workflow_dispatch.yml/dispatches \
    --data '{&quot;event_type&quot;: &quot;my-dispatch&quot;, &quot;client_payload&quot;: {&quot;ref&quot;: &quot;main&quot;}}'
  </code></pre>
  <p>But i get error:</p>
  <pre><code>{
    &quot;message&quot;: &quot;Invalid request.\n\n\&quot;client_payload\&quot;, \&quot;event_type\&quot; are not permitted keys.\n\&quot;ref\&quot; wasn't supplied.&quot;,
    &quot;documentation_url&quot;: &quot;https://docs.github.com/rest/reference/actions#create-a-workflow-dispatch-event&quot;
  }
  </code></pre>
  <p>How create correct workflow_dispatch in github action?
  How create correct request to workflow_dispatch in github action?</p>