---
title: "PATCH /parties/{partyId}/attachments/{attachmentId}"
method: PATCH
path: "/parties/{partyId}/attachments/{attachmentId}"
tags: ["Attachments"]
---

# PATCH /parties/{partyId}/attachments/{attachmentId}

`PATCH /parties/{partyId}/attachments/{attachmentId}`

Creates or updates an attachment resource under a particular party.

## Path parameters

- `partyId` string, required
- `attachmentId` string, required

## Query parameters

- `api-version` string, required

## Response `200`

Success

- Attachment — Schema of attachment resource.
  - `resourceId` string — Associated Resource id for this attachment.
  - `resourceType` 'Party' | 'Farm' | 'Field' | 'SeasonalField' | 'ApplicationData' | 'HarvestData' | 'TillageData' | 'PlantingData' | 'PlantTissueAnalysis' | 'Prescription' — Associated Resource type for this attachment.
  - `originalFileName` string — Original File Name for this attachment.
  - `partyId` string — PartyId id for this attachment.
  - `id` string — Unique id.
  - `status` string — Status of the resource.
  - `createdDateTime` string, date-time — Date when resource was created.
  - `modifiedDateTime` string, date-time — Date when resource was last modified.
  - `source` string — Source of the resource.
  - `name` string — Name to identify resource.
  - `description` string — Textual description of resource.
  - `createdBy` string — Created by user/tenant id.
  - `modifiedBy` string — Modified by user/tenant id.
  - `eTag` string — The ETag value to implement optimistic concurrency.

## Other responses

- `201` — Created
- `default` — Error

---

[API](https://skmtc.net/azure/apis/agrifood-agfoodplatform.md) · [All operations](https://skmtc.net/azure/apis/agrifood-agfoodplatform/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/agrifood-agfoodplatform/revisions/33cf1de6e0c4/schema)
