跳转到内容

邀请用户加入组织

脚本设置代码块开始,然后添加下面的片段代码。

# ... script setup ...
invitation = api_post(
f"/v1/organization/{ORGANIZATION_ID}/invitations",
{"email": "new.user@example.com", "roleId": "your-role-uuid"},
)
print(json.dumps(invitation, indent=2))