Skip to main content

Update community channel info

When a community channel name changes, your app server should call this API to update the community channel information stored in Nexconn. This ensures that push notifications display the correct community channel name.

Changes take effect within 5 minutes. Push notifications sent after the update will display the new name.

Request method

POST: https://Base URL/v4/community-channel/update

Rate limit: 100 requests per second

Signature required: All server API requests require signature verification. See API request signature.

Request body

The request body is in application/json format and supports the following parameters:

ParameterTypeRequiredDescription
channelIdStringYesThe community channel ID.
nameStringYesThe new community channel name.

Request example

HTTP
POST /v4/community-channel/update HTTP/1.1
Host: api.sg-light-api.com
App-Key: uwd1c0sxdlx2
Nonce: 14314
Timestamp: 1408710653491
Signature: 45beb7cc7307889a8e711219a47b7cf6a5b000e8
Content-Type: application/json

{"channelId":"123","name":"new"}

Response

The response body contains a JSON object with the following structure:

FieldTypeDescription
codeNumberStatus code. 0 indicates success.

Response example

HTTP
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8

{"code":0}