# setParams()

Sets parameters for an action. Use parameters to pass data to an Apex action.

## Signature

`setParams (Object config)`

## Parameters

***config*:** Type: `Object`. The key-value pairs for action parameters. For example `{ "record": id, "name": name}.`

**See Also**

- [Calling a Server-Side Action](/docs/platform/aura-platform/guide/controllers-server-actions-call.md)
