Skip to main content

Update Team

Updates an existing Team in SmartSuite.

Update Team

Updates an existing Team with new properties.

update_team(tableId: ID, teamId:ID, team: Team): Promise<Team>;
Parameter NameTypeDescription
tableIdstringId of the Team table in the System solution.
teamIdstringId of the Team.
teamTeam objectObject that specifies parameters for the updated team.

Team object

interface Team {
id: ID;
name: string;
color: ColorPickerFieldValue;
status: StatusFieldValue | StatusAsStringValue;
type: string;
owners: AssignedToFieldValue;
members: AssignedToFieldValue;
created_on?: string;
updated_on?: string;
sys_title?: string;
sys_target?: ID;
}
Update Team

<!--update_team(appId: ID, teamId:ID, team: Team): Promise<Team>;-->

<script>
window.SmartSuite.update_team('64a3d0e2ae628ec2bee3c03e','67617ada14f3899326e28ddb', {
name: 'my team',
}).then((res) => {
console.log('result =>>>', res);
});
</script>

Response

200 Response
{
"name": "RENAMED team",
"color": [
{
"value": "#0C41F3"
}
],
"type": "2",
"status": {
"value": "1",
"updated_on": "2024-12-19T21:13:41.109000Z"
},
"owners": [
"63a1f65723aaf6bcb564b1f1"
],
"members": [
"63a1f65723aaf6bcb564b1f1"
],
"first_created": {
"on": "2024-12-19T21:13:40.553000Z",
"by": "63a1f65723aaf6bcb564b1f1"
},
"last_updated": {
"on": "2024-12-19T21:31:09.862316Z",
"by": "63a1f65723aaf6bcb564b1f1"
},
"external_id": "",
"provisioning": "",
"followed_by": [],
"id": "67648c8465269207fd4def78",
"application_slug": "teams",
"application_id": "63a1f65623aaf6bcb564b00b",
"title": null,
"comments_count": null,
"autonumber": null,
"ranking": {
"default": "aamevqwxbs"
},
"deleted_date": {
"date": null,
"include_time": false
},
"deleted_by": null
}