POST api/v1/general/attachments/attachment

Request Information

URI Parameters

None.

Body Parameters

AttachmentModel
NameDescriptionTypeAdditional information
Id

integer

None.

OwnerId

globally unique identifier

Required

Name

string

Required

Max length: 50

Url

string

Required

Max length: 512

CreatedAt

date

None.

ExternalId

globally unique identifier

None.

IsDeleted

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "OwnerId": "7e3833e1-e3c1-4b65-a788-0520f6140b3e",
  "Name": "sample string 3",
  "Url": "sample string 4",
  "CreatedAt": "2026-06-27T13:21:46.9765224+03:00",
  "ExternalId": "3c4af48d-a4a4-45fe-90c7-ced75ee77cb6",
  "IsDeleted": true
}

application/xml, text/xml

Sample:
<AttachmentModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Emalogic.Conservatory.Common.Models">
  <CreatedAt>2026-06-27T13:21:46.9765224+03:00</CreatedAt>
  <ExternalId>3c4af48d-a4a4-45fe-90c7-ced75ee77cb6</ExternalId>
  <Id>1</Id>
  <IsDeleted>true</IsDeleted>
  <Name>sample string 3</Name>
  <OwnerId>7e3833e1-e3c1-4b65-a788-0520f6140b3e</OwnerId>
  <Url>sample string 4</Url>
</AttachmentModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'AttachmentModel'.

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<long xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</long>