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

# Set As Lost

> Change the status of one or more sales to Lost.

Note that this does not affect the Completed state of the sale.
NsApiSlow threshold: 2000 ms.



## OpenAPI

````yaml /openapi/agent/openapi-v3-SaleAgent.json post /api/v1/Agents/Sale/SetAsLost
openapi: 3.0.0
info:
  version: v1-Agents
  title: SuperOffice Agent API v1
  description: SuperOffice Agent API - SaleAgent
  contact:
    name: SuperOffice DevNet
    url: https://docs.superoffice.com/en/api/index.html
    email: sdk@superoffice.com
servers:
  - url: http://localhost:56350
  - url: https://localhost:56350
security: []
tags: []
externalDocs:
  description: >-
    The SuperOffice DevNet Community has more documentation, examples, and
    discussion forums.
  url: https://community.superoffice.com/en/developer/
paths:
  /api/v1/Agents/Sale/SetAsLost:
    post:
      tags:
        - Sale_Agent
      summary: Set As Lost
      description: "Change the status of one or more sales to Lost.\n\nNote that this does not affect the Completed state of the sale.\r\nNsApiSlow threshold: 2000 ms."
      operationId: v1SaleAgent_SetAsLost
      parameters:
        - name: $select
          in: query
          description: >-
            Optional comma separated list of properties to include in the
            result. Other fields are then nulled out to reduce payload size:
            "Name,department,category". Default = show all fields.
          required: false
          schema:
            type: string
        - name: SO-AppToken
          in: header
          description: >-
            The application token that identifies the partner app. Used when
            calling Online WebAPI from a server.
          required: false
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.SaleCarriers.SetAsLostRequest
          text/json:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.SaleCarriers.SetAsLostRequest
          application/xml:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.SaleCarriers.SetAsLostRequest
          text/xml:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.SaleCarriers.SetAsLostRequest
          application/x-www-form-urlencoded:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.SaleCarriers.SetAsLostRequest
          application/json-patch+json:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.SaleCarriers.SetAsLostRequest
          application/merge-patch+json:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.SaleCarriers.SetAsLostRequest
        description: SaleIds
        required: true
      responses:
        '204':
          description: No Content
      security:
        - SuperOffice_Password: []
          SuperId_Authentication: []
components:
  schemas:
    SuperOffice.WebApi.v1.Carriers.SaleCarriers.SetAsLostRequest:
      description: >-
        SetAsLost: Change the status of one or more sales to Lost. Note that
        this does not affect the Completed state of the sale.
      type: object
      properties:
        SaleIds:
          type: array
          items:
            format: int32
            type: integer

````

## Related topics

- [Set As Lost With Reason](/en/api/reference/restful/agent/sale_agent/set-as-lost-with-reason.md)
- [SuperOffice.WebApi.Data.Sale SetAsLostRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.Sale_SetAsLostRequest.md)
- [SuperOffice.WebApi.Data.Sale SetAsLostWithReasonRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.Sale_SetAsLostWithReasonRequest.md)
- [Update sale](/en/mobile/sale/update.md)
- [NSSaleAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSSaleAgent.md)
- [Sales](/en/mobile/sale/index.md)
