function put($id, $payload)
    {
        $this->requestDecorator->setId($id);
        $this->requestDecorator->setPayload($payload);
        if ((is_array($payload)) && (!empty($payload['sys']['version']))) {
            $this->requestDecorator->addHeader('X-Contentful-Version', $payload['sys']['version']);
        }
        $result = $this->client->put($this->requestDecorator->makeResource(), $this->requestDecorator->makePayload(), $this->requestDecorator->makeHeaders());
        $this->refresh();
        return $result;
    }