POST
/
accounts
/
{account_id}
/
edit_schedules
curl --request POST \
  --url https://api.togai.com/accounts/{account_id}/edit_schedules \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "edits": [
    {
      "mode": "ASSOCIATE",
      "pricePlanId": "pp.1zYnCiM9Bpg.lv25y",
      "effectiveFrom": "2022-07-04",
      "effectiveUntil": "2022-10-04"
    },
    {
      "mode": "DISASSOCIATE",
      "effectiveFrom": "2022-08-04",
      "effectiveUntil": "2022-09-04"
    }
  ]
}'
{
  "accountId": "G234DZZKBKACATFFGVGEMERFI",
  "accountName": "ACME Enterprise - Account2",
  "pricingSchedules": [
    {
      "pricePlanId": "pp.1zYnCiM9Bpg.lv25y",
      "startDate": "2022-12-02T00:00:00Z",
      "endDate": "9999-01-01T00:00:00Z"
    }
  ]
}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

account_id
string
required

account_id corresponding to an account

Body

application/json
edits
object[]
required

Response

200 - application/json
accountId
string
required

Identifier of the account

accountName
string
required

Name of the Account

pricingSchedules
object[]
required