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

# Update a team short link

> Updates a short link. When the target is a client-portal form URL, the form is published so its bare link opens (ENG-9049).



## OpenAPI

````yaml /api-reference/cx/swagger.json patch /deals/url-redirects/{redirect}
openapi: 3.0.0
info:
  description: CX API.
  title: CX API
  contact:
    name: API Support
    url: https://stax.ai
    email: support@stax.ai
  version: '1.0'
servers:
  - url: https://api.cx.stax.ai
security: []
paths:
  /deals/url-redirects/{redirect}:
    patch:
      tags:
        - deals
        - url-redirects
      summary: Update a team short link
      description: >-
        Updates a short link. When the target is a client-portal form URL, the
        form is published so its bare link opens (ENG-9049).
      parameters:
        - description: Redirect ID
          name: redirect
          in: path
          required: true
          schema:
            type: string
      requestBody:
        $ref: >-
          #/components/requestBodies/pkg_routes_deals_url_redirects.redirectRequest
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
      security:
        - ApiKeyAuth: []
components:
  requestBodies:
    pkg_routes_deals_url_redirects.redirectRequest:
      content:
        application/json:
          schema:
            $ref: >-
              #/components/schemas/pkg_routes_deals_url_redirects.redirectRequest
      description: Short-link values
      required: true
  schemas:
    pkg_routes_deals_url_redirects.redirectRequest:
      type: object
      properties:
        endpoint:
          type: string
        expected_revision:
          type: integer
        target:
          type: string
  securitySchemes:
    ApiKeyAuth:
      description: CX API key. Create one in CX under Settings → Advanced → API Keys.
      in: header
      name: x-api-key
      type: apiKey

````

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