Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 Direct Cursus Technology L.L.C.
Yandex Cloud Notification Service
    • Overview
    • Getting started with mobile push notifications
    • Getting started with in-browser push notifications
    • Getting started with SMS
    • All guides
      • Creating a channel
      • Managing a channel
      • Creating an endpoint
      • Managing an endpoint
      • Sending a push notification to browser
    • Configuring logging
    • Overview
    • Mobile push notifications
    • In-browser push notifications
    • SMS
    • Quotas and limits
    • All tools
    • AWS CLI
    • AWS SDK for C++
    • AWS SDK for Go
    • AWS SDK for Java
    • AWS SDK for JavaScript
    • AWS SDK for Kotlin
    • AWS SDK for .NET
    • AWS SDK for PHP
    • AWS SDK for Python (boto3)
  • Pricing policy
  • Monitoring metrics
  • Logs Cloud Logging
  • Release notes

In this article:

  • Updating endpoint parameters
  • Deleting an endpoint
  1. Step-by-step operations
  2. In-browser push notifications
  3. Managing an endpoint

Managing an endpoint

Written by
Yandex Cloud
Updated at April 17, 2025
  • Updating endpoint parameters
  • Deleting an endpoint

Updating endpoint parametersUpdating endpoint parameters

Management console
AWS CLI
AWS SDK for Python
AWS SDK for PHP
API
  1. In the management console, select the folder containing the endpoint.
  2. From the list of services, select Cloud Notification Service.
  3. Select an in-browser push notification channel.
  4. Navigate to the Endpoints tab.
  5. Click next to the endpoint and select Edit.
  6. Update Endpoint parameters in JSON and User data.
  7. Click Save.
  1. If you do not have the AWS CLI yet, install and configure it.

  2. Run this command:

    aws sns set-endpoint-attributes \
      --endpoint-arn <endpoint_ARN> \
      --attributes Token=<pushSubscription_JSON>,CustomUserData=<any_data>
    

    Where:

    • --endpoint-arn: Endpoint ID (ARN).
    • --attributes: Comma-separated endpoint parameters you want to edit.
      • Token: PushSubscription object, in JSON format received in the user's browser.
      • CustomUserData: Additional information.

    For more information about the aws sns set-endpoint-attributes command, see the AWS documentation.

```python
response = client.set_endpoint_attributes(
    EndpointArn="<endpoint_ARN>",
    Attributes={
        Token: "<pushSubscription_JSON>",
        CustomUserData: "<any_data>"
    }
)
print("Endpoint attributes updated successfully.")
```

Where:

* `EndpointArn`: Endpoint ID (ARN).
* `Attributes`: Comma-separated parameters you want to edit.
  * `Token`: [PushSubscription](https://developer.mozilla.org/en-US/docs/Web/API/PushSubscription) object, in [JSON](https://developer.mozilla.org/en-US/docs/Web/API/PushSubscription/toJSON) format received in the user's browser.
  * `CustomUserData`: Additional information.
```php
$response = $client->setEndpointAttributes([
    'EndpointArn' => '<endpoint_ARN>',
    'Attributes' => [
        Token => '<pushSubscription_JSON>',
        CustomUserData => '<any_data>'
    ],
]);

echo "Endpoint attributes updated successfully.\n";
```

* `EndpointArn`: Endpoint ID (ARN).
* `Attributes`: Comma-separated parameters you want to edit.
  * `Token`: [PushSubscription](https://developer.mozilla.org/en-US/docs/Web/API/PushSubscription) object, in [JSON](https://developer.mozilla.org/en-US/docs/Web/API/PushSubscription/toJSON) format received in the user's browser.
  * `CustomUserData`: Additional information.

Use the setAttributes HTTP API method for the Endpoint resource in Yandex Cloud Notification Service.

Updating an endpoint may take some time.

Deleting an endpointDeleting an endpoint

Management console
AWS CLI
AWS SDK for Python
AWS SDK for PHP
API
  1. In the management console, go to the folder containing your endpoint.
  2. From the list of services, select Cloud Notification Service.
  3. Select an in-browser push notification channel.
  4. Navigate to the Endpoints tab.
  5. Click next to the endpoint and select Delete.
  6. Click Delete.
```bash
aws sns delete-endpoint \
  --endpoint-arn <endpoint_ARN>
```

Where `--endpoint-arn` is the endpoint ID (ARN).

For more information about the `aws sns delete-endpoint` command, see the [AWS documentation](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/sns/delete-endpoint.html).
```python
response = client.delete_endpoint(
    EndpointArn="<endpoint_ARN>"
)
print("Endpoint deleted successfully.")
```
```php
$response = $client->deleteEndpoint([
    'EndpointArn' => '<endpoint_ARN>',
]);

echo "Endpoint deleted successfully.\n";
```

Use the delete HTTP API method for the Endpoint resource in Yandex Cloud Notification Service.

Was the article helpful?

Previous
Creating an endpoint
Next
Sending a push notification to browser
© 2025 Direct Cursus Technology L.L.C.