Skip to content

Commit

Permalink
Merge pull request #4103 from freelawproject/fix-update-webhook-docum…
Browse files Browse the repository at this point in the history
…entation

fix(docs): Update docket alert example to improve webhook documentation
  • Loading branch information
albertisfu authored Jun 10, 2024
2 parents 8b54c08 + d0b43d1 commit 5e3a1e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cl/api/templates/webhooks-docs-vlatest.html
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,10 @@ <h3 id="docket-alerts">Docket Alert Events</h3>
--url '{% get_full_host %}{% url "search-list" version="v3" %}?type=d&docket_number=22-cv-81294&case_name=trump' \
--header 'Authorization: Token {% if user.is_authenticated %}{{ user.auth_token }}{% else %}&lt;your-token-here&gt;{% endif %}' | \
jq '.results[0].docket_id' | \
xargs curl -X POST \
--url 'https://www.courtlistener.com/api/rest/v3/docket-alert/' \
xargs -I % curl -X POST \
--url 'https://www.courtlistener.com/api/rest/v3/docket-alerts/' \
--header 'Authorization: Token {% if user.is_authenticated %}{{ user.auth_token }}{% else %}&lt;your-token-here&gt;{% endif %}' \
--data docket_id=$1 </pre>
--data 'docket=%' </pre>
</li>
<li>
<p><strong>For users</strong> of <a href="{% url 'recap_email_help' %}">@recap.email</a>, the best way to subscribe to a case is to have <a href="{% url 'view_recap_email' %}">auto-subscribe turned on in your settings</a>.
Expand Down

0 comments on commit 5e3a1e8

Please sign in to comment.