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

# Create



## OpenAPI

````yaml /openapi.yaml post /api/v3/third_party/plots
openapi: 3.0.0
info:
  title: SIMA Third-Party API
  description: >-
    Referencia completa de la API de Terceros de SIMA. Generada automáticamente
    desde la colección de Postman. Para guías de integración, visitá
    docs.tp.sima.ag.
  version: 1.0.0
servers:
  - url: https://api.qa.sima.ag
    description: Entorno de pruebas (QA)
  - url: https://api.sima.ag
    description: Producción
security:
  - bearerAuth: []
    systemId: []
tags:
  - name: Security
  - name: Version 1
  - name: Version 1 > Active Ingredients
  - name: Version 1 > Applicators
  - name: Version 1 > Application Order Labour Types
  - name: Version 1 > Assignments - Revisar
  - name: Version 1 > Campaigns
  - name: Version 1 > Companies
  - name: Version 1 > Components
  - name: Version 1 > Cultivations
  - name: Version 1 > Establishments
  - name: Version 1 > Farmers
  - name: Version 1 > Formulateds
  - name: Version 1 > FormulatedUse
  - name: Version 1 > Formulation Type
  - name: Version 1 > Machines
  - name: Version 1 > Master Campaigns
  - name: Version 1 > Planting Time
  - name: Version 1 > Plots
  - name: Version 1 > Scoutings
  - name: Version 1 > Scoutings > Adversity Categories
  - name: Version 1 > Scoutings > Adverstiy Kinds
  - name: Version 1 > Scoutings > Adversity
  - name: Version 1 > Scoutings > Scouting
  - name: Version 1 > Units
  - name: Version 1 > VoucherType
  - name: Version 1 > Warehouses
  - name: Version 1 > WorkOrder
  - name: Version 1 > Work Order Labour Type Attribute
  - name: Version 1 > Work Order Labour Type Category
  - name: Version 2
  - name: Version 2 > Establishments
  - name: Version 2 > Plots
  - name: Version 3
  - name: Version 3 > Activity Statuses
  - name: Version 3 > Applicators
  - name: Version 3 > Application Order Labour Types
  - name: Version 3 > Campaign
  - name: Version 3 > Cultivations
  - name: Version 3 > Establishments
  - name: Version 3 > External Plot Association
  - name: Version 3 > External Systems
  - name: Version 3 > Fertilization Control
  - name: Version 3 > Formulated
  - name: Version 3 > Hydric States
  - name: Version 3 > IOT
  - name: Version 3 > IOT > ClimaticFactors
  - name: Version 3 > IOT > Device
  - name: Version 3 > IOT > Device Event
  - name: Version 3 > IOT > Device Event Protocol Result
  - name: Version 3 > IOT > Device Event Protocol
  - name: Version 3 > IOT > Device Event Sample
  - name: Version 3 > IOT > Device Event Sample Group
  - name: Version 3 > IOT > Device Event Measure Threshold
  - name: Version 3 > IOT > WeatherAnomalies
  - name: Version 3 > IOT > WeatherAnomalyTypes
  - name: Version 3 > Machines
  - name: Version 3 > Master Campaigns
  - name: Version 3 > Master Campaign Cycles
  - name: Version 3 > Phenological States
  - name: Version 3 > Planting Control
  - name: Version 3 > Planting Times
  - name: Version 3 > Plant Stand Control
  - name: Version 3 > Plots
  - name: Version 3 > Plot States
  - name: Version 3 > Progress Report
  - name: Version 3 > Harvest Progress
  - name: Version 3 > Planting Progress
  - name: Version 3 > SIlo Bag
  - name: Version 3 > SIlo Bag > Silobag Scoutings & Extractions
    description: Endpoints to manage silobag scoutings and extractions.
  - name: Version 3 > SIlo Bag > Silobag Campaigns
    description: Endpoints to manage silobag campaigns.
  - name: Version 3 > Scoutings
  - name: Version 3 > Scoutings > Scouting
  - name: Version 3 > Scoutings > Measure
  - name: Version 3 > Tags
  - name: Version 3 > Units
  - name: Version 3 > Warehouses
  - name: Version 3 > Waypoint
  - name: Version 3 > Work Orders
  - name: Version 3 > Work Order Labour Type Categories
