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 push notification channel
      • Updating a push notification channel
      • Deleting a push notification channel
      • Creating an endpoint
      • Updating an endpoint
      • Deleting an endpoint
      • Sending a push notification
    • 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
  1. Step-by-step operations
  2. Mobile push notifications
  3. Updating an endpoint

Updating an endpoint

Written by
Yandex Cloud
Updated at April 17, 2025
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 a push notification channel.
  4. Navigate to the Endpoints tab.
  5. Click next to the endpoint and select Edit.
  6. Enter Device token, a unique token residing on the user device, created by the notification service for the app.
  7. Optionally, enter User data, a UTF-8 encoded text up to 2,048 characters long.
  8. 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 <parameter1>=<new_value1>, ... <parameterN>=<new_valueN>
    

    Where:

    • --endpoint-arn is the endpoint ID (ARN).
    • --attributes are comma-separated endpoint parameters you want to edit, in <parameter>=<new_value> format.

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

  1. If you do not have the AWS SDK for Python (boto3) yet, install and configure it.

  2. To update an endpoint, use the following code:

    response = client.set_endpoint_attributes(
        EndpointArn="<endpoint_ARN>",
        Attributes={
            "<parameter1>": "<new_value1>",
            ...
            "<parameterN>": "<new_valueN>"
        }
    )
    print("Endpoint attributes updated successfully.")
    

    Where:

    • EndpointArn is the endpoint ID (ARN).
    • Attributes are comma-separated parameters you want to edit, in "<parameter>": "<new_value>" format.
  1. If you do not have the AWS SDK for PHP yet, install and configure it.

  2. To update an endpoint, use the following code:

    $response = $client->setEndpointAttributes([
        'EndpointArn' => '<endpoint_ARN>',
        'Attributes' => [
            '<parameter1>' => '<new_value1>',
            ...
            '<parameterN>' => '<new_valueN>'
        ],
    ]);
    
    echo "Endpoint attributes updated successfully.\n";
    
    • EndpointArn: Endpoint ID (ARN).
    • Attributes are comma-separated parameters you want to edit, in '<parameter>' => '<new_value>' format.

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

Updating an endpoint may take some time.

Was the article helpful?

Previous
Creating an endpoint
Next
Deleting an endpoint
© 2025 Direct Cursus Technology L.L.C.