# Update an outcome

PUT https://api.close.com/api/v1/outcome/{id}/
Content-Type: application/json

Update an existing outcome.

Reference: https://developer.close.com/api/resources/outcomes/update

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: Close API
  version: 1.0.0
paths:
  /outcome/{id}/:
    put:
      operationId: update
      summary: Update an outcome
      description: Update an existing outcome.
      tags:
        - subpackage_outcomes
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: Authorization
          in: header
          description: Basic authentication
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Outcome'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                description: Any type
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                description: Any type
        '404':
          description: Not found
          content:
            application/json:
              schema:
                description: Any type
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateOutcome'
servers:
  - url: https://api.close.com/api/v1
components:
  schemas:
    OutcomeAppliesTo:
      type: string
      enum:
        - calls
        - meetings
      title: OutcomeAppliesTo
    OutcomeType:
      type: string
      enum:
        - vm-dropped
        - custom
      title: OutcomeType
    UpdateOutcome:
      type: object
      properties:
        applies_to:
          type:
            - array
            - 'null'
          items:
            $ref: '#/components/schemas/OutcomeAppliesTo'
          description: >-
            Deprecated. This field will be derived from `type` in a future
            update: `custom` applies to calls and meetings, `vm-dropped` applies
            to calls only.
        description:
          type:
            - string
            - 'null'
          description: Explain what the outcome means and when it should be used.
        name:
          type:
            - string
            - 'null'
          description: Displayed to users wherever outcomes can be selected.
        type:
          oneOf:
            - $ref: '#/components/schemas/OutcomeType'
            - type: 'null'
          description: >-
            Set to `vm-dropped` if this outcome should be automatically set on
            calls whenever a team member performs a Voicemail Drop. Otherwise,
            leave empty or explicitly set to `custom` (default).
      title: UpdateOutcome
    Outcome:
      type: object
      properties:
        applies_to:
          type: array
          items:
            $ref: '#/components/schemas/OutcomeAppliesTo'
        created_by:
          type:
            - string
            - 'null'
        date_created:
          type: string
          format: date-time
        date_updated:
          type: string
          format: date-time
        description:
          type:
            - string
            - 'null'
        id:
          type: string
        name:
          type: string
        organization_id:
          type: string
        type:
          $ref: '#/components/schemas/OutcomeType'
        updated_by:
          type:
            - string
            - 'null'
      required:
        - applies_to
        - created_by
        - date_created
        - date_updated
        - description
        - id
        - name
        - organization_id
        - type
        - updated_by
      title: Outcome
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: basic
    OAuth2:
      type: http
      scheme: bearer

```