Skip to content

Update icon color endpoint

Alvin Cheng edited this page Apr 23, 2023 · 2 revisions

Description

This is the update icon color endpoint, this endpoint will change the user's icon color to the one provided. The endpoint will take a 'user' argument for the user to apply the changes on and a 'color' argument for the color to change to. Furthermore, this endpoint will return a '401 ' on an invalid API key, '500' on server error and '200' on success. Please note that the color MUST be in a hex value no RGB values are not allowed more information here.

Example

post("http://<URL>/api/update-icon-color?key=<YOUR_API_KEY>", {
  user: "<USER>",
  color: "#<COLOR>",
})
  .then((res) => {
    console.log(res);
  })
  .catch((err) => {
    console.error(err);
  });
Clone this wiki locally