通知先の取得
    • PDF

    通知先の取得

    • PDF

    Article summary

    Get
    /api/notification_destinations/{type}/{notification_destination_id}

    指定した通知先の詳細情報を取得します。

    Security
    API Key
    Header parameter nameAuthorization

    認証キーとなるAPI KEYをAuthorization: Token {{API KEY}}の形式でヘッダーにセットします。
    API KEYがabc123の場合は、Authorization: Token abc123とします。
    API KEYの作成方法は、trocco APIについてを参照ください。

    Path parameters
    type
    stringRequired

    通知先種別(email または slack_channel)

    Valid values[ "email", "slack_channel" ]
    Exampleemail
    notification_destination_id
    integer (int64) Required

    通知先(email または slack_channel)のIDです。

    Example1
    Responses
    200

    通知先の詳細情報を返します。

    object
    Example{ "id": 1, "type": "email", "email": "test@example.com" }
    id
    integer (int64)

    通知先のIDです。

    type
    string

    通知先の種類です。

    Valid values[ "email", "slack_channel" ]
    Exampleemail
    email
    string

    type=email の場合に設定されるメールアドレスです。

    Exampletest@example.com
    channel
    string | null

    type=slack_channel の場合に設定されるチャンネル名です。

    Example#general
    400

    不正なリクエストです。

    401

    認証エラーです。API KEYをご確認ください。

    404

    指定した通知先が存在しません。


    Was this article helpful?