Sha256: f279863144a33bb45ce184e69d5652f7d940b089356928553876f580f19bdc55

Contents?: true

Size: 1.91 KB

Versions: 7

Compression:

Stored size: 1.91 KB

Contents

{
  "url": "https://api.slack.com/events/dnd_updated",
  "event": "dnd_updated",
  "sub_schemas": {
    "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"
      }
    }
  },
  "schema": {
    "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

7 entries across 7 versions & 1 rubygems

Version Path
slack_resources-0.1.9 lib/slack_resources/resources/event_api/details/dnd_updated.json
slack_resources-0.1.8 lib/slack_resources/resources/event_api/details/dnd_updated.json
slack_resources-0.1.7 lib/slack_resources/resources/event_api/details/dnd_updated.json
slack_resources-0.1.6 lib/slack_resources/resources/event_api/details/dnd_updated.json
slack_resources-0.1.5 lib/slack_resources/resources/event_api/details/dnd_updated.json
slack_resources-0.1.4 lib/slack_resources/resources/event_api/details/dnd_updated.json
slack_resources-0.0.0 lib/slack_resources/resources/event_api/details/dnd_updated.json