Microsoft Azure Attachments API

The Attachments API from Microsoft Azure, for attachments.

GitHub OpenAPI

Operations 5

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /parties/{partyId}/attachments List a party's attachments · Microsoft Azure Get Parties Partyid Attachments #
Ask an LLM
“Which files are attached to a farmer or party in Data Manager for Agriculture?”
“Can I filter a party's attachments by resource type, status or creation date?”
Tell an agent
List the attachments for party {partyId}.
List attachments for party {partyId} created after {minCreatedDateTime}.
GET /parties/{partyId}/attachments/{attachmentId} Get an attachment's metadata · Microsoft Azure Get Parties Partyid Attachments Attachmentid #
Ask an LLM
“What metadata is stored for one attachment on a party?”
“Can I look up an attachment record without downloading the file?”
Tell an agent
Get attachment {attachmentId} for party {partyId}.
Show the metadata of attachment {attachmentId} on party {partyId}.
PATCH /parties/{partyId}/attachments/{attachmentId} Upload or update a party's attachment · Microsoft Azure Patch Parties Partyid Attachments Attachmentid #
Ask an LLM
“What do I send to attach a file to a party's field or resource?”
“Can I replace the file on an existing attachment?”
Tell an agent
Upload {file} as attachment {attachmentId} for party {partyId}.
Attach file {file} to resource {resourceId} of type {resourceType} as attachment {attachmentId} for party {partyId}.
DELETE /parties/{partyId}/attachments/{attachmentId} Delete a party's attachment · Microsoft Azure Delete Parties Partyid Attachments Attachmentid #
Ask an LLM
“Can I delete an attachment from a party in Data Manager for Agriculture?”
“What is the call to remove a file attached to a farmer?”
Tell an agent destructive · confirm first
Delete attachment {attachmentId} from party {partyId}.
Remove attached file {attachmentId} from party {partyId}.
GET /parties/{partyId}/attachments/{attachmentId}/file Download an attachment file · Microsoft Azure Get Parties Partyid Attachments Attachmentid File #
Ask an LLM
“Can I download the actual file behind an attachment?”
“What returns the raw contents of a party's attached file?”
Tell an agent
Download the file for attachment {attachmentId} of party {partyId}.
Fetch the file contents of attachment {attachmentId} on party {partyId}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/microsoft-azure:microsoft-azure-attachments-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

microsoft-azure-attachments-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Microsoft Azure Azure AgFoodPlatform Data Plane Service…
  description: APIs documentation for Azure AgPlatform DataPlane Service.
  version: 2022-11-01-preview
