---
title: "Replace a distribution"
description: "The body is the whole distribution; what's left out takes its default. If-Match with the ETag answers 412 when it changed since."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.ezghcloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

Path: CDN API

`PUT /v1/organizations/{orgId}/projects/{projectId}/distributions/{distributionId}`

The body is the whole distribution; what's left out takes its default. If-Match with the ETag answers 412 when it changed since.

## Authentication

Requires one of the following:

- `apiKey`, http, header `Authorization`
- `oauth`, http, header `Authorization`
- `sessionCookie`, apiKey, in cookie

## Path parameters

- `UpdateDistribution.path.orgId` (string, required) — UUID or prefixed ID (org_…)
- `UpdateDistribution.path.projectId` (string, required) — UUID or prefixed ID (prj_…)
- `UpdateDistribution.path.distributionId` (string, required) — UUID or prefixed ID (cdn_…)

## Header parameters

- `UpdateDistribution.header.If-Match` (string, optional) — The ETag from a read: 412 precondition_failed when the distribution changed since.

## Request body

_Required._

- `UpdateDistribution.name` (string, required)
  - minLength 1; maxLength 100
- `UpdateDistribution.origin` (object, required) — Either host and protocol (with port and hostHeader optional), or bucket alone.
  - `UpdateDistribution.origin.bucket` (string | null, optional) — An Object Storage bucket of this organization, by name, read privately: the bucket's settings must list this distribution in cdnDistributions. Only GET and HEAD of an object are served. Can't be combined with the other fields.
    - pattern `^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$`
  - `UpdateDistribution.origin.host` (string, optional) — A public DNS name, IPv4 address or IPv6 address (canonical form, no brackets). Edges connect over IPv4 when the name has an A record and over IPv6 otherwise. Private, loopback and EZGH platform addresses are refused, here and at the edge after every DNS resolution.
  - `UpdateDistribution.origin.hostHeader` (unknown, optional) — The Host header sent to the origin: the viewer's, or host.
    - one of `"viewer"`, `"origin"`, `null`; default `"viewer"`
  - `UpdateDistribution.origin.port` (integer | null, optional) — Default 443 for https, 80 for http.
    - min 1; max 65535
  - `UpdateDistribution.origin.protocol` (unknown, optional) — With https, the origin's certificate is verified against host.
    - one of `"http"`, `"https"`
- `UpdateDistribution.description` (string | null, optional)
  - maxLength 1000
- `UpdateDistribution.domains` (array | null, optional) — Your own domains, at most 10. A hostname is served by one distribution at a time: one another distribution has, or had until every edge stopped serving it, is 409.
- `UpdateDistribution.enabled` (boolean | null, optional)
  - default `true`
- `UpdateDistribution.rewrites` (array | null, optional) — Path rewrites, at most 10, tried in order: the first whose pattern matches the request's path wins, and a path none matches is sent to the origin as it is. Left out of a replace, the distribution has none.
- `UpdateDistribution.sso` (one of, optional) — Sign-in with EZGH SSO. Left out of a replace, it's turned off.
  - one of: [SSOInput](/cdn-api/schemas/SSOInput/), `null`
- `UpdateDistribution.tags` (one of, optional)
  - one of: [Tags](/cdn-api/schemas/Tags/), `null`
- `UpdateDistribution.waf` (one of, optional) — Attach a WAF (needs waf.wafs.attach on it), or null to detach one. Left out of a replace, the attached WAF stays.
  - one of: [DistributionWAFInput](/cdn-api/schemas/DistributionWAFInput/), `null`

## Example request

```json
{
  "description": "string",
  "domains": [
    {
      "certificateId": "string",
      "hostname": "string"
    }
  ],
  "enabled": true,
  "name": "string",
  "origin": {
    "bucket": "string",
    "host": "string",
    "hostHeader": "viewer",
    "port": 1,
    "protocol": "http"
  },
  "rewrites": [
    {
      "pattern": "string",
      "replacement": "string"
    }
  ],
  "sso": {
    "required": true
  },
  "tags": {
    "property1": "string",
    "property2": "string"
  },
  "waf": {
    "wafId": "string"
  }
}
```

## Code samples

### cURL

```curl
curl --request PUT \
  --url https://cdn.ezghcloud.com/v1/organizations/string/projects/string/distributions/string \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "description": "string",
  "domains": [
    {
      "certificateId": "string",
      "hostname": "string"
    }
  ],
  "enabled": true,
  "name": "string",
  "origin": {
    "bucket": "string",
    "host": "string",
    "hostHeader": "viewer",
    "port": 1,
    "protocol": "http"
  },
  "rewrites": [
    {
      "pattern": "string",
      "replacement": "string"
    }
  ],
  "sso": {
    "required": true
  },
  "tags": {
    "property1": "string",
    "property2": "string"
  },
  "waf": {
    "wafId": "string"
  }
}
'
```

