Skip to content

Submit a flag​

PATCH
/data/api/v1/contribution-management/contribution/flag

Applies a signed flag transaction: the named records become Flagged. The body is the signed transaction as hex, as plain text. Do not wrap it in JSON quotes.

The reward is paid per identifier of every flagged record, at the flagging rate of the caller's company type. Records the company uploaded itself, or that name it as the source, are flagged without a reward. A record can be flagged once. When one record of the transaction cannot be flagged, nothing is flagged.

Sending the same signed transaction again within 30 days returns the first answer and changes nothing.

Authorizations​

bearerAuth

The accessToken of a sign-in or refresh answer. Valid for 5 minutes.

Type
HTTP (bearer)

Request Body​

text/plain
JSON
"04a1b2c3d4e5f60718293a4b5c6d7e8f04a1b2c3d4e5f60718293a4b5c6d7e8f"

Responses​

The flag is applied.

application/json
JSON
{
  
"status": {
  
  
"code": 0,
  
  
"name": "Ok"
  
},
  
"data": {
  
  
"rewarded": 10
  
}
}

Samples​

Powered by VitePress OpenAPI