Skip to content

Commit

Permalink
Update Offer Method Fixed #12
Browse files Browse the repository at this point in the history
Update Offer Method Fixed
  • Loading branch information
bhanwarpsrathore authored Oct 11, 2024
2 parents f4dca8a + 13e6304 commit dded0ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/LabelcampAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -988,11 +988,11 @@ public function createOffer(array $attributes, array $relationships): array {
* @return array
*/
public function updateOffer(string $offer_id, array $attributes, array $relationships): array {
$uri = '/offers' . $offer_id;
$uri = '/offers/' . $offer_id;

$request_data = $this->getResource("offers", $offer_id, $attributes, $relationships);

$this->lastResponse = $this->apiRequest('POST', $uri, $request_data);
$this->lastResponse = $this->apiRequest('PUT', $uri, $request_data);

return $this->lastResponse['body'];
}
Expand Down

0 comments on commit dded0ca

Please sign in to comment.