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

# Update Origin Shield

> Requires Modify distribution, quota, and eligible billing. Enabling may prorate charges. Disabling schedules cancellation at the billing period end. Refresh the configuration after success.



## OpenAPI

````yaml /openapi-products.json put /cloud-cdn/distributions/shield
openapi: 3.1.0
info:
  title: Aptranet delivery controls and TLS Manager
  version: 1.0.0
  description: >-
    Public project-scoped API. Use the access key and secret together.
    Browser-only organization administration is documented separately.
servers:
  - url: https://api.aptranet.com
security:
  - bearerAuth: []
    apiSecret: []
paths:
  /cloud-cdn/distributions/shield:
    put:
      tags:
        - CDN Origin Shield
      summary: Update Origin Shield
      description: >-
        Requires Modify distribution, quota, and eligible billing. Enabling may
        prorate charges. Disabling schedules cancellation at the billing period
        end. Refresh the configuration after success.
      operationId: PUT_cloud_cdn_distributions_shield
      parameters:
        - name: distribution
          in: query
          required: true
          schema:
            type: integer
            minimum: 1
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                enabled:
                  type: boolean
                location_id:
                  type:
                    - integer
                    - 'null'
                resume:
                  type: boolean
              required:
                - enabled
      responses:
        '200':
          description: >-
            Change applied. Enable/resume can return a JSON billed flag;
            cancellation, location changes, and no-op updates can return
            text/plain OK.
          content:
            application/json:
              schema:
                type: object
                properties:
                  billed:
                    type: boolean
            text/plain:
              schema:
                type: string
              example: OK
        default:
          description: Request rejected or service unavailable.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
        error_description:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Project API access key.
    apiSecret:
      type: apiKey
      in: header
      name: Aptranet-Secret
      description: Current secret for the access key.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.