Updates a hub collaboration. Can be used to change the hub role.
Returns an updated hub collaboration object.
認証済みユーザーにコラボレーションを更新するための適切な権限がない場合にエラーを返します。
予期しないクライアントエラー。
await client.hubCollaborations.updateHubCollaborationByIdV2025R0(
createdCollaboration.id,
{ role: 'editor' } satisfies HubCollaborationUpdateRequestV2025R0,
);
client.hub_collaborations.update_hub_collaboration_by_id_v2025_r0(
created_collaboration.id, role="editor"
)
await client.HubCollaborations.UpdateHubCollaborationByIdV2025R0Async(hubCollaborationId: createdCollaboration.Id, requestBody: new HubCollaborationUpdateRequestV2025R0() { Role = "editor" });
{
"id": "12345678",
"type": "hub_collaboration",
"acceptance_requirements_status": {
"strong_password_requirement": {
"enterprise_has_strong_password_required_for_external_users": true,
"user_has_strong_password": true
},
"terms_of_service_requirement": {
"is_accepted": true,
"terms_of_service": {
"id": "11446498",
"type": "terms_of_service"
}
},
"two_factor_authentication_requirement": {
"enterprise_has_two_factor_auth_enabled": true,
"user_has_two_factor_authentication_enabled": true
}
},
"accessible_by": {
"id": "11446498",
"type": "user",
"login": "ceo@example.com",
"name": "Aaron Levie"
},
"hub": {
"id": "12345",
"type": "hubs"
},
"role": "editor",
"status": "accepted"
}