Skip to main content
PATCH
/
allocations
/
{id}
Update Allocation
curl --request PATCH \
  --url https://app.conduit.io/api/allocations/{id} \
  --header 'Content-Type: application/json' \
  --cookie session= \
  --data '
{
  "shares": "<string>",
  "currentValue": "<string>",
  "status": "active",
  "withdrawTxHash": "<string>",
  "withdrawBlockNumber": 123,
  "withdrawnAt": "2023-11-07T05:31:56Z",
  "valueUpdatedAt": "2023-11-07T05:31:56Z"
}
'
{
  "allocation": {
    "id": "<string>",
    "organizationId": "<string>",
    "accountId": "<string>",
    "strategyId": "<string>",
    "shares": "<string>",
    "depositedAmount": "<string>",
    "token": "usdc",
    "chainId": 1,
    "status": "active",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "transactionId": "<string>",
    "currentValue": "<string>",
    "depositTxHash": "<string>",
    "depositBlockNumber": 123,
    "withdrawTxHash": "<string>",
    "withdrawBlockNumber": 123,
    "depositedAt": "2023-11-07T05:31:56Z",
    "withdrawnAt": "2023-11-07T05:31:56Z",
    "valueUpdatedAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

session
string
cookie
required

Session-based authentication via cookies

Path Parameters

id
string
required

Allocation ID

Body

application/json
shares
string

Updated number of shares

currentValue
string

Updated current value

status
enum<string>

Allocation status

Available options:
active,
withdrawn,
failed
withdrawTxHash
string

Withdrawal transaction hash

withdrawBlockNumber
integer

Withdrawal block number

withdrawnAt
string<date-time>

Withdrawal timestamp (ISO 8601)

valueUpdatedAt
string<date-time>

Value update timestamp (ISO 8601)

Response

Allocation updated successfully

allocation
object