PATCH
/
offers
/
{id}
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"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Body

application/json
name
string
description
string
is_published
boolean

Response

200 - application/json
Updated offer details
id
string
name
string
description
string
prices
object[]
created_at
string