--- title: "Set-Team" slug: "scripting-set-team" updated: 2026-01-20T20:07:14Z published: 2026-01-20T20:07:14Z canonical: "help.agilityblue.com/scripting-set-team" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.agilityblue.com/llms.txt > Use this file to discover all available pages before exploring further. # Set-Team ## Summary Updates an existing team. ```powershell Set-Team    -Entry ``` Returns a team object. ## Parameters | Parameter | Type | Required? | Notes | | --- | --- | --- | --- | | Entry | Team object | Yes | | ## Examples ### Update an existing team This example adds a description to the processing team and outputs the results as JSON. ```powershell # Get the team $team =  Get-Team -Id "34e89524-1052-4381-a19a-083a20de9514" # Enable the team $team.Description = "Contains employees that perform processing." # Update the team $team = Set-Team -Entry $team Write-Output "Updated team '$($team.Name)' (Id: $($team.Id), # of users: $($team.NumberOfUsers))" # For debug purposes, convert the entity to output as JSON so we can see the available fields $jsonOutput = $team | ConvertTo-Json -Depth 10 Write-Output "" Write-Output "JSON Results:" # Output the JSON results Write-Output $jsonOutput ``` Execution results: ```json Updated team 'Processing' (Id: 34e89524-1052-4381-a19a-083a20de9514, # of users: 0) JSON Results: {  "Id": "34e89524-1052-4381-a19a-083a20de9514",  "Name": "Processing",  "Description": "Contains employees that perform processing.",  "IsSystemTeam": false,  "NumberOfUsers": 0,  "TeamUsers": [],  "LinkedUser": null,  "CreatedByFullName": "Max Miller",  "CreatedById": "510e109b-6ff5-4442-9670-cd5e3cd82a7a",  "CreatedOn": "2026-01-20T20:01:51.7395555+00:00",  "CreatedBy": null,  "LastUpdatedByFullName": "Max Miller",  "LastUpdatedById": "510e109b-6ff5-4442-9670-cd5e3cd82a7a",  "LastUpdatedOn": "2026-01-20T20:05:57.7217048+00:00",  "LastUpdatedBy": null } ```