cURL
curl --request PATCH \ --url https://schoolmaker.co/api/v1/offers/{id} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "<string>", "description": "<string>", "is_published": true }'
{ "id": "<string>", "name": "<string>", "description": "<string>", "prices": [ { "id": "<string>", "amount": 123, "currency": "<string>" } ], "created_at": "2023-11-07T05:31:56Z" }
Updates offer’s name, description, and publish status.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Updated offer details
The response is of type object.
object