Skip to content

Latest commit

 

History

History
34 lines (29 loc) · 2.33 KB

updateaccessgrouprequestbody.md

File metadata and controls

34 lines (29 loc) · 2.33 KB

UpdateAccessGroupRequestBody

Example Usage

import { UpdateAccessGroupRequestBody } from "@vercel/sdk/models/updateaccessgroupop.js";

let value: UpdateAccessGroupRequestBody = {
  name: "My access group",
  projects: [
    {
      projectId: "prj_ndlgr43fadlPyCtREAqxxdyFK",
      role: "ADMIN",
    },
  ],
  membersToAdd: [
    "usr_1a2b3c4d5e6f7g8h9i0j",
    "usr_2b3c4d5e6f7g8h9i0j1k",
  ],
  membersToRemove: [
    "usr_1a2b3c4d5e6f7g8h9i0j",
    "usr_2b3c4d5e6f7g8h9i0j1k",
  ],
};

Fields

Field Type Required Description Example
name string The name of the access group My access group
projects models.Projects[] N/A
membersToAdd string[] List of members to add to the access group. [
"usr_1a2b3c4d5e6f7g8h9i0j",
"usr_2b3c4d5e6f7g8h9i0j1k"
]
membersToRemove string[] List of members to remove from the access group. [
"usr_1a2b3c4d5e6f7g8h9i0j",
"usr_2b3c4d5e6f7g8h9i0j1k"
]