Pixela API Document

API Document for Pixela ( https://pixe.la/ ) .

PUT - /v1/users/<username>/graphs/<graphID>/notifications/<notificationID>


Update predefined notification rule.

HTTP Method , API endpoint

PUT /v1/users/<username>/graphs/<graphID>/notifications/<notificationID>

Request Header

Key Description
X-USER-TOKEN [required] It is the authentication token specified at the time of user registration.

Request Body

Key Type Description
name string [optional] It is the name of the notification settings.
target string [optional] Specify the target to be notified.
Only quantity is supported.
condition string [optional] Specify the condition used to judge whether to notify or not.
>, =, <, and multipleOf are available.
You must be a Pixela supporter to specify multipleOf condition. see: How to support Pixela by Patreon / Use Limited Features · a-know/Pixela Wiki · GitHub
threshold string [optional] Specify the threshold value for deciding whether to notify or not. The number must match the graph type(int or float).
channelID string [optional] Specify the ID of the channel to be notified.


$ curl -X PUT https://pixe.la/v1/users/a-know/graphs/test-graph/notifications/my-notify-rule -H 'X-USER-TOKEN:thisissecret' -d '{"id":"my-notification-rule","name":"my notification rule","target":"quantity","condition":">","threshold":"5","channelID":"my-channel"}'