---
schema_version: "1"
id: fb5c3b292dced4f655e1e0ac7c069d4cfad336fa2196cba92559865ecda77669
title: setParam()
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/aura-platform/guides/aura/ref-jsapi/ref-jsapi-action-setparam.md
canonical_url: https://developer.salesforce.com/docs/platform/aura-platform/guide/ref-jsapi-action-setparam.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: b3726c4776dac1f0c1725ef91343947f89ebfe366384d5bdc96ce2d3b55c60f2
products:
  - Lightning Aura Components Developer Guide
  - Platform Developer Content
---

# setParam()

Sets a single parameter for an action. Use parameters to pass data to an Apex action.

## Signature

`setParam (String key, Object value)`

## Parameters

**_key_:** Type: `String`. The parameter name.

**_value_:** Type: `Object`. The parameter value.

**See Also**  


-   [Calling a Server-Side Action](https://developer.salesforce.com/docs/platform/aura-platform/controllers-server/controllers-server-actions-call.md)

