Set a given webhook's callback url
@link https://trello.com/docs/api/webhook/#put-1-webhooks-idwebhook-callbackurl

@param string $id  the webhook's id
@param string $url the webhook's callback url

@return array
497338
public function setCallbackUrl($id, $url)
    {
        return $this->put($this->getPath().'/'.rawurlencode($id).'/callbackUrl', array('value' => $url));
    }
544905
public function remove($id, $webhookId)
    {
        return $this->delete($this->getPath($id).'/'.rawurlencode($webhookId));
    }
936297
public function setSiteId( $id )
	{
		if ( $id === $this->getSiteId() ) { return; }

		$this->_values['siteid'] = (int) $id;
		$this->_sitePath = array( (int) $id );
		$this->_siteSubTree = array( (int) $id );

		/** @todo: Wrong site item shouldn't be available any more but causes problems in controller */
		// $this->_site = null;

		$this->setModified();
	}
280155
def update!
      client.put("/webhooks/#{id}", {
        description: description,
        idModel: id_model,
        callbackURL: callback_url,
        active: active
      })
    end
1124768
public function setWebHook($url)
    {
        $this->data->notification = new stdClass;
        $this->data->notification->webhook = new stdClass;
        $this->data->notification->webhook->url = $url;

        return $this;
    }
1139618
def putWebhook(self, hook_id, external_id, url, event_types):
        """"""
        path = 'notification/webhook'
        payload = {'id': hook_id, 'externalId': external_id,
                   'url': url, 'eventTypes': event_types}
        return self.rachio.put(path, payload)
1080643
public function setUrl($url)
    {
        $relation = new RelationLink();
        $relation
            ->setRelationType('self')
            ->setUrl($url);
        return $this->setRelation($relation);
    }
1217189
private function _put($url, &$json)
    {
        curl_setopt($this->_curlHandle, CURLOPT_CUSTOMREQUEST, 'PUT');
        return $this->_curlHelper($url, $json);
    }
796024
def get_by_id(self, webhook, params={}, **options): 
        
        path = "/webhooks/%s" % (webhook)
        return self.client.get(path, params, **options)
887453
public function show($id)
    {
        $webhook = $this->client->get(
            sprintf('buckets/%d/webhooks/%d.json', $this->bucket, $id)
        );
        $webhook = new Webhook($this->response($webhook));
        $webhook->inContext($this->bucket);

        return $webhook;
    }
1340224
public static function set_url( $url ) {
		self::debug( 'Set URL: ' . $url, 'bootstrap' );
		$url_parts = Utils\parse_url( $url );
		self::set_url_params( $url_parts );
	}
13082
public function update($id, EventCallbackUrl $eventCallbackUrl)
    {
        $response = $this->mailjet->put(Resources::$Eventcallbackurl, ['id' => $id, 'body' => $eventCallbackUrl->format()]);
        if (!$response->success()) {
            $this->throwError("EventCallbackUrlService:update() failed", $response);
        }

        return $response->getData();
    }
1349393
public function setCallbackURL($url)
    {
    	// Sequence validation
        $this->ensureIsProxy();
    	// Argument Validation
    	if (gettype($url) != 'string')
        	throw new CAS_TypeMismatchException($url, '$url', 'string');

        return $this->_callback_url = $url;
    }
181311
function(webhookId, callback) {
      utils.debug('Webhooks get: ' + webhookId);
      request.get({
        path: '/webhooks/' + utils.toUUID(webhookId),
      }, callback);
    }
1245175
function post($url, $data, $callback = null)
    {
        $ret = new CoURLResult($url, $callback, $this->handle);
        $ret->method = self::METHOD_POST;
        $ret->data = $data;
        $this->requests[$ret->id] = $ret;
        return $ret;
    }
781261
public function addIndex(string $id, callable $callback): self
    {
        $index = new MapIndex($callback);

        foreach ($this->elements as $key => $element) {
            $index->add($key, $element);
        }

        $this->indexes[$id] = $index;

        return $this;
    }
14669
public function addUrl($name, $url)
    {
        $this->arguments[] = 'set-url';
        $this->arguments[] = '--add';
        $this->arguments[] = $name;
        $this->arguments[] = $url;
        return $this;
    }