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
    • Start testing with double trial credits
    • 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
    • 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
    • Overview
    • Sending a request
    • Errors
      • Create
      • GetAttributes
      • SetAttributes
      • List
      • Delete
    • Publish
  • Monitoring metrics
  • Logs Cloud Logging
  • Release notes

In this article:

  • HTTP request
  • Query parameters
  • Attributes
  • Response
  • Successful response
  • Error response
  • See also
  1. API reference
  2. Endpoint
  3. SetAttributes

SetEndpointAttributes

Written by
Yandex Cloud
Updated at April 17, 2025
  • HTTP request
    • Query parameters
    • Attributes
  • Response
    • Successful response
    • Error response
  • See also

Sets attributes of the endpoint for push notifications.

HTTP requestHTTP request

POST https://notifications.yandexcloud.net/

Query parametersQuery parameters

Parameter Description
Action string
Required field.
Operation type parameter.
Value: SetEndpointAttributes.
EndpointArn string
Required field.
Endpoint ID (ARN).
Example: arn:aws:sns::aoegtvhtp8ob********:endpoint/GCM/test-cns-9990/4cbe148515360244248c993abe0a12884d162bb15e87d6c16bd0c810********.
Attributes.entry.N.key string
Required field.
Attribute key. N is a numeric value.
Example: Attributes.entry.1.key=Token&Attributes.entry.2.key=CustomUserData.
Attributes.entry.N.value string
Required field.
Attribute value. N is a numeric value.
Example: Attributes.entry.1.value=c8gzjriSVxDDzX2fAV********&Attributes.entry.2.value=test-text.
ResponseFormat string
Response format.
The possible values are:
  • XML (default)
  • JSON.

AttributesAttributes

Attribute Description
Token string
Required field.
For mobile notifications: unique token on the user device (Registration ID) created by the notification service for the app. For in-browser notifications: the PushSubscription object received in the user's browser, in JSON format.
CustomUserData string
Other user data that can be stored together with the endpoint. Cloud Notification Service does not use this data in any way.

Note

The Enabled attribute for enabling and disabling endpoint notifications is currently not supported.

ResponseResponse

Successful responseSuccessful response

If there are no errors, Cloud Notification Service returns the 200 HTTP code.

A successful response contains additional data in XML or JSON format depending on the specified ResponseFormat parameter.

Data schema:

XML
JSON
<?xml version="1.0" encoding="UTF-8"?>
<SetEndpointAttributesResponse>
    <ResponseMetadata>
  	  <RequestId>string</RequestId>
    </ResponseMetadata>
</SetEndpointAttributesResponse>
{
  "ResponseMetadata": {
    "RequestId": "string"
  }
}

Where RequestId is the request ID.

Error responseError response

In case of an error, Cloud Notification Service returns a message with the appropriate HTTP code.

For a list of common error codes for all actions, see Errors.

See alsoSee also

  • Yandex Cloud Notification Service HTTP API overview
  • Sending an HTTP API request to Yandex Cloud Notification Service
  • SetEndpointAttributes API action in the AWS documentation.

Was the article helpful?

Previous
GetAttributes
Next
List
© 2025 Direct Cursus Technology L.L.C.