action intellifi_add_subscription { label: "Create subscription" provider: intellifi method: POST path: "/subscriptions" encoding: json input: { type: "object" properties: { custom: { description: "The `custom` value is only for your custom references, you may use it to save additional attributes. The custom value is not used in any other place. This field may contain any datatype that you like: null (default), string, integer, boolean, object etc..." type: "object" } database_hold_time_h: { type: "integer" description: "The number of hours this event is retained in the database. *Only use larger numbers if you know what you are doing.* A couple of hours is enough for most use cases." } description: { type: "string" description: "Additional field to add some notes about this subscription." } events_url: { type: "string" description: "Url to the individual resource." } id: { type: "string" description: "Unique identifier for resource." } populate_events: { type: "boolean" description: "If set to `true`, resource references in an event (e.g. the location an item moved to) are resolved and populated with data instead of giving just an ID." } target_delivery_last_failure: { type: "object" description: "If `target_url` is set or has been set before, and delivery to the target URL failed at least once, this contains debugging information about the nature of the most recent failure." } target_delivery_status: { type: "object" description: "If `target_url` is set, `target_delivery_status.ok` will be `true` or `false` depending on whether events are being succesfully delivered. `target_delivery_status.since` indicates when t his status last changed." } target_retry: { type: "boolean" description: "Set to `true` if you want our server to retry if `target_url` is not giving back a `2xx` success code." } target_url: { type: "string" description: "Url to an external service that all applicable events are pushed to (webhook). Configure to `null` if you don't wish to use this (default)." } time_created: { type: "string" format: "dateTime" description: "[ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) formatted string for when this resource was created." } time_updated: { type: "string" format: "dateTime" description: "[ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) formatted string for when this resource was updated." } topic_filter: { type: "string" description: "MQTT filter that is applied to all events. Allows you to select and filter events. See [Event filtering](https://intellifi.zendesk.com/hc/en-us/articles/360008791494) for more information" } url: { type: "string" description: "Url to the individual resource." } verify_target_certificate: { type: "boolean" description: "Whether or not the `target_url` endpoint TLS certificate is verified to be valid." } } } output: { type: "object" properties: { resource: { type: "object" properties: { id: { type: "string" description: "Unique identifier for resource." } url: { type: "string" description: "Url to the individual resource." } } } status: { type: "integer" description: "Status code" } } } }