Request headers

Only registered user can perform this action
  Authentication - string - required
    Example of Authentication header : "Bearer TOKEN_FETCHED_FROM_SERVER_DURING_REGISTRATION"

Request body example

{
  "color": {
    "color": "#ffffff"
  }
}

Success response body

{
  "id": 1,
  "color": "#ffffff"
}

Params

Param name Description
color
required

Validations:

  • Must be a Hash

color[color]
required

Hex code of color

Validations:

  • Must be a String