Skip to main content
PATCH
/
api
/
user
/
distribution
/
allocations
Update distribution allocations
curl --request PATCH \
  --url https://api.sandbox.bitwage.com/api/user/distribution/allocations \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "user_id": "<string>",
  "allocations": [
    {
      "distribution_id": "<string>",
      "allocation": 50
    }
  ]
}
'
{
  "updated": [
    {
      "distribution_id": "<string>",
      "allocation": 50
    }
  ]
}

Authorizations

Authorization
string
header
required

API key authentication. Include your access token as: Authorization: Basic <ACCESS_TOKEN>

Body

application/json
user_id
string
required
allocations
object[]
required

Total allocation across all items must equal exactly 100.

Required array length: 1 - 3 elements

Response

200 - application/json

Allocations updated.

updated
object[]