ユーザーを更新
POST/v1/organizations/users/{user_id}
メンバーの組織ロールを更新します。
Parameters
Returns
ユーザーを更新
<?php
require_once dirname(__DIR__) . '/vendor/autoload.php';
$client = new Client(apiKey: 'my-anthropic-api-key');
$betaOrganizationUser = $client->beta->organization->users->update(
'user_id', role: 'user'
);
var_dump($betaOrganizationUser);Response 200
{
"id": "user_01WCz1FkmYMm4gnmykNKUu3Q",
"added_at": "2024-10-30T23:58:27.427722Z",
"email": "user@emaildomain.com",
"name": "Jane Doe",
"role": "admin",
"type": "user"
}Returns Examples
Response 200
{
"id": "user_01WCz1FkmYMm4gnmykNKUu3Q",
"added_at": "2024-10-30T23:58:27.427722Z",
"email": "user@emaildomain.com",
"name": "Jane Doe",
"role": "admin",
"type": "user"
}