Offers

POST

Update Offer

Update an existing offer. Use POST method with _method=PATCH for file uploads.

Required Permission: Edit Offer
POST /offers/{id}

Request Body

JSON

    

Request Parameters

Parameter Type Required Validation Description
_method String Required PATCH Method spoofing for file uploads
title String Required string, max:255, unique Title of the offer
description String Required string Description of the offer
start_date Date Optional date Start date of the offer
end_date Date Optional date, after_or_equal:start_date End date of the offer
thumbnail_image File Optional image, mimes:jpeg,png,jpg,webp, max:2048 Thumbnail image file
featured_image File Optional image, mimes:jpeg,png,jpg,webp, max:2048 Featured image file
status Boolean Optional boolean Status (0 or 1)

Response

200 OK
Status Code
HTTP status code (200)
Message
Human-readable description
Data
Updated offer details