TradeAware
  • Welcome to TradeAware User Guide
    • Getting Started
  • Using the TradeAware Web App
    • Upload and Analyzing Plots
    • Connect with your supply chain
    • Risk Assessment
    • Transaction Management
    • Document Management
    • Plot Upload and Analysis Trouble Shooting
    • How-to videos
  • Using the TradeAware API
    • API Access and Business Account Registration
    • Authentication
      • Rotate client secret
      • Endpoints enabled for programmatic access
    • Plot Uploading and Analysis Requests
    • Commercial network management
    • Transaction Management
    • API reference
      • Auth
      • Plots
        • Analyses of a specific Plot
        • Batch
      • Analyses
      • Attachments
      • Business invitations
      • Business connections
      • Transactions
        • Create a Transaction
        • Retrieve Transactions
          • Get a transaction by id
          • List all transactions
        • Modify an existing Transaction
          • Update a Transaction
          • Add a Transaction Component
          • Update a Transaction Component
          • Delete a Transaction Component
        • Delete a Transaction
        • Submit a Transaction
        • Retrieve DDS Data
      • Risk Assessments
        • Supplier Risk Assessments
          • Create a Supplier Risk Assessment
          • Update a Supplier Risk Assessment
          • Retrieve Supplier Risk Assessments
            • Get a supplier risk assessment by id
            • Get all supplier risk assessments
          • Retrieve the history
        • Plot Risk Assessments
          • Create a Plot Risk Assessment
          • Update a Plot Risk Assessment
          • Retrieve Plot Risk Assessments
            • Get a plot risk assessment by id
            • Get all plot risk assessments
          • Retrieve the history
      • Survey responses
      • Health
      • Version
      • Specification
  • Additional Resources
    • FAQs
    • Contact Support
    • Terms and Conditions
Powered by GitBook
On this page
  1. Using the TradeAware API
  2. API reference
  3. Plots

Batch

PreviousAnalyses of a specific PlotNextAnalyses

Last updated 9 months ago

Bulk-create plots.

post

Create multiple plots that share the same commodities. The plots will be owned by your business.

Authorizations
Body
filenamestringOptional

Filename used to upload Plots in batch.

Responses
201Success
application/json
401Error
403Error
post
POST /plots/batch HTTP/1.1
Host: api.tradeaware.live-eo.com
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 280

{
  "commodities": [
    "oil palm",
    "rubber"
  ],
  "filename": "text",
  "geometries": {
    "plot1": {
      "type": "Polygon",
      "coordinates": [
        [
          [
            30,
            10
          ],
          [
            40,
            40
          ],
          [
            20,
            40
          ],
          [
            10,
            20
          ],
          [
            30,
            10
          ]
        ]
      ]
    },
    "plot2": {
      "type": "MultiPolygon",
      "coordinates": [
        [
          [
            [
              30,
              20
            ],
            [
              45,
              40
            ],
            [
              10,
              40
            ],
            [
              30,
              20
            ]
          ]
        ],
        [
          [
            [
              15,
              5
            ],
            [
              40,
              10
            ],
            [
              10,
              20
            ],
            [
              5,
              10
            ],
            [
              15,
              5
            ]
          ]
        ]
      ]
    }
  }
}
{
  "status": "PARTIAL_FAILURE",
  "errors": {
    "some_index_0": "some detailed error"
  },
  "processed": {
    "some_index_0": "/plots/123"
  }
}