Endpoint
Headers
| Header | Required | Description |
|---|---|---|
Content-Type | Yes | Must be application/json |
x-magna-api-token | Yes | Your Magna API token |
Path Parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
allocation_id | Yes | string | The unique identifier of the allocation to modify |
Request Body
| Field | Required | Type | Description |
|---|---|---|---|
hideAllocationFromPortal | No | boolean | Controls whether the allocation is visible in the stakeholder portal |
walletAddress | No | string | Wallet address for the allocation. Can only be modified for allocations with NOT_STARTED state |
customAttributes | No | array | Array of custom key-value pairs for additional allocation metadata |
customAttributes[].key | Yes* | string | The attribute key (*required if customAttributes is provided) |
customAttributes[].value | Yes* | string | The attribute value (*required if customAttributes is provided) |
Important Notes
- Wallet Address Restriction: The
walletAddressfield can only be modified for allocations that have not yet started (state:NOT_STARTED). Attempting to modify the wallet address for started allocations will result in an error. - All fields are optional, allowing you to update only the specific properties you need to change.
Example Request
Example Response
Response Fields
The response returns the complete updated allocation object with the following structure:isProcessed: Boolean indicating if the request was successfully processedresult: The updated allocation object containing all allocation details including the modifications made
Error Responses
- 400 Bad Request: Invalid request body or attempting to modify wallet address for a started allocation
- 401 Unauthorized: Invalid or missing API token
- 404 Not Found: Allocation with the specified ID does not exist
- 422 Unprocessable Entity: Validation errors in the request body