Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Updated Mon Feb 6th 2023, 19:36 UTC

Assign

GET /:account/account_plans/:plan

Some Account Plans are assignable to sub accounts. This allows defining what accounts a subscription needs to be assigned to and the quantity for each.

Examples

Assign Account Plan Licenses

Request

PUT /textus/account_plans/Ambg36B

Body

{
  "assignments": [
    { "account": "/accounts/my_account", "quantity": 1 }
  ]
}
Example
$ curl -i -H Accept:"application/vnd.textus+jsonld" \
    -H Authorization:"Bearer {token}" \
    -X PUT /textus/account_plans/Ambg36B
    -d '{
  "assignments": [
    { "account": "/accounts/my_account", "quantity": 1 }
  ]
}'

Response

Status

200

Response Type

AccountPlan

Example Body

{
  "@type": "AccountPlan",
  "@context": "/contexts/AccountPlan.jsonld",
  "id": "/my_account/account_plans/6NvZNG",
  "name": "Pro Msg Account: Up to 2k Msg/Month",
  "type": "message",
  "shared": false,
  "assignable": true,
  "quantity": 2,
  "size": 2000,
  "effectiveStartDate": "2021-11-15",
  "effectiveEndDate": "2022-09-01",
  "assignments": [
    {
      "account": "/accounts/single-user-account-dev",
      "quantity": 1
    },
    {
      "account": "/accounts/bandwidth-v2-dev",
      "quantity": 1
    }
  ]
}

© 2023 TextUs