action trashnothing_get_all_posts_changes {
label: "List all post changes"
description: "This endpoint provides an easy way to get a feed of all the changes that have been made to publicly published posts on trash nothing. Similar to the /posts/all endpoint, only data from the last 30 days is available and the changes are sorted by date (newest first). Every change includes the date of the change, the post_id of the post that was changed and the type of change.
The different types of changes that are returned are listed below.
- deleted
- undeleted
- satisfied
- promised
- unpromised
- withdrawn
- edited
For edited changes, clients can use the retrieve post API endpoint to get the edits that have been made to the post.\n"
provider: trashnothing
method: GET
path: "/posts/all/changes"
encoding: json
input: {
type: "object"
properties: {
date_max: {
type: "string"
format: "date-time"
}
date_min: {
type: "string"
format: "date-time"
}
page: {
type: "integer"
}
per_page: {
type: "integer"
}
}
required: ["date_max", "date_min"]
additionalProperties: false
}
output: {
type: "object"
properties: {
changes: {
type: "array"
items: {
type: "object"
properties: {
date: {
type: "string"
format: "date-time"
description: "The UTC date and time when the post was changed."
}
post_id: {
type: "string"
}
type: {
type: "string"
description: "The type of change. One of: deleted, undeleted, satisfied, promised, unpromised, withdrawn, edited, expired\n"
}
}
}
}
}
}
}