{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch-php/issues/815","repository_url":"https://api.github.com/repos/elastic/elasticsearch-php","labels_url":"https://api.github.com/repos/elastic/elasticsearch-php/issues/815/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch-php/issues/815/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch-php/issues/815/events","html_url":"https://github.com/elastic/elasticsearch-php/issues/815","id":373460405,"node_id":"MDU6SXNzdWUzNzM0NjA0MDU=","number":815,"title":"putTemplate() doesn't do anything. [v5.x]","user":{"login":"8lall0","id":971324,"node_id":"MDQ6VXNlcjk3MTMyNA==","avatar_url":"https://avatars0.githubusercontent.com/u/971324?v=4","gravatar_id":"","url":"https://api.github.com/users/8lall0","html_url":"https://github.com/8lall0","followers_url":"https://api.github.com/users/8lall0/followers","following_url":"https://api.github.com/users/8lall0/following{/other_user}","gists_url":"https://api.github.com/users/8lall0/gists{/gist_id}","starred_url":"https://api.github.com/users/8lall0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/8lall0/subscriptions","organizations_url":"https://api.github.com/users/8lall0/orgs","repos_url":"https://api.github.com/users/8lall0/repos","events_url":"https://api.github.com/users/8lall0/events{/privacy}","received_events_url":"https://api.github.com/users/8lall0/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-24T12:37:11Z","updated_at":"2018-10-29T15:56:47Z","closed_at":"2018-10-29T15:56:47Z","author_association":"NONE","body":"### Summary of problem or feature request\r\n\r\nThe putTemplate() method simply doesn't do anything. Maybe i'm doing something wrong, but documentation is basically absent (or i didn't find it)\r\n\r\n### Code snippet of problem\r\n\r\n```php\r\n$data = [\r\n\t\t\t'name' => 'testTemplate',\r\n\t\t\t'body' => [\r\n\t\t\t\t'template' => 'testTemplate-*',\r\n\t\t\t\t'mappings' => [\r\n\t\t\t\t\t'foo' => 'string',\r\n\t\t\t\t\t'bar' => 'string',\r\n\t\t\t\t],\r\n\t\t\t],\r\n\t\t];\r\n\r\n$this->client = ClientBuilder::create()\r\n\t\t->allowBadJSONSerialization()\r\n\t\t->setHosts($host)\r\n\t\t->build();\r\n$this->client->putTemplate($data);\r\n```\r\n\r\n### System details\r\n\r\n* Wamp64 on Windows 10\r\n* PHP 5.6\r\n* ES-PHP 5.x\r\n* ElasticSearch 5.6.8"},"comment":{"url":"https://api.github.com/repos/elastic/elasticsearch-php/issues/comments/433966394","html_url":"https://github.com/elastic/elasticsearch-php/issues/815#issuecomment-433966394","issue_url":"https://api.github.com/repos/elastic/elasticsearch-php/issues/815","id":433966394,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMzk2NjM5NA==","user":{"login":"8lall0","id":971324,"node_id":"MDQ6VXNlcjk3MTMyNA==","avatar_url":"https://avatars0.githubusercontent.com/u/971324?v=4","gravatar_id":"","url":"https://api.github.com/users/8lall0","html_url":"https://github.com/8lall0","followers_url":"https://api.github.com/users/8lall0/followers","following_url":"https://api.github.com/users/8lall0/following{/other_user}","gists_url":"https://api.github.com/users/8lall0/gists{/gist_id}","starred_url":"https://api.github.com/users/8lall0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/8lall0/subscriptions","organizations_url":"https://api.github.com/users/8lall0/orgs","repos_url":"https://api.github.com/users/8lall0/repos","events_url":"https://api.github.com/users/8lall0/events{/privacy}","received_events_url":"https://api.github.com/users/8lall0/received_events","type":"User","site_admin":false},"created_at":"2018-10-29T15:56:47Z","updated_at":"2018-10-29T15:56:47Z","author_association":"NONE","body":"Nice and neat, thanks!"}}
{"actor":{"display_login":"8lall0"}}