### TypeScript

```typescript
const url = 'https://cdn.ezghcloud.com/v1/organizations/string/projects/string/distributions/string';
const options = {
  method: 'PUT',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({
    description: 'string',
    domains: [{certificateId: 'string', hostname: 'string'}],
    enabled: true,
    name: 'string',
    origin: {
      bucket: 'string',
      host: 'string',
      hostHeader: 'viewer',
      port: 1,
      protocol: 'http'
    },
    rewrites: [{pattern: 'string', replacement: 'string'}],
    sso: {required: true},
    tags: {property1: 'string', property2: 'string'},
    waf: {wafId: 'string'}
  })
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://cdn.ezghcloud.com/v1/organizations/string/projects/string/distributions/string"

payload = {
    "description": "string",
    "domains": [
        {
            "certificateId": "string",
            "hostname": "string"
        }
    ],
    "enabled": True,
    "name": "string",
    "origin": {
        "bucket": "string",
        "host": "string",
        "hostHeader": "viewer",
        "port": 1,
        "protocol": "http"
    },
    "rewrites": [
        {
            "pattern": "string",
            "replacement": "string"
        }
    ],
    "sso": { "required": True },
    "tags": {
        "property1": "string",
        "property2": "string"
    },
    "waf": { "wafId": "string" }
}
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

response = requests.put(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 200

The distribution.

#### Example

```json
{
  "createdAt": "2019-08-24T14:15:22Z",
  "defaultHostname": "string",
  "description": "string",
  "domains": [
    {
      "certificateId": "string",
      "hostname": "string"
    }
  ],
  "enabled": true,
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "name": "string",
  "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
  "origin": {
    "bucket": "string",
    "host": "string",
    "hostHeader": "viewer",
    "port": 0,
    "protocol": "http"
  },
  "projectId": "5a8591dd-4039-49df-9202-96385ba3eff8",
  "region": "string",
  "resourceName": "string",
  "rewrites": [
    {
      "pattern": "string",
      "replacement": "string"
    }
  ],
  "slug": "string",
  "sso": {
    "applicationId": "string",
    "issuer": "string",
    "required": true
  },
  "status": "string",
  "tags": {
    "property1": "string",
    "property2": "string"
  },
  "updatedAt": "2019-08-24T14:15:22Z",
  "waf": {
    "status": "deploying",
    "version": 0,
    "wafId": "string"
  }
}
```

- `UpdateDistribution.response.200.createdAt` (string, required)
  - format `date-time`
- `UpdateDistribution.response.200.defaultHostname` (string, required) — d<12>.ezghcdn.com: CNAME your domains here. Never changes and is never reused.
- `UpdateDistribution.response.200.description` (string | null, required)
- `UpdateDistribution.response.200.domains` (array<object>, required)
  - `UpdateDistribution.response.200.domains.certificateId` (string, required)
  - `UpdateDistribution.response.200.domains.hostname` (string, required)
- `UpdateDistribution.response.200.enabled` (boolean, required) — false keeps the distribution, and edges refuse its hostnames with 421.
- `UpdateDistribution.response.200.id` (string, required)
  - format `uuid`
- `UpdateDistribution.response.200.name` (string, required)
- `UpdateDistribution.response.200.organizationId` (string, required)
  - format `uuid`
- `UpdateDistribution.response.200.origin` (object, required)
  - `UpdateDistribution.response.200.origin.bucket` (string | null, required) — The Object Storage bucket the distribution reads, by name; null for any other origin. host, port, protocol and hostHeader are then the bucket's S3 endpoint.
  - `UpdateDistribution.response.200.origin.host` (string, required)
  - `UpdateDistribution.response.200.origin.hostHeader` (unknown, required)
    - one of `"viewer"`, `"origin"`
  - `UpdateDistribution.response.200.origin.port` (integer, required)
  - `UpdateDistribution.response.200.origin.protocol` (unknown, required)
    - one of `"http"`, `"https"`
- `UpdateDistribution.response.200.projectId` (string, required)
  - format `uuid`
- `UpdateDistribution.response.200.region` (string, required)
- `UpdateDistribution.response.200.resourceName` (string, required)
- `UpdateDistribution.response.200.rewrites` (array<object>, required)
  - `UpdateDistribution.response.200.rewrites.pattern` (string, required) — A regular expression (RE2 syntax) matched against the request's path, anywhere in it unless anchored with ^ and $. ^/[^.]*$ matches every path without a dot.
    - minLength 1; maxLength 256
  - `UpdateDistribution.response.200.rewrites.replacement` (string, required) — The path sent to the origin instead, starting with /; $1 is the pattern's first capture group. The query string is kept, and the viewer's URL doesn't change. /index.html serves a single-page app's shell.
    - maxLength 256
- `UpdateDistribution.response.200.slug` (string, required)
- `UpdateDistribution.response.200.sso` (object, required)
  - `UpdateDistribution.response.200.sso.applicationId` (string | null, required) — The distribution's application in EZGH SSO, where its assignments decide who gets in. Read-only.
  - `UpdateDistribution.response.200.sso.issuer` (string | null, required) — Where people sign in now: the directory's custom sign-in domain when it has one. Null while sign-in refuses everyone because the directory was deleted. Read-only.
  - `UpdateDistribution.response.200.sso.required` (boolean, required) — Only people assigned to the distribution's application in the organization's EZGH SSO directory get through; anyone else is sent to sign in.
- `UpdateDistribution.response.200.status` (string, required) — deploying until every edge has the latest change, then deployed; clients treat others as unknown.
- `UpdateDistribution.response.200.tags` (map<string>, required) — At most 50; keys 1-128 characters, values at most 256, keys starting with ezgh: are reserved.
- `UpdateDistribution.response.200.updatedAt` (string, required)
  - format `date-time`
- `UpdateDistribution.response.200.waf` (one of, required) — The EZGH WAF the edges evaluate the distribution's requests against before the origin; null without one.
  - one of: [DistributionWAF](/cdn-api/schemas/DistributionWAF/), `null`

### 400

invalid_request (with issues), invalid_cursor, or the endpoint's own 400 codes.

#### Example

```json
{
  "error": {
    "code": "string",
    "issues": [
      {
        "message": "string",
        "path": "string"
      }
    ],
    "message": "string",
    "quota": {
      "id": "string",
      "inFlight": 0,
      "kind": "allocation",
      "limit": 0,
      "periodStart": "2019-08-24T14:15:22Z",
      "region": "string",
      "resetsAt": "2019-08-24T14:15:22Z",
      "scope": "organization",
      "scopeResourceName": "string",
      "used": 0,
      "window": "string"
    }
  }
}
```

- `UpdateDistribution.response.400.error` (object, required)
  - `UpdateDistribution.response.400.error.code` (string, required)
    - maxLength 64; pattern `^[a-z][a-z0-9_]*$`
  - `UpdateDistribution.response.400.error.message` (string, required)
    - maxLength 1024
  - `UpdateDistribution.response.400.error.issues` (array<object>, optional) — invalid_request: one entry per problem, at a dotted path.
    - `UpdateDistribution.response.400.error.issues.message` (string, required)
    - `UpdateDistribution.response.400.error.issues.path` (string, required)
  - `UpdateDistribution.response.400.error.quota` (object, optional) — quota_exceeded: the quota that refused the request. Never with Retry-After.
    - `UpdateDistribution.response.400.error.quota.id` (string, required)
    - `UpdateDistribution.response.400.error.quota.kind` (unknown, required)
      - one of `"allocation"`, `"rate"`, `"usage"`, `"concurrency"`
    - `UpdateDistribution.response.400.error.quota.limit` (integer, required)
      - min 0
    - `UpdateDistribution.response.400.error.quota.scope` (unknown, required)
      - one of `"organization"`, `"project"`, `"resource"`
    - `UpdateDistribution.response.400.error.quota.inFlight` (integer, optional)
      - min 0
    - `UpdateDistribution.response.400.error.quota.periodStart` (string, optional)
      - format `date-time`
    - `UpdateDistribution.response.400.error.quota.region` (string, optional)
    - `UpdateDistribution.response.400.error.quota.resetsAt` (string, optional)
      - format `date-time`
    - `UpdateDistribution.response.400.error.quota.scopeResourceName` (string, optional)
    - `UpdateDistribution.response.400.error.quota.used` (integer, optional)
      - min 0
    - `UpdateDistribution.response.400.error.quota.window` (string, optional) — rate only: an ISO 8601 duration, PT1S to PT1H.

### 401

unauthenticated: no credential, or one that doesn't check out.

#### Example

```json
{
  "error": {
    "code": "string",
    "issues": [
      {
        "message": "string",
        "path": "string"
      }
    ],
    "message": "string",
    "quota": {
      "id": "string",
      "inFlight": 0,
      "kind": "allocation",
      "limit": 0,
      "periodStart": "2019-08-24T14:15:22Z",
      "region": "string",
      "resetsAt": "2019-08-24T14:15:22Z",
      "scope": "organization",
      "scopeResourceName": "string",
      "used": 0,
      "window": "string"
    }
  }
}
```

- `UpdateDistribution.response.401.error` (object, required)
  - `UpdateDistribution.response.401.error.code` (string, required)
    - maxLength 64; pattern `^[a-z][a-z0-9_]*$`
  - `UpdateDistribution.response.401.error.message` (string, required)
    - maxLength 1024
  - `UpdateDistribution.response.401.error.issues` (array<object>, optional) — invalid_request: one entry per problem, at a dotted path.
    - `UpdateDistribution.response.401.error.issues.message` (string, required)
    - `UpdateDistribution.response.401.error.issues.path` (string, required)
  - `UpdateDistribution.response.401.error.quota` (object, optional) — quota_exceeded: the quota that refused the request. Never with Retry-After.
    - `UpdateDistribution.response.401.error.quota.id` (string, required)
    - `UpdateDistribution.response.401.error.quota.kind` (unknown, required)
      - one of `"allocation"`, `"rate"`, `"usage"`, `"concurrency"`
    - `UpdateDistribution.response.401.error.quota.limit` (integer, required)
      - min 0
    - `UpdateDistribution.response.401.error.quota.scope` (unknown, required)
      - one of `"organization"`, `"project"`, `"resource"`
    - `UpdateDistribution.response.401.error.quota.inFlight` (integer, optional)
      - min 0
    - `UpdateDistribution.response.401.error.quota.periodStart` (string, optional)
      - format `date-time`
    - `UpdateDistribution.response.401.error.quota.region` (string, optional)
    - `UpdateDistribution.response.401.error.quota.resetsAt` (string, optional)
      - format `date-time`
    - `UpdateDistribution.response.401.error.quota.scopeResourceName` (string, optional)
    - `UpdateDistribution.response.401.error.quota.used` (integer, optional)
      - min 0
    - `UpdateDistribution.response.401.error.quota.window` (string, optional) — rate only: an ISO 8601 duration, PT1S to PT1H.

### 403

access_denied: the caller's policies don't allow the action; forbidden_origin: a cookie-authenticated write from an origin that isn't allowed; spend_limit_reached.

#### Example

```json
{
  "error": {
    "code": "string",
    "issues": [
      {
        "message": "string",
        "path": "string"
      }
    ],
    "message": "string",
    "quota": {
      "id": "string",
      "inFlight": 0,
      "kind": "allocation",
      "limit": 0,
      "periodStart": "2019-08-24T14:15:22Z",
      "region": "string",
      "resetsAt": "2019-08-24T14:15:22Z",
      "scope": "organization",
      "scopeResourceName": "string",
      "used": 0,
      "window": "string"
    }
  }
}
```

- `UpdateDistribution.response.403.error` (object, required)
  - `UpdateDistribution.response.403.error.code` (string, required)
    - maxLength 64; pattern `^[a-z][a-z0-9_]*$`
  - `UpdateDistribution.response.403.error.message` (string, required)
    - maxLength 1024
  - `UpdateDistribution.response.403.error.issues` (array<object>, optional) — invalid_request: one entry per problem, at a dotted path.
    - `UpdateDistribution.response.403.error.issues.message` (string, required)
    - `UpdateDistribution.response.403.error.issues.path` (string, required)
  - `UpdateDistribution.response.403.error.quota` (object, optional) — quota_exceeded: the quota that refused the request. Never with Retry-After.
    - `UpdateDistribution.response.403.error.quota.id` (string, required)
    - `UpdateDistribution.response.403.error.quota.kind` (unknown, required)
      - one of `"allocation"`, `"rate"`, `"usage"`, `"concurrency"`
    - `UpdateDistribution.response.403.error.quota.limit` (integer, required)
      - min 0
    - `UpdateDistribution.response.403.error.quota.scope` (unknown, required)
      - one of `"organization"`, `"project"`, `"resource"`
    - `UpdateDistribution.response.403.error.quota.inFlight` (integer, optional)
      - min 0
    - `UpdateDistribution.response.403.error.quota.periodStart` (string, optional)
      - format `date-time`
    - `UpdateDistribution.response.403.error.quota.region` (string, optional)
    - `UpdateDistribution.response.403.error.quota.resetsAt` (string, optional)
      - format `date-time`
    - `UpdateDistribution.response.403.error.quota.scopeResourceName` (string, optional)
    - `UpdateDistribution.response.403.error.quota.used` (integer, optional)
      - min 0
    - `UpdateDistribution.response.403.error.quota.window` (string, optional) — rate only: an ISO 8601 duration, PT1S to PT1H.

### 404

not_found: unknown, malformed, or in an organization the caller isn't in.

#### Example

```json
{
  "error": {
    "code": "string",
    "issues": [
      {
        "message": "string",
        "path": "string"
      }
    ],
    "message": "string",
    "quota": {
      "id": "string",
      "inFlight": 0,
      "kind": "allocation",
      "limit": 0,
      "periodStart": "2019-08-24T14:15:22Z",
      "region": "string",
      "resetsAt": "2019-08-24T14:15:22Z",
      "scope": "organization",
      "scopeResourceName": "string",
      "used": 0,
      "window": "string"
    }
  }
}
```

- `UpdateDistribution.response.404.error` (object, required)
  - `UpdateDistribution.response.404.error.code` (string, required)
    - maxLength 64; pattern `^[a-z][a-z0-9_]*$`
  - `UpdateDistribution.response.404.error.message` (string, required)
    - maxLength 1024
  - `UpdateDistribution.response.404.error.issues` (array<object>, optional) — invalid_request: one entry per problem, at a dotted path.
    - `UpdateDistribution.response.404.error.issues.message` (string, required)
    - `UpdateDistribution.response.404.error.issues.path` (string, required)
  - `UpdateDistribution.response.404.error.quota` (object, optional) — quota_exceeded: the quota that refused the request. Never with Retry-After.
    - `UpdateDistribution.response.404.error.quota.id` (string, required)
    - `UpdateDistribution.response.404.error.quota.kind` (unknown, required)
      - one of `"allocation"`, `"rate"`, `"usage"`, `"concurrency"`
    - `UpdateDistribution.response.404.error.quota.limit` (integer, required)
      - min 0
    - `UpdateDistribution.response.404.error.quota.scope` (unknown, required)
      - one of `"organization"`, `"project"`, `"resource"`
    - `UpdateDistribution.response.404.error.quota.inFlight` (integer, optional)
      - min 0
    - `UpdateDistribution.response.404.error.quota.periodStart` (string, optional)
      - format `date-time`
    - `UpdateDistribution.response.404.error.quota.region` (string, optional)
    - `UpdateDistribution.response.404.error.quota.resetsAt` (string, optional)
      - format `date-time`
    - `UpdateDistribution.response.404.error.quota.scopeResourceName` (string, optional)
    - `UpdateDistribution.response.404.error.quota.used` (integer, optional)
      - min 0
    - `UpdateDistribution.response.404.error.quota.window` (string, optional) — rate only: an ISO 8601 duration, PT1S to PT1H.

### 409

quota_exceeded (an allocation quota, with quota), idempotency_conflict, idempotency_in_progress (with Retry-After), organization_deletion_pending, operation_in_progress, or the endpoint's own 409 codes.

#### Example

```json
{
  "error": {
    "code": "string",
    "issues": [
      {
        "message": "string",
        "path": "string"
      }
    ],
    "message": "string",
    "quota": {
      "id": "string",
      "inFlight": 0,
      "kind": "allocation",
      "limit": 0,
      "periodStart": "2019-08-24T14:15:22Z",
      "region": "string",
      "resetsAt": "2019-08-24T14:15:22Z",
      "scope": "organization",
      "scopeResourceName": "string",
      "used": 0,
      "window": "string"
    }
  }
}
```

- `UpdateDistribution.response.409.error` (object, required)
  - `UpdateDistribution.response.409.error.code` (string, required)
    - maxLength 64; pattern `^[a-z][a-z0-9_]*$`
  - `UpdateDistribution.response.409.error.message` (string, required)
    - maxLength 1024
  - `UpdateDistribution.response.409.error.issues` (array<object>, optional) — invalid_request: one entry per problem, at a dotted path.
    - `UpdateDistribution.response.409.error.issues.message` (string, required)
    - `UpdateDistribution.response.409.error.issues.path` (string, required)
  - `UpdateDistribution.response.409.error.quota` (object, optional) — quota_exceeded: the quota that refused the request. Never with Retry-After.
    - `UpdateDistribution.response.409.error.quota.id` (string, required)
    - `UpdateDistribution.response.409.error.quota.kind` (unknown, required)
      - one of `"allocation"`, `"rate"`, `"usage"`, `"concurrency"`
    - `UpdateDistribution.response.409.error.quota.limit` (integer, required)
      - min 0
    - `UpdateDistribution.response.409.error.quota.scope` (unknown, required)
      - one of `"organization"`, `"project"`, `"resource"`
    - `UpdateDistribution.response.409.error.quota.inFlight` (integer, optional)
      - min 0
    - `UpdateDistribution.response.409.error.quota.periodStart` (string, optional)
      - format `date-time`
    - `UpdateDistribution.response.409.error.quota.region` (string, optional)
    - `UpdateDistribution.response.409.error.quota.resetsAt` (string, optional)
      - format `date-time`
    - `UpdateDistribution.response.409.error.quota.scopeResourceName` (string, optional)
    - `UpdateDistribution.response.409.error.quota.used` (integer, optional)
      - min 0
    - `UpdateDistribution.response.409.error.quota.window` (string, optional) — rate only: an ISO 8601 duration, PT1S to PT1H.

### 412

precondition_failed: If-Match didn't name the current ETag; nothing changed.

#### Example

```json
{
  "error": {
    "code": "string",
    "issues": [
      {
        "message": "string",
        "path": "string"
      }
    ],
    "message": "string",
    "quota": {
      "id": "string",
      "inFlight": 0,
      "kind": "allocation",
      "limit": 0,
      "periodStart": "2019-08-24T14:15:22Z",
      "region": "string",
      "resetsAt": "2019-08-24T14:15:22Z",
      "scope": "organization",
      "scopeResourceName": "string",
      "used": 0,
      "window": "string"
    }
  }
}
```

- `UpdateDistribution.response.412.error` (object, required)
  - `UpdateDistribution.response.412.error.code` (string, required)
    - maxLength 64; pattern `^[a-z][a-z0-9_]*$`
  - `UpdateDistribution.response.412.error.message` (string, required)
    - maxLength 1024
  - `UpdateDistribution.response.412.error.issues` (array<object>, optional) — invalid_request: one entry per problem, at a dotted path.
    - `UpdateDistribution.response.412.error.issues.message` (string, required)
    - `UpdateDistribution.response.412.error.issues.path` (string, required)
  - `UpdateDistribution.response.412.error.quota` (object, optional) — quota_exceeded: the quota that refused the request. Never with Retry-After.
    - `UpdateDistribution.response.412.error.quota.id` (string, required)
    - `UpdateDistribution.response.412.error.quota.kind` (unknown, required)
      - one of `"allocation"`, `"rate"`, `"usage"`, `"concurrency"`
    - `UpdateDistribution.response.412.error.quota.limit` (integer, required)
      - min 0
    - `UpdateDistribution.response.412.error.quota.scope` (unknown, required)
      - one of `"organization"`, `"project"`, `"resource"`
    - `UpdateDistribution.response.412.error.quota.inFlight` (integer, optional)
      - min 0
    - `UpdateDistribution.response.412.error.quota.periodStart` (string, optional)
      - format `date-time`
    - `UpdateDistribution.response.412.error.quota.region` (string, optional)
    - `UpdateDistribution.response.412.error.quota.resetsAt` (string, optional)
      - format `date-time`
    - `UpdateDistribution.response.412.error.quota.scopeResourceName` (string, optional)
    - `UpdateDistribution.response.412.error.quota.used` (integer, optional)
      - min 0
    - `UpdateDistribution.response.412.error.quota.window` (string, optional) — rate only: an ISO 8601 duration, PT1S to PT1H.

### 413

payload_too_large: the body is over the endpoint's limit (1 MiB unless it says otherwise).

#### Example

```json
{
  "error": {
    "code": "string",
    "issues": [
      {
        "message": "string",
        "path": "string"
      }
    ],
    "message": "string",
    "quota": {
      "id": "string",
      "inFlight": 0,
      "kind": "allocation",
      "limit": 0,
      "periodStart": "2019-08-24T14:15:22Z",
      "region": "string",
      "resetsAt": "2019-08-24T14:15:22Z",
      "scope": "organization",
      "scopeResourceName": "string",
      "used": 0,
      "window": "string"
    }
  }
}
```

- `UpdateDistribution.response.413.error` (object, required)
  - `UpdateDistribution.response.413.error.code` (string, required)
    - maxLength 64; pattern `^[a-z][a-z0-9_]*$`
  - `UpdateDistribution.response.413.error.message` (string, required)
    - maxLength 1024
  - `UpdateDistribution.response.413.error.issues` (array<object>, optional) — invalid_request: one entry per problem, at a dotted path.
    - `UpdateDistribution.response.413.error.issues.message` (string, required)
    - `UpdateDistribution.response.413.error.issues.path` (string, required)
  - `UpdateDistribution.response.413.error.quota` (object, optional) — quota_exceeded: the quota that refused the request. Never with Retry-After.
    - `UpdateDistribution.response.413.error.quota.id` (string, required)
    - `UpdateDistribution.response.413.error.quota.kind` (unknown, required)
      - one of `"allocation"`, `"rate"`, `"usage"`, `"concurrency"`
    - `UpdateDistribution.response.413.error.quota.limit` (integer, required)
      - min 0
    - `UpdateDistribution.response.413.error.quota.scope` (unknown, required)
      - one of `"organization"`, `"project"`, `"resource"`
    - `UpdateDistribution.response.413.error.quota.inFlight` (integer, optional)
      - min 0
    - `UpdateDistribution.response.413.error.quota.periodStart` (string, optional)
      - format `date-time`
    - `UpdateDistribution.response.413.error.quota.region` (string, optional)
    - `UpdateDistribution.response.413.error.quota.resetsAt` (string, optional)
      - format `date-time`
    - `UpdateDistribution.response.413.error.quota.scopeResourceName` (string, optional)
    - `UpdateDistribution.response.413.error.quota.used` (integer, optional)
      - min 0
    - `UpdateDistribution.response.413.error.quota.window` (string, optional) — rate only: an ISO 8601 duration, PT1S to PT1H.

### 429

too_many_requests, with Retry-After; or quota_exceeded (a rate, usage or concurrency quota, with quota), never with Retry-After.

#### Example

```json
{
  "error": {
    "code": "string",
    "issues": [
      {
        "message": "string",
        "path": "string"
      }
    ],
    "message": "string",
    "quota": {
      "id": "string",
      "inFlight": 0,
      "kind": "allocation",
      "limit": 0,
      "periodStart": "2019-08-24T14:15:22Z",
      "region": "string",
      "resetsAt": "2019-08-24T14:15:22Z",
      "scope": "organization",
      "scopeResourceName": "string",
      "used": 0,
      "window": "string"
    }
  }
}
```

- `UpdateDistribution.response.429.error` (object, required)
  - `UpdateDistribution.response.429.error.code` (string, required)
    - maxLength 64; pattern `^[a-z][a-z0-9_]*$`
  - `UpdateDistribution.response.429.error.message` (string, required)
    - maxLength 1024
  - `UpdateDistribution.response.429.error.issues` (array<object>, optional) — invalid_request: one entry per problem, at a dotted path.
    - `UpdateDistribution.response.429.error.issues.message` (string, required)
    - `UpdateDistribution.response.429.error.issues.path` (string, required)
  - `UpdateDistribution.response.429.error.quota` (object, optional) — quota_exceeded: the quota that refused the request. Never with Retry-After.
    - `UpdateDistribution.response.429.error.quota.id` (string, required)
    - `UpdateDistribution.response.429.error.quota.kind` (unknown, required)
      - one of `"allocation"`, `"rate"`, `"usage"`, `"concurrency"`
    - `UpdateDistribution.response.429.error.quota.limit` (integer, required)
      - min 0
    - `UpdateDistribution.response.429.error.quota.scope` (unknown, required)
      - one of `"organization"`, `"project"`, `"resource"`
    - `UpdateDistribution.response.429.error.quota.inFlight` (integer, optional)
      - min 0
    - `UpdateDistribution.response.429.error.quota.periodStart` (string, optional)
      - format `date-time`
    - `UpdateDistribution.response.429.error.quota.region` (string, optional)
    - `UpdateDistribution.response.429.error.quota.resetsAt` (string, optional)
      - format `date-time`
    - `UpdateDistribution.response.429.error.quota.scopeResourceName` (string, optional)
    - `UpdateDistribution.response.429.error.quota.used` (integer, optional)
      - min 0
    - `UpdateDistribution.response.429.error.quota.window` (string, optional) — rate only: an ISO 8601 duration, PT1S to PT1H.

### 500

internal_error: a bug; the details are in the logs, under the request ID.

#### Example

```json
{
  "error": {
    "code": "string",
    "issues": [
      {
        "message": "string",
        "path": "string"
      }
    ],
    "message": "string",
    "quota": {
      "id": "string",
      "inFlight": 0,
      "kind": "allocation",
      "limit": 0,
      "periodStart": "2019-08-24T14:15:22Z",
      "region": "string",
      "resetsAt": "2019-08-24T14:15:22Z",
      "scope": "organization",
      "scopeResourceName": "string",
      "used": 0,
      "window": "string"
    }
  }
}
```

- `UpdateDistribution.response.500.error` (object, required)
  - `UpdateDistribution.response.500.error.code` (string, required)
    - maxLength 64; pattern `^[a-z][a-z0-9_]*$`
  - `UpdateDistribution.response.500.error.message` (string, required)
    - maxLength 1024
  - `UpdateDistribution.response.500.error.issues` (array<object>, optional) — invalid_request: one entry per problem, at a dotted path.
    - `UpdateDistribution.response.500.error.issues.message` (string, required)
    - `UpdateDistribution.response.500.error.issues.path` (string, required)
  - `UpdateDistribution.response.500.error.quota` (object, optional) — quota_exceeded: the quota that refused the request. Never with Retry-After.
    - `UpdateDistribution.response.500.error.quota.id` (string, required)
    - `UpdateDistribution.response.500.error.quota.kind` (unknown, required)
      - one of `"allocation"`, `"rate"`, `"usage"`, `"concurrency"`
    - `UpdateDistribution.response.500.error.quota.limit` (integer, required)
      - min 0
    - `UpdateDistribution.response.500.error.quota.scope` (unknown, required)
      - one of `"organization"`, `"project"`, `"resource"`
    - `UpdateDistribution.response.500.error.quota.inFlight` (integer, optional)
      - min 0
    - `UpdateDistribution.response.500.error.quota.periodStart` (string, optional)
      - format `date-time`
    - `UpdateDistribution.response.500.error.quota.region` (string, optional)
    - `UpdateDistribution.response.500.error.quota.resetsAt` (string, optional)
      - format `date-time`
    - `UpdateDistribution.response.500.error.quota.scopeResourceName` (string, optional)
    - `UpdateDistribution.response.500.error.quota.used` (integer, optional)
      - min 0
    - `UpdateDistribution.response.500.error.quota.window` (string, optional) — rate only: an ISO 8601 duration, PT1S to PT1H.

### 503

unavailable: a dependency the request needs is down. Retry after Retry-After.

#### Example

```json
{
  "error": {
    "code": "string",
    "issues": [
      {
        "message": "string",
        "path": "string"
      }
    ],
    "message": "string",
    "quota": {
      "id": "string",
      "inFlight": 0,
      "kind": "allocation",
      "limit": 0,
      "periodStart": "2019-08-24T14:15:22Z",
      "region": "string",
      "resetsAt": "2019-08-24T14:15:22Z",
      "scope": "organization",
      "scopeResourceName": "string",
      "used": 0,
      "window": "string"
    }
  }
}
```

- `UpdateDistribution.response.503.error` (object, required)
  - `UpdateDistribution.response.503.error.code` (string, required)
    - maxLength 64; pattern `^[a-z][a-z0-9_]*$`
  - `UpdateDistribution.response.503.error.message` (string, required)
    - maxLength 1024
  - `UpdateDistribution.response.503.error.issues` (array<object>, optional) — invalid_request: one entry per problem, at a dotted path.
    - `UpdateDistribution.response.503.error.issues.message` (string, required)
    - `UpdateDistribution.response.503.error.issues.path` (string, required)
  - `UpdateDistribution.response.503.error.quota` (object, optional) — quota_exceeded: the quota that refused the request. Never with Retry-After.
    - `UpdateDistribution.response.503.error.quota.id` (string, required)
    - `UpdateDistribution.response.503.error.quota.kind` (unknown, required)
      - one of `"allocation"`, `"rate"`, `"usage"`, `"concurrency"`
    - `UpdateDistribution.response.503.error.quota.limit` (integer, required)
      - min 0
    - `UpdateDistribution.response.503.error.quota.scope` (unknown, required)
      - one of `"organization"`, `"project"`, `"resource"`
    - `UpdateDistribution.response.503.error.quota.inFlight` (integer, optional)
      - min 0
    - `UpdateDistribution.response.503.error.quota.periodStart` (string, optional)
      - format `date-time`
    - `UpdateDistribution.response.503.error.quota.region` (string, optional)
    - `UpdateDistribution.response.503.error.quota.resetsAt` (string, optional)
      - format `date-time`
    - `UpdateDistribution.response.503.error.quota.scopeResourceName` (string, optional)
    - `UpdateDistribution.response.503.error.quota.used` (integer, optional)
      - min 0
    - `UpdateDistribution.response.503.error.quota.window` (string, optional) — rate only: an ISO 8601 duration, PT1S to PT1H.


Source: https://docs.ezghcloud.com/cdn-api/UpdateDistribution/index.md
