Update Ssp settings

Update Ssp settings

PATCH https://api.ocamba.com/v2/adex/ssp/settings
Updates the Ssp settings by setting the values of the parameters passed. Any parameters not provided will be left unchanged

Request schema

body

Response schemas

204
No Content
curl -X PATCH \
 "https://api.ocamba.com/v2/adex/ssp/settings" \
  -H "Authorization: Bearer {TOKEN}" \
  -H "Content-Type: application/json" \
  -d '{
  "general": {
    "domain": "example.com",
    "automatic_approval": {
      "advertiser": true,
      "publisher": false
    }
  },
  "appearance": {
    "logo": "https://dev-example.com/path/to/logo.jpg",
    "theme": [
      "dark",
      "light"
    ]
  },
  "notifications": {
    "recipients": [
      "[email protected]"
    ],
    "verify": {
      "sender": "[email protected]",
      "subject": "VERIFY",
      "data": {
        "logo": "https://sm.ocmcore.com/share/6197120/adex/media/3768765556-1675085214643-image",
        "support_email": "[email protected]",
        "signature": "Example Team"
      }
    },
    "welcome": {
      "sender": "Example",
      "subject": "WELCOME",
      "data": {
        "logo": "https://sm.ocmcore.com/share/6197120/adex/media/3768765556-1675085214643-image",
        "ssp_name": "Example SSP",
        "support_email": "[email protected]",
        "signature": "Example Team"
      }
    }
  }
}'
const url = 'https://api.ocamba.com/v2/adex/ssp/settings';
const options = {
  method: 'PATCH',
  headers: {
    Authorization: "Bearer {TOKEN}",
    'Content-Type': "application/json"
  },
  body: JSON.stringify(
    {
      "general": {
        "domain": "example.com",
        "automatic_approval": {
          "advertiser": true,
          "publisher": false
        }
      },
      "appearance": {
        "logo": "https://dev-example.com/path/to/logo.jpg",
        "theme": [
          "dark",
          "light"
        ]
      },
      "notifications": {
        "recipients": [
          "[email protected]"
        ],
        "verify": {
          "sender": "[email protected]",
          "subject": "VERIFY",
          "data": {
            "logo": "https://sm.ocmcore.com/share/6197120/adex/media/3768765556-1675085214643-image",
            "support_email": "[email protected]",
            "signature": "Example Team"
          }
        },
        "welcome": {
          "sender": "Example",
          "subject": "WELCOME",
          "data": {
            "logo": "https://sm.ocmcore.com/share/6197120/adex/media/3768765556-1675085214643-image",
            "ssp_name": "Example SSP",
            "support_email": "[email protected]",
            "signature": "Example Team"
          }
        }
      }
    }
  )
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
$ch = curl_init("https://api.ocamba.com/v2/adex/ssp/settings");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
  "Authorization: Bearer {TOKEN}",
  "Content-Type: application/json"
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode(
  [
    "general" => [
      "domain" => "example.com",
      "automatic_approval" => [
        "advertiser" => true,
        "publisher" => false
      ]
    ],
    "appearance" => [
      "logo" => "https://dev-example.com/path/to/logo.jpg",
      "theme" => [
        "dark",
        "light"
      ]
    ],
    "notifications" => [
      "recipients" => [
        "[email protected]"
      ],
      "verify" => [
        "sender" => "[email protected]",
        "subject" => "VERIFY",
        "data" => [
          "logo" => "https://sm.ocmcore.com/share/6197120/adex/media/3768765556-1675085214643-image",
          "support_email" => "[email protected]",
          "signature" => "Example Team"
        ]
      ],
      "welcome" => [
        "sender" => "Example",
        "subject" => "WELCOME",
        "data" => [
          "logo" => "https://sm.ocmcore.com/share/6197120/adex/media/3768765556-1675085214643-image",
          "ssp_name" => "Example SSP",
          "support_email" => "[email protected]",
          "signature" => "Example Team"
        ]
      ]
    ]
  ]
));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);

Responses

204 No Content

Responses