Skip to main content
POST
/
api
/
v1
/
accounts
/
{accountId}
/
deployments
Create Deployments
curl --request POST \
  --url https://api.example.com/api/v1/accounts/{accountId}/deployments \
  --header 'Content-Type: application/json' \
  --data '
{
  "widgetId": "<string>",
  "deployments": [
    {
      "widgetConfigurationDistributions": [
        {
          "widgetConfigurationId": "<string>",
          "distributionPercentage": 123
        }
      ],
      "environmentId": "<string>"
    }
  ]
}
'
{
  "deployments": [
    {
      "id": "<string>",
      "environmentId": "<string>",
      "widgetConfigurationDistributions": [
        {
          "widgetConfigurationId": "<string>",
          "distributionPercentage": 123
        }
      ]
    }
  ]
}

Path Parameters

accountId
string
required

The ID of the account

Body

application/json
widgetId
string
required
deployments
object[]
required

Array of deployment configurations

Response

deployments
object[]
required