Skip to content
Orillion logo
Soramitsu logo

Assembling a contribution flag

Protocol: HTTP

EncodingJSON

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

MethodPATCH

Parameters: —

Input/request structure:

Show
json5
{
  assetIds: [
    {
      definitionId: 'Id_range#domain', //IP/telephone number/IMEI
      accountId: 'user@peerId'
    }
  ]
}
{
  assetIds: [
    {
      definitionId: 'Id_range#domain', //IP/telephone number/IMEI
      accountId: 'user@peerId'
    }
  ]
}

Output/response structure:

Show
json5
{
  status: {
    code: 0, //integer($int32)
    name: 'string',
    message: 'string'
  },
  data: 'string'
}
{
  status: {
    code: 0, //integer($int32)
    name: 'string',
    message: 'string'
  },
  data: 'string'
}

Responses

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