Sha256: f8595a2f5d37b9f8312fc495373f259da7cdca173759e5c3d71c44e9f04f0b99

Contents?: true

Size: 1.73 KB

Versions: 4

Compression:

Stored size: 1.73 KB

Contents

{
  "url": "https://api.slack.com/events/dnd_updated",
  "type": "dnd_updated",
  "response": {
    "dnd_status": {
      "dnd_enabled": true,
      "next_dnd_start_ts": 1450387800,
      "next_dnd_end_ts": 1450423800,
      "snooze_enabled": true,
      "snooze_endtime": 1450373897
    },
    "type": "dnd_updated",
    "user": "U1234"
  },
  "schema": {
    "$schema": "http://json-schema.org/draft-07/schema",
    "definitions": {
      "time_integer": {
        "type": "number"
      },
      "dnd_status": {
        "type": "object",
        "description": "(defined by script)",
        "properties": {
          "dnd_enabled": {
            "type": "boolean"
          },
          "next_dnd_end_ts": {
            "$ref": "#/definitions/time_integer"
          },
          "next_dnd_start_ts": {
            "$ref": "#/definitions/time_integer"
          }
        }
      },
      "user_id": {
        "type": "string"
      },
      "dnd_updated": {
        "type": "object",
        "description": "learn more: https://api.slack.com/events/dnd_updated",
        "properties": {
          "dnd_status": {
            "$ref": "#/definitions/dnd_status"
          },
          "type": {
            "const": "dnd_updated"
          },
          "user": {
            "$ref": "#/definitions/user_id"
          }
        },
        "example": {
          "dnd_status": {
            "dnd_enabled": true,
            "next_dnd_start_ts": 1450387800,
            "next_dnd_end_ts": 1450423800,
            "snooze_enabled": true,
            "snooze_endtime": 1450373897
          },
          "type": "dnd_updated",
          "user": "U1234"
        }
      }
    }
  },
  "compatibility": [
    "RTM",
    "Events API"
  ],
  "scopes": [
    "dnd:read"
  ]
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
slack_resources-0.1.3 lib/slack_resources/resources/event_api/details/dnd_updated.json
slack_resources-0.1.2 lib/slack_resources/resources/event_api/details/dnd_updated.json
slack_resources-0.1.1 lib/slack_resources/resources/event_api/details/dnd_updated.json
slack_resources-0.1.0 lib/slack_resources/resources/event_api/details/dnd_updated.json