curl --request POST \
--url https://api.comm.com/api/v1/offers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "Offer name",
"url": "http://offerurl.com",
"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"
}
}
curl --request POST \
--url https://api.comm.com/api/v1/offers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "Offer name",
"url": "http://offerurl.com",
"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"
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
OfferResource
The response is of type object
.