Edit subaccount
documentedEdit a sub-account's fields.
PATCH /v1/public/subaccount/{email}/editAPI Subaccountsno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://api.octopush.com/v1/public/subaccount/{{$email}}/edit" \
-X PATCH \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "api-login: {{OCTOPUSH_API_LOGIN}}" \
-H "api-key: {{OCTOPUSH_API_KEY}}" \
-d '{"first_name":"{{$first_name}}","last_name":"{{$last_name}}","password":"{{$password}}","company_name":"{{$company_name}}","callbacks":{"callback_url_for_inbounds":"{{$callback_url_for_inbounds}}","callback_url_for_deliveries":"{{$callback_url_for_deliveries}}","callback_url_for_blacklisted_numbers":"{{$callback_url_for_blacklisted_numbers}}","callback_url_for_visits":"{{$callback_url_for_visits}}","email_for_inbounds":"{{$email_for_inbounds}}"}}'