---
title: "Creates a LegacyActivityAttachment"
method: POST
path: "/LegacyActivityAttachment"
tags: ["LegacyActivityAttachment"]
---

# Creates a LegacyActivityAttachment

`POST /LegacyActivityAttachment`

## Request

- Base URL: `https://yourorgsite.com/api`
- URL: `https://yourorgsite.com/api/LegacyActivityAttachment`
- Auth: OAuth 2
  - Implicit: `https://yourorgsite.com`

Creates an instance of LegacyActivityAttachment

## Request body

- LegacyActivityAttachmentData
  - `$type` 'Asi.Soa.Core.DataContracts.LegacyActivityAttachmentData, Asi.Contracts', required: The DataType must be "Asi.Soa.Core.DataContracts.LegacyActivityAttachmentData, Asi.Contracts"
  - `ActivityId` integer
  - `AttachedOn` string, date-time
  - `Attachment` object
  - `AttachmentId` integer
  - `FileName` string

## Response `200`

The request was successful.

## Other responses

- `201`: The resource was successfully created.
- `202`: The resource was asynchronously created.

---

[API](https://skmtc.dev/imis/apis/core.md) - [All operations](https://skmtc.dev/imis/apis/core/llms.txt) - [OpenAPI document](https://skmtc.dev/imis/apis/core/revisions/f92d7afeb13d?raw)
