Request:
mutation {
createAllocation (
input: {
allocation: {
roundId: "3fb91ee2-eb13-4308-b4ca-1c968a6546a4"
name: "Domestic Investors"
opensOn: "2022-01-01"
closesOn: "2022-03-31"
}
}
) {
allocation {
id
}
}
}
Response:
{
"data": {
"createAllocation": {
"allocation": {
"id": "abb668d2-63d2-43dd-b495-b1e413a69427"
}
}
}
}
An allocation is a grouping of distributions within a round that allows the issuer to distinguish groups of investors within a round, for example, domestic vs other, or tokenized vs non-tokenized.
In this example, the mutation creates a new allocation (a grouping of investment under a round) that is associated with the round created in the previous example. The ID of the newly created allocation is returned in the payload. Note that the round ID returned from the previous example of the creation of a round is used in the creation of the allocation; this joins the allocation to the round.