security:
- Bearer: []
tags:
- name: Attachments
paths:
  /parties/{partyId}/attachments:
    get:
      tags:
      - Attachments
      description: Returns a paginated list of attachment resources under a particular party.
      operationId: microsoftAzureAttachmentsListbypartyid
      parameters:
      - in: path
        name: partyId
        description: Id of the associated party.
        required: true
        schema:
          type: string
      - in: query
        name: resourceIds
        description: Resource Ids of the resource.
        style: form
        explode: true
        schema:
          type: array
          items:
            type: string
      - in: query
        name: resourceTypes
        description: 'Resource Types of the resource.

          i.e. Party, Farm, Field, SeasonalField, Boundary, ApplicationData, HarvestData, TillageData, PlantingData, PlantTissueAnalysis.'
        style: form
        explode: true
        schema:
          type: array
          items:
            type: string
      - in: query
        name: ids
        description: Ids of the resource.
        style: form
        explode: true
        schema:
          type: array
          items:
            type: string
      - in: query
        name: names
        description: Names of the resource.
        style: form
        explode: true
        schema:
          type: array
          items:
            type: string
      - in: query
        name: propertyFilters
        description: 'Filters on key-value pairs within the Properties object.

          eg. "{testKey} eq {testValue}".'
        style: form
        explode: true
        schema:
          type: array
          items:
            type: string
      - in: query
        name: statuses
        description: Statuses of the resource.
        style: form
        explode: true
        schema:
          type: array
          items:
            type: string
      - in: query
        name: minCreatedDateTime
        description: Minimum creation date of resource (inclusive).
        schema:
          type: string
          format: date-time
      - in: query
        name: maxCreatedDateTime
        description: Maximum creation date of resource (inclusive).
        schema:
          type: string
          format: date-time
      - in: query
        name: minLastModifiedDateTime
        description: Minimum last modified date of resource (inclusive).
        schema:
          type: string
          format: date-time
      - in: query
        name: maxLastModifiedDateTime
        description: Maximum last modified date of resource (inclusive).
        schema:
          type: string
          format: date-time
      - in: query
        name: maxPageSize
        description: 'Maximum number of items needed (inclusive).

          Minimum = 10, Maximum = 1000, Default value = 50.'
        schema:
          type: integer
          format: int32
          default: 50
          maximum: 1000
          minimum: 10
      - in: query
        name: skipToken
        description: Skip token for getting next set of results.
        schema:
          type: string
      - in: query
        name: api-version
        description: The requested API version
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AttachmentListResponse'
        default:
          description: Error
          headers:
            x-ms-error-code:
              x-ms-client-name: ErrorCode
              schema:
                type: string
          x-ms-error-response: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-pageable:
        nextLinkName: nextLink
      x-ms-examples:
        Attachments_ListByPartyId:
          $ref: ./examples/Attachments_ListByPartyId.json
      summary: Microsoft Azure Get Parties Partyid Attachments
  /parties/{partyId}/attachments/{attachmentId}:
    get:
      tags:
      - Attachments
      description: Gets a specified attachment resource under a particular party.
      operationId: microsoftAzureAttachmentsGet
      parameters:
      - in: path
        name: partyId
        description: Id of the associated party.
        required: true
        schema:
          type: string
      - in: path
        name: attachmentId
        description: Id of the attachment.
        required: true
        schema:
          type: string
      - in: query
        name: api-version
        description: The requested API version
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Attachment'
        default:
          description: Error
          headers:
            x-ms-error-code:
              x-ms-client-name: ErrorCode
              schema:
                type: string
          x-ms-error-response: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-examples:
        Attachments_Get:
          $ref: ./examples/Attachments_Get.json
      summary: Microsoft Azure Get Parties Partyid Attachments Attachmentid
    patch:
      tags:
      - Attachments
      description: Creates or updates an attachment resource under a particular party.
      operationId: microsoftAzureAttachmentsCreateorupdate
      parameters:
      - in: path
        name: partyId
        description: Id of the associated party resource.
        required: true
        schema:
          type: string
      - in: path
        name: attachmentId
        description: Id of the attachment resource.
        required: true
        schema:
          type: string
      - in: query
        name: api-version
        description: The requested API version
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Attachment'
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Attachment'
        default:
          description: Error
          headers:
            x-ms-error-code:
              x-ms-client-name: ErrorCode
              schema:
                type: string
          x-ms-error-response: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-examples:
        Attachments_CreateOrUpdate:
          $ref: ./examples/Attachments_CreateOrUpdate.json
      summary: Microsoft Azure Patch Parties Partyid Attachments Attachmentid
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                file:
                  type: string
                  format: binary
                  description: File to be uploaded.
                resourceId:
                  type: string
                  description: Associated Resource id for this attachment.
                resourceType:
                  type: string
                  description: Associated Resource type for this attachment.
                originalFileName:
                  type: string
                  description: Original File Name for this attachment.
                id:
                  type: string
                  description: Unique id.
                status:
                  type: string
                  maxLength: 100
                  minLength: 0
                  description: Status of the resource.
                createdDateTime:
                  type: string
                  format: date-time
                  description: Date when resource was created.
                modifiedDateTime:
                  type: string
                  format: date-time
                  description: Date when resource was last modified.
                source:
                  type: string
                  maxLength: 100
                  minLength: 2
                  description: Source of the resource.
                name:
                  type: string
                  maxLength: 100
                  minLength: 0
                  description: Name to identify resource.
                description:
                  type: string
                  maxLength: 500
                  minLength: 0
                  description: Textual description of resource.
                createdBy:
                  type: string
                  description: Created by user/tenant id.
                modifiedBy:
                  type: string
                  description: Modified by user/tenant id.
    delete:
      tags:
      - Attachments
      description: Deletes a specified attachment resource under a particular party.
      operationId: microsoftAzureAttachmentsDelete
      parameters:
      - in: path
        name: partyId
        description: Id of the party.
        required: true
        schema:
          type: string
      - in: path
        name: attachmentId
        description: Id of the attachment.
        required: true
        schema:
          type: string
      - in: query
        name: api-version
        description: The requested API version
        required: true
        schema:
          type: string
      responses:
        '204':
          description: No Content
        default:
          description: Error
          headers:
            x-ms-error-code:
              x-ms-client-name: ErrorCode
              schema:
                type: string
          x-ms-error-response: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-examples:
        Attachments_Delete:
          $ref: ./examples/Attachments_Delete.json
      summary: Microsoft Azure Delete Parties Partyid Attachments Attachmentid
  /parties/{partyId}/attachments/{attachmentId}/file:
    get:
      tags:
      - Attachments
      description: Downloads and returns attachment as response for the given input filePath.
      operationId: microsoftAzureAttachmentsDownload
      parameters:
      - in: path
        name: partyId
        description: Id of the associated party.
        required: true
        schema:
          type: string
      - in: path
        name: attachmentId
        description: Id of attachment to be downloaded.
        required: true
        schema:
          type: string
      - in: query
        name: api-version
        description: The requested API version
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                format: binary
                type: string
            application/octet-stream:
              schema:
                format: binary
                type: string
        default:
          description: Error
          headers:
            x-ms-error-code:
              x-ms-client-name: ErrorCode
              schema:
                type: string
          x-ms-error-response: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
            application/octet-stream:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-examples:
        Attachments_Download:
          $ref: ./examples/Attachments_Download.json
      summary: Microsoft Azure Get Parties Partyid Attachments Attachmentid File
components:
  schemas:
    InnerError:
      description: Inner error containing list of errors.See https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#innererror--object for InnerError reference document.
      type: object
      properties:
        code:
          description: Specific error code than was provided by the containing error.
          type: string
        innererror:
          $ref: '#/components/schemas/InnerError'
    ErrorResponse:
      description: An error response from the Azure AgPlatform service. See https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses for ErrorResponse reference document.
      type: object
      properties:
        error:
          $ref: '#/components/schemas/Error'
        traceId:
          description: Unique trace Id.
          type: string
    Error:
      description: An error from the Azure AgPlatform service.
      required:
      - code
      - message
      type: object
      properties:
        code:
          description: Server-defined set of error codes.
          minLength: 1
          type: string
        message:
          description: Human-readable representation of the error.
          minLength: 1
          type: string
        target:
          description: Target of the error.
          type: string
        details:
          description: Array of details about specific errors that led to this reported error.
          type: array
          items:
            $ref: '#/components/schemas/Error'
        innererror:
          $ref: '#/components/schemas/InnerError'
    AttachmentListResponse:
      description: Paged response contains list of requested objects and a URL link to get the next set of results.
      required:
      - value
      type: object
      properties:
        value:
          description: List of requested objects.
          type: array
          items:
            $ref: '#/components/schemas/Attachment'
        skipToken:
          description: Token used in retrieving the next page. If null, there are no additional pages.
          type: string
        nextLink:
          description: Continuation link (absolute URI) to the next page of results in the list.
          type: string
    Attachment:
      description: Schema of attachment resource.
      type: object
      properties:
        resourceId:
          description: Associated Resource id for this attachment.
          type: string
        resourceType:
          description: Associated Resource type for this attachment.
          enum:
          - Party
          - Farm
          - Field
          - SeasonalField
          - Boundary
          - ApplicationData
          - HarvestData
          - TillageData
          - PlantingData
          - PlantTissueAnalysis
          type: string
          x-ms-enum:
            name: AttachmentResourceType
            modelAsString: true
        originalFileName:
          description: Original File Name for this attachment.
          type: string
          readOnly: true
        partyId:
          description: PartyId id for this attachment.
          type: string
          readOnly: true
        id:
          description: Unique id.
          type: string
          readOnly: true
        status:
          description: Status of the resource.
          maxLength: 100
          minLength: 0
          type: string
        createdDateTime:
          format: date-time
          description: Date when resource was created.
          type: string
          readOnly: true
        modifiedDateTime:
          format: date-time
          description: Date when resource was last modified.
          type: string
          readOnly: true
        source:
          description: Source of the resource.
          maxLength: 100
          minLength: 2
          type: string
        name:
          description: Name to identify resource.
          maxLength: 100
          minLength: 0
          type: string
        description:
          description: Textual description of resource.
          maxLength: 500
          minLength: 0
          type: string
        createdBy:
          description: Created by user/tenant id.
          type: string
          readOnly: true
        modifiedBy:
          description: Modified by user/tenant id.
          type: string
          readOnly: true
        eTag:
          description: The ETag value to implement optimistic concurrency.
          type: string
          readOnly: true
  securitySchemes:
    Bearer:
      type: apiKey
      name: Authorization
      in: header
      description: Please provide a valid bearer token for authorized API calls. Note that you might need to clear your browser cache if you tried un-authenticated calls before.