---
updatedAt: 2025-06-02T21:21:43.000Z
agentTools:
  projectIndex: https://api.developer.lifx.com/llms.txt
---

# Pulse Effect

Performs a pulse effect by quickly flashing between the given colors. Use the parameters to tweak the effect.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "api-settings",
    "version": "1"
  },
  "servers": [
    {
      "url": "https://api.lifx.com/v1"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "name": "Authorization",
        "in": "header",
        "x-bearer-format": "bearer"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/lights/{selector}/effects/pulse": {
      "post": {
        "summary": "Pulse Effect",
        "description": "",
        "operationId": "pulse-effect",
        "parameters": [
          {
            "name": "selector",
            "in": "path",
            "description": "The [selector](doc:selectors) to limit which lights will run the effect.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "color"
                ],
                "properties": {
                  "color": {
                    "type": "string",
                    "description": "The [color](doc:colors) to use for the pulse effect."
                  },
                  "from_color": {
                    "type": "string",
                    "description": "The [color](doc:colors) to start the effect from. If this parameter is omitted then the color the bulb is currently set to is used instead.",
                    "default": "current bulb color"
                  },
                  "period": {
                    "type": "number",
                    "description": "The time in seconds for one cyles of the effect.",
                    "default": 1,
                    "format": "double"
                  },
                  "cycles": {
                    "type": "number",
                    "description": "The number of times to repeat the effect.",
                    "default": 1,
                    "format": "double"
                  },
                  "persist": {
                    "type": "boolean",
                    "description": "If false set the light back to its previous value when effect ends, if true leave the last effect color.",
                    "default": false
                  },
                  "power_on": {
                    "type": "boolean",
                    "description": "If true, turn the bulb on if it is not already on.",
                    "default": true
                  }
                }
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "2XX",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"results\": [\n    {\n      \"id\": \"d3b2f2d97452\",\n      \"label\": \"Left Lamp\",\n      \"status\": \"ok\"\n    }\n  ]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "results": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "example": "d3b2f2d97452"
                          },
                          "label": {
                            "type": "string",
                            "example": "Left Lamp"
                          },
                          "status": {
                            "type": "string",
                            "example": "ok"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```