削除
指定した旧ブラウザ転送サブアカウント設定を削除します。
Request Interface
HTTP Request
DELETE /secondary-account/definition/{secondaryAccountId}
Parameter
Request Parameter |
Value |
Required |
Description |
Default Value |
---|---|---|---|---|
secondaryAccountId |
string |
true |
ID to specify a previous secondary account for Browser Transfer |
|
Authorization
Management Console の [API キー管理] 画面の「スコープ」で、「旧ブラウザ転送サブアカウント設定」の「削除」を選択する必要があります。
Response Interface
リクエストが正常に処理された場合、レスポンスボディは返却されません。
Examples
public static void main(String[] args) { String host = "https://www.webconnect.hulft.com"; String apiKey = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; try { String secondaryAccountId = "xxxxxxxx"; URL url = new URL(host + "/api/v2/secondary-account/definition/" + secondaryAccountId); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("DELETE"); connection.setRequestProperty("Authorization", "Bearer " + apiKey); System.out.println(connection.getResponseMessage()); // The response does not contain the response body. } catch (IOException ex) { // error } }
// load jquery var host = 'https://www.webconnect.hulft.com'; var apiKey = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'; var secondaryAccountId = 'xxxxxxxx'; $.ajax({ type: 'DELETE', url: host + '/api/v2/secondary-account/definition/' + secondaryAccountId , headers: { Authorization: 'Bearer ' + apiKey } }).done(function(data, status, xhr) { console.log(data); }).fail(function(data, status, xhr) { console.log(data); });