paths:
  /api/v3/third_party/plots:
    post:
      tags:
        - Version 3 > Plots
      summary: Create
      parameters:
        - name: X-SIMA-APIKEY
          in: header
          schema:
            type: string
          example: '{{new_api_key}}'
        - name: X-SIMA-SYSTEM-ID
          in: header
          schema:
            type: string
          example: '{{system_id}}'
        - name: Accept
          in: header
          schema:
            type: string
          example: application/json
        - name: Content-Type
          in: header
          schema:
            type: string
          example: application/json
      requestBody:
        content:
          '*/*':
            schema:
              type: string
              example: >-
                "{\n    \"area\": 38.77,\n    \"establishment_id\":
                {{new_establishment}},\n    \"latitude\":
                -33.01170951430673,\n    \"longitude\":
                -60.770449228584766,\n    \"name\": \"Plot 1\",\n   
                \"geometry\":
                \"{\\\"type\\\":\\\"Polygon\\\",\\\"coordinates\\\":[[[178.89312744140625,-0.3968350154009376],[178.99749755859375,-0.5506383054954145],[179.22821044921875,-0.45176514769114756],[178.89312744140625,-0.3968350154009376]]]}\"\n}"
      responses:
        '201':
          description: Created
          headers:
            Date:
              schema:
                type: string
                example: Wed, 09 Oct 2024 19:55:45 GMT
            Server:
              schema:
                type: string
                example: Apache/2.4.38 (Debian)
            X-Powered-By:
              schema:
                type: string
                example: PHP/7.3.7
            Cache-Control:
              schema:
                type: string
                example: no-cache, private
            Content-Length:
              schema:
                type: integer
                example: '532'
            Connection:
              schema:
                type: string
                example: close
            Content-Type:
              schema:
                type: string
                example: application/json
          content:
            application/json:
              schema:
                type: object
              example:
                id: 294126
                name: Plot 1
                establishment_id: 120767
                area: 38.77
                geometry: >-
                  {"type":"Polygon","coordinates":[[[178.89312744140625,-0.3968350154009376],[178.99749755859375,-0.5506383054954145],[179.22821044921875,-0.45176514769114756],[178.89312744140625,-0.3968350154009376]]]}
                latitude: -33.011709514307
                longitude: -60.770449228585
                external_code: null
                external_reference: null
                created_at: '2024-10-09T16:55:45-03:00'
                modified_at: '2024-10-09T16:55:45-03:00'
                deleted_at: null
                active: true
        '400':
          description: Bad Request
          headers:
            Date:
              schema:
                type: string
                example: Wed, 09 Oct 2024 19:56:30 GMT
            Server:
              schema:
                type: string
                example: Apache/2.4.38 (Debian)
            X-Powered-By:
              schema:
                type: string
                example: PHP/7.3.7
            Cache-Control:
              schema:
                type: string
                example: no-cache, private
            Content-Length:
              schema:
                type: integer
                example: '83'
            Connection:
              schema:
                type: string
                example: close
            Content-Type:
              schema:
                type: string
                example: application/json
          content:
            application/json:
              schema:
                type: object
              examples:
                example-0:
                  summary: Create - LatLon invalid
                  value:
                    error:
                      code: 400
                      message: Coordenada de latitude/longitude no válida
                example-1:
                  summary: Create - Geometry not valid
                  value:
                    error:
                      code: 400
                      message: Geometry no válido
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: access_token obtenido via POST /api/v2/login
    systemId:
      type: apiKey
      in: header
      name: X-SIMA-SYSTEM-ID
      description: Identificador del sistema integrador (8 para Third-Party API)

````