---
updatedAt: 2026-03-31T12:12:41.000Z
agentTools:
  projectIndex: https://api.net2grid.com/llms.txt
---

# /push/enable

Enables push notifications for the specified device.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "NET2GRID Customer Engagement API",
    "description": "This is the B2C NET2GRID API that can be used by mobile and web apps to manage the accounts and the data that are provided by the NET2GRID Meter Data Analytics Platform.",
    "version": "13.6.0"
  },
  "servers": [
    {
      "url": "http://api.net2grid.docker",
      "description": "API server"
    }
  ],
  "paths": {
    "/v2/push/enable": {
      "put": {
        "tags": [
          "Deprecated"
        ],
        "summary": "/push/enable",
        "description": "Enables push notifications for the specified device.",
        "operationId": "v2/putPushEnable",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PutChannelEnableDTO"
              },
              "examples": {
                "PutPushEnableExample": {
                  "$ref": "#/components/examples/PutPushEnableExample"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkResponseDTO"
                },
                "examples": {
                  "OkResponse": {
                    "$ref": "#/components/examples/OkResponse"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request\n                <br/>160: Unable to enable push notifications\n                <br/>165: PUSH_NOTIFICATIONS_NOT_SUPPORTED\n                <br/>422: Invalid input\n                <br/>999: Unspecified Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseDTO"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "PutChannelEnableDTO": {
        "required": [
          "channel"
        ],
        "properties": {
          "device_id": {
            "description": "The identifier of the device that wants to receive push notifications",
            "type": "string"
          },
          "device_type": {
            "description": "Identifies the type of device that wants to receive push notifications",
            "type": "string",
            "default": "ANDROID",
            "enum": [
              "ANDROID",
              "IOS"
            ]
          },
          "device_token": {
            "description": "Token to use to gain permission to send push notifications to the device on the relevant platform (GCM or APNS)",
            "type": "string"
          },
          "channel": {
            "description": "The channel for which push needs to be disabled",
            "type": "string",
            "enum": [
              "INBOX",
              "MOBILE_PUSH",
              "EMAIL",
              "REST"
            ]
          },
          "app_identifier": {
            "description": "The identifier that is used when more than one app should be supported for ANDROID or IOS. The value defined here should be agreed with NET2GRID",
            "type": "string"
          }
        },
        "type": "object"
      },
      "ErrorDTO": {
        "properties": {
          "code": {
            "type": "integer"
          },
          "message": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "ErrorResponseDTO": {
        "properties": {
          "status": {
            "type": "string"
          },
          "error": {
            "$ref": "#/components/schemas/ErrorDTO"
          }
        },
        "type": "object"
      },
      "OkResponseDTO": {
        "required": [
          "status",
          "message"
        ],
        "properties": {
          "status": {
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        },
        "type": "object"
      }
    },
    "examples": {
      "PutPushEnableExample": {
        "summary": "Put Push Enable Body",
        "value": {
          "device_id": "ecc70e3d-14cd-49fb-b107-c63ad9939e50",
          "device_type": "ANDROID",
          "device_token": "fS97tPY65t0:APA91bEThwsFynLHp1XT_Ff54_7XR6r78lbcalJPccD1mSQNMfj4lelzNDjC7KHEngMVv4h6IwiZnc9pkoMRngDerwLkOPzEv2uRNDeGoOuNe27LylpgZIF8Jk5oq2U0srOk8ehqw0W7",
          "channel": "MOBILE_PUSH"
        }
      },
      "OkResponse": {
        "summary": "Success response",
        "value": {
          "status": "ok",
          "message": "ok"
        }
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "bearerFormat": "JWT",
        "scheme": "bearer"
      }
    }
  },
  "tags": [
    {
      "name": "Deprecated"
    }
  ],
  "x-explorer-enabled": false
}
```