action trashnothing_create_alert {
label: "Create an email alert"
provider: trashnothing
method: PUT
path: "/users/me/alerts"
encoding: json
output: {
type: "object"
description: "A search alert that the user has created so that they can be notified when new posts match the search query specified by the alert."
properties: {
alert_id: {
type: "string"
}
last_sent: {
type: "string"
format: "date-time"
description: "The UTC date and time when the alert was last triggered and sent out (may be null)."
}
search: {
type: "string"
description: "The search phrase that the alert triggers on."
}
send_count: {
type: "integer"
description: "The number of time the alert has triggered and been send out."
}
types: {
type: "array"
description: "A list of the post types that the alert is set to match against. The available post types are: offer, wanted
NOTE: Additional post types may be added in the future (eg. events) so clients should take care to support arbitrary types being returned.\n"
items: {
type: "string"
}
}
user_id: {
type: "string"
}
}
}
}