Add Support for PATCH method
For now implementation is done in Prefixes only, more to come.
This commit is contained in:
parent
025a7edacb
commit
9a5bb016bc
3 changed files with 41 additions and 0 deletions
|
|
@ -39,6 +39,17 @@ class Prefixes extends AbstractApi
|
|||
return $this->put("/ipam/prefixes/" . $id . "/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $id
|
||||
* @param array $params
|
||||
* @return array
|
||||
* @throws GuzzleException
|
||||
*/
|
||||
public function update(int $id, array $params = []): array
|
||||
{
|
||||
return $this->patch("/ipam/prefixes/" . $id . "/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $params
|
||||
* @return mixed
|
||||
|
|
|
|||
Loading…
Add table
editor.link_modal.header
Reference in a new issue