Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions docs/docs/Rest Api/Organization/_source/networkMember.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,32 @@ paths:
authorized:
type: boolean
description: Authorization status of the member
activeBridge:
type: boolean
description: Active bridge status
capabilities:
type: integer
description: Capabilities of the member
ipAssignments:
type: array
items:
type: string
description: IP assignments of the member
noAutoAssignIps:
type: boolean
description: No auto-assign IPs status
ssoExempt:
type: boolean
description: SSO exemption status
tags:
type: array
items:
type: tuple
items:
- type: string
description: Tag key
- type: string
description: Tag value
# required:
# - name
# - authorized
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ export const PostBodySchema = z
name: z.string().optional(),
description: z.string().optional(),
authorized: z.boolean().optional(),
activeBridge: z.boolean().optional(),
capabilities: z.array(z.number()).optional(),
ipAssignments: z.array(z.string()).optional(),
noAutoAssignIps: z.boolean().optional(),
ssoExempt: z.boolean().optional(),
tags: z.array(z.tuple([z.number(), z.number()])).optional(),
})
.strict();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ export const POST_orgUpdateNetworkMember = SecuredOrganizationApiRoute(
const updateableFields = {
name: { type: "string", destinations: ["database"] },
authorized: { type: "boolean", destinations: ["controller"] },
activeBridge: { type: "boolean", destinations: ["controller"] },
capabilities: { type: "array", destinations: ["controller"] },
ipAssignments: { type: "array", destinations: ["controller"] },
noAutoAssignIps: { type: "boolean", destinations: ["controller"] },
ssoExempt: { type: "boolean", destinations: ["controller"] },
tags: { type: "array", destinations: ["controller"] },
};

const databasePayload: Partial<network_members> = {};
Expand Down
Loading