public function customDictionariesEdit($customDictionary)
    {
        if (!count($customDictionary) ||
            empty($customDictionary['code']) ||
            empty($customDictionary['elements'])
        ) {
            throw new \InvalidArgumentException(
                'Parameter `dictionary` must contain a data & fields `code` & `elemets` must be set'
            );
        }

        /* @noinspection PhpUndefinedMethodInspection */
        return $this->client->makeRequest(
            "/custom-fields/dictionaries/{$customDictionary['code']}/edit",
            "POST",
            ['customDictionary' => json_encode($customDictionary)]
        );
    }
public function customDictionariesEdit($customDictionary)
    {
        if (!count($customDictionary) ||
            empty($customDictionary['code']) ||
            empty($customDictionary['elements'])
        ) {
            throw new \InvalidArgumentException(
                'Parameter `dictionary` must contain a data & fields `code` & `elemets` must be set'
            );
        }

        /* @noinspection PhpUndefinedMethodInspection */
        return $this->client->makeRequest(
            "/custom-fields/dictionaries/{$customDictionary['code']}/edit",
            "POST",
            ['customDictionary' => json_encode($customDictionary)]
        );
    }
public function customDictionariesEdit ( $ customDictionary ) { if ( ! count ( $ customDictionary ) || empty ( $ customDictionary [ 'code' ] ) || empty ( $ customDictionary [ 'elements' ] ) ) { throw new \ InvalidArgumentException ( 'Parameter `dictionary` must contain a data & fields `code` & `elemets` must be set' ) ; } /* @noinspection PhpUndefinedMethodInspection */ return $ this -> client -> makeRequest ( "/custom-fields/dictionaries/{$customDictionary['code']}/edit" , "POST" , [ 'customDictionary' => json_encode ( $ customDictionary ) ] ) ; }
Edit custom dictionary

@param $customDictionary

@return \RetailCrm\Response\ApiResponse
Edit custom dictionary