Skip to content
This repository was archived by the owner on Feb 26, 2022. It is now read-only.

Send a payload with POST requests#43

Open
crgeary wants to merge 1 commit into
masterfrom
webhook_payload
Open

Send a payload with POST requests#43
crgeary wants to merge 1 commit into
masterfrom
webhook_payload

Conversation

@crgeary

@crgeary crgeary commented Aug 8, 2020

Copy link
Copy Markdown
Owner

Allow POST requests to include a JSON payload. These requests contain a small amount of information about the action that was taken on the WordPress site.

For example, a post/page update might include:

{
  "action": "post_status_transition",
  "data": {
    "id": 1,
    "status": "publish"
  }
}

Solves #40

@nickdbush

Copy link
Copy Markdown

This would be doubly as helpful, as not only would it allow rebuilding the site on publish, but flushing caches as well. Would love to see this soon in the next release.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants