Cloudflare\Organizations\Members::update PHP Метод

update() публичный Метод

Update member roles (permission needed: #organization:edit) Change the Roles of an Organization's Member
public update ( string $organization_identifier, string $identifier, array $roles = null )
$organization_identifier string
$identifier string
$roles array Array of Roles associated with this Member
    public function update($organization_identifier, $identifier, array $roles = null)
    {
        $data = ['roles' => $roles];
        return $this->patch('/organizations/' . $organization_identifier . '/members/' . $identifier, $data);
    }