Skip to content

Assembling a contribution flag ​

Assembles a contribution flag that must be later submitted in order to flag a contribution as a False Positive.
For details, see Contributions: Flagging contributions.

Protocol: HTTP

Encoding: JSON

Endpoint: /data/api/v1/contribution-manager/contribution/flag/assemble

Method: PATCH

Header: Authorization — represented by a string that is the accessToken value that was returned either at the authorization, or the previous time the token has been refreshed.

Input/request structure ​

Show
json5
{
  assetDefinitionIds: ['string']
}
{
  assetDefinitionIds: ['string']
}
json5
{
  assetDefinitionIds: ['+79991234567_12345#contribution']
}
{
  assetDefinitionIds: ['+79991234567_12345#contribution']
}

Output/response structure ​

Show
json5
{
  status: {
    code: integer($int32),
    name: 'string'
  },
  data: 'transactionHex'
}
{
  status: {
    code: integer($int32),
    name: 'string'
  },
  data: 'transactionHex'
}
json5
{
  status: {
    code: 200,
    name: 'OK'
  },
  data: 'ecd5253b23902f3f1a9e6a62d092d9911ef8f663737f215188062679fd895bd0e07d2858a80ccf30e341c68c651dc50f87d4782f5e5f35a31649f0979eaf4c46141133e4ae298da96295da8299edc3467a2929603caf77abeb9e81175516c997fff943a63fece49f8613a983b7481faaeedf885babd5d0dc47cf1cd990c104fe'
}
{
  status: {
    code: 200,
    name: 'OK'
  },
  data: 'ecd5253b23902f3f1a9e6a62d092d9911ef8f663737f215188062679fd895bd0e07d2858a80ccf30e341c68c651dc50f87d4782f5e5f35a31649f0979eaf4c46141133e4ae298da96295da8299edc3467a2929603caf77abeb9e81175516c997fff943a63fece49f8613a983b7481faaeedf885babd5d0dc47cf1cd990c104fe'
}

Responses ​

Response CodeDescription
200Contribution flag has been assembled and its transactionHex string has been retrieved successfully.
400The request body of the contribution flag is incorrect or premium contribution can't be changed.
401accessToken is either expired or invalid.
404Asset not found.
500Internal server error.