---
title: "admUpdateProjectComponent"
canonical: "https://support.appfire.com/space/PSJC/733187152/admUpdateProjectComponent"
format: markdown
---
> Macro (aura-html)


## Description

> Macro (excerpt)
> 
> Updates a project component.

Updates a project component.

|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | admUpdateProjectComponent(componentStructure) | **Package** | adm |
| **Alias** |  | **Pkg Usage** | updateComponent(componentStructure) |

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| componentStructure | JComponent | Yes | Structure containing the component data to be updated. Component id is mandatory. The **componentStructure** parameter should have the **JComponent** type described [here](https://appfire.atlassian.net/wiki/spaces/PSJC/pages/435028065). |

## Return Type

**None**

Return value has no meaning.

## Example

```javascript
JComponent comp = getComponent("AP", "compName");
comp.name = "compName - updated";
comp.description = "compDesc";
comp.lead = "johnDoe";
comp.defaultAssignee = 2;
admUpdateProjectComponent(comp);
```

## See also

> Macro (contentbylabel)