Variable: IamScopeUpdateRequestSchema
const IamScopeUpdateRequestSchema: ZodObject<{
name: ZodString;
description: ZodString;
resources: ZodArray<ZodObject<{
resource_type: ZodString;
resource_id: ZodString;
metadata: ZodOptional<ZodArray<ZodUnknown, "many">>;
}, "strict", ZodTypeAny, {
resource_type: string;
resource_id: string;
metadata?: unknown[];
}, {
resource_type: string;
resource_id: string;
metadata?: unknown[];
}>, "many">;
}, "strict", ZodTypeAny, {
name: string;
description: string;
resources: {
resource_type: string;
resource_id: string;
metadata?: unknown[];
}[];
}, {
name: string;
description: string;
resources: {
resource_type: string;
resource_id: string;
metadata?: unknown[];
}[];
}>;
Defined in: src/models/iam.ts:78
PUT /iam/v1/scopes/{name} body — a full replacement, not a patch. The wire body repeats
name; the client copies it from the path so callers supply only the mutable fields.