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

# Update contact protection period settings

> Updates the contact protection period (non-negative integer hours, capped at 720 = 30 days). Admin can update own org; SuperAdmin can update any org.



## OpenAPI

````yaml /api-reference/openapi.yaml put /api/organizations/{organizationId}/contact-protection-settings
openapi: 3.0.3
info:
  title: Tether Relay and Tether API
  version: 1.0.0
  description: >-
    Route-derived OpenAPI contract generated from tether-relay backend sources.
    Regenerate with scripts/sync-openapi-from-backend.mjs.
servers:
  - url: https://your-instance.example.com
    description: Production
  - url: http://localhost:2212
    description: Local API service
security: []
tags:
  - name: AI
  - name: Applications
  - name: Approval
  - name: Auth
  - name: Automations
  - name: Calls
  - name: Campaigns
  - name: Contact Analytics
  - name: Contact Metrics
  - name: Contact Notes
  - name: Contacts
  - name: Conversation Monitor
  - name: Conversations
  - name: Departments
  - name: Email
  - name: Escalation Dashboard
  - name: Event Logs
  - name: Google Sheets
  - name: Marketplace
  - name: Messages
  - name: Notification Sounds
  - name: Notifications
  - name: Org Snapshots
  - name: Organizations
  - name: Outreach
  - name: Outreach Metrics
  - name: Outreach Sources
  - name: Pipelines
  - name: Processes
  - name: Prompts
  - name: Reminders
  - name: Sms
  - name: Templates
  - name: Traces
  - name: Training
  - name: Upload
  - name: User Snapshots
  - name: Users
  - name: Vertical
  - name: Webchats
  - name: Webhook
paths:
  /api/organizations/{organizationId}/contact-protection-settings:
    put:
      tags:
        - Organizations
      summary: Update contact protection period settings
      description: >-
        Updates the contact protection period (non-negative integer hours,
        capped at 720 = 30 days). Admin can update own org; SuperAdmin can
        update any org.
      operationId: put_organizations_organizationId_contact_protection_settings
      parameters:
        - in: path
          name: organizationId
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateContactProtectionSettingsRequest'
      responses:
        '200':
          description: Contact protection settings updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContactProtectionSettingsUpdateResponse'
        '400':
          description: >-
            contactProtectionPeriod must be a non-negative integer between 0 and
            720 hours
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrganizationErrorResponse'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrganizationErrorResponse'
        '404':
          description: Organization not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrganizationErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrganizationErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    UpdateContactProtectionSettingsRequest:
      type: object
      properties:
        contactProtectionPeriod:
          type: integer
          minimum: 0
          maximum: 720
          description: Hours; capped at 720 (30 days)
      required:
        - contactProtectionPeriod
      additionalProperties: true
      example:
        contactProtectionPeriod: 48
    ContactProtectionSettingsUpdateResponse:
      type: object
      properties:
        success:
          type: boolean
          enum:
            - true
        message:
          type: string
        data:
          type: object
          properties:
            contactProtectionPeriod:
              type: integer
              minimum: 0
              maximum: 720
          additionalProperties: true
      additionalProperties: true
      example:
        success: true
        message: Contact protection settings updated
        data:
          contactProtectionPeriod: 48
    OrganizationErrorResponse:
      type: object
      properties:
        error:
          type: string
        details:
          type: string
      additionalProperties: true
      example:
        error: Organization not found
        details: No organization exists with the provided id
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````