PUT
/
v1
/
offers
/
{offer}
cURL
curl --request PUT \
  --url https://api.comm.com/api/v1/offers/{offer} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "url": "<string>",
  "profit": 123
}'
{
  "data": {
    "id": "<string>",
    "name": "<string>",
    "url": "<string>",
    "profit": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_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

offer
string<uuid>
required

The offer ID

Body

application/json

Response

200
application/json

OfferResource

The response is of type object.