PATCH
https://api.octopush.com/v1/public/subaccount/*****@sub-accounts.com/editEncoding : UTF-8
Authentification
Your “api-key” and “api-login” identifiers must be added in the headers.
Definition
This service allows you to edit the fields of a sub-account.
Special parameters
Name | Type | Description |
---|---|---|
first_name | string | First name to be associated with the sub-account. |
last_name | string | Last name to be associated with the sub-account. |
password | string | Sub-account password |
company_name | string | (optional) Company name. |
callbacks | object | Object containing callback URLs. |
callback_url_for_deliveries | string | URL where you would like to receive DR callbacks. |
callback_url_for_blacklisted_numbers | string | URL where you would like to receive unsubscribe requests (stops). |
callback_url_for_visits | string | URL where you would like to receive callbacks for visits. |
callback_url_for_inbounds | string | URL where you would like to receive inbound messages callbacks. |
email_for_inbounds | string | Email address to which you would like incoming messages to be forwarded. |
Curl Example
curl -X PATCH \ 'https://api.octopush.com/v1/public/subaccount/*****@sub-accounts.com/edit' \ -H 'Content-Type: application/json' \ -H 'api-login: ******@email.org' \ -H 'api-key: ************' \ -H 'cache-control: no-cache' \ -d '{ "first_name":"Leonardo", "last_name": "Da Vinci", "company_name": "Italy", "password": "**********", "callbacks": { "callback_url_for_inbounds": "https://mywebhook.dns/webhook-1", "callback_url_for_deliveries": "https://mywebhook.dns/webhook-2", "callback_url_for_blacklisted_numbers": "https://mywebhook.dns/webhook-3", "callback_url_for_visits": "https://mywebhook.dns/webhook-4", "email_for_inbounds": "[email protected]" } }'
Command to copy/paste
curl -X PATCH 'https://api.octopush.com/v1/public/subaccount/*****@sub-accounts.com/edit' -H 'Content-Type: application/json' -H 'api-login: ******@email.org' -H 'api-key: ************' -H 'cache-control: no-cache' -d '{"first_name":"Leonardo", "last_name": "Da Vinci", "company_name": "Italy", "password": "**********", "callbacks": {"callback_url_for_inbounds": "https://mywebhook.dns/webhook-1", "callback_url_for_deliveries": "https://mywebhook.dns/webhook-2", "callback_url_for_blacklisted_numbers": "https://mywebhook.dns/webhook-3", "callback_url_for_visits": "https://mywebhook.dns/webhook-4", "email_for_inbounds": "[email protected]"}}'