src/idOS/Endpoint/Company/Credentials.php
public function createNew(
        string $name,
        bool $production
    ) : array {

        return $this->sendPost(
            sprintf('/companies/%s/credentials', $this->companySlug),
            [],
            [
                'name'       => $name,
                'production' => $production
            ]
        );
    }
public function createNew(
        string $name,
        bool $production
    ) : array {

        return $this->sendPost(
            sprintf('/companies/%s/credentials', $this->companySlug),
            [],
            [
                'name'       => $name,
                'production' => $production
            ]
        );
    }
public function createNew ( string $ name , bool $ production ) : array { return $ this -> sendPost ( sprintf ( '/companies/%s/credentials' , $ this -> companySlug ) , [ ] , [ 'name' => $ name , 'production' => $ production ] ) ; }
Creates a new credential for the given company.

@param string $name
@param bool   $production

@return array Response
Creates a new credential for the given company .