Updating an endpoint
Written by
Updated at April 17, 2025
Management console
AWS CLI
AWS SDK for Python
AWS SDK for PHP
API
- In the management console
, go to the folder containing your endpoint. - From the list of services, select Cloud Notification Service.
- Select a push notification channel.
- Navigate to the
Endpoints tab. - Click
next to the endpoint and select Edit. - Enter Device token, a unique token residing on the user device, created by the notification service for the app.
- Optionally, enter User data, a UTF-8
encoded text up to 2,048 characters long. - Click Save.
-
If you do not have the AWS CLI yet, install and configure it.
-
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 .
-
If you do not have the AWS SDK for Python (boto3) yet, install and configure it.
-
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.
-
If you do not have the AWS SDK for PHP yet, install and configure it.
-
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.