POST
/
admin
/
api
/
v1
/
codes
cURL
curl --request POST \
  --url https://merits.blockscout.com/admin/api/v1/codes \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "code": "<string>",
  "bonus": "<string>",
  "limit": 123
}'
{
  "code": "<string>"
}

Authorizations

Authorization
string
header
required

Authentication token, prefixed by Bearer: Bearer <token>

Body

application/json

Response

200
application/json

A successful response.

The response is of type object.