POST Attachments

Creates a new attachment.

Request Information

URI Parameters

None.

Body Parameters

The attachment to create. AttachmentId should not be filled in.

Attachment
NameDescriptionTypeAdditional information
AttachmentId

globally unique identifier

None.

Name

string

None.

Description

string

None.

AttachmentCategory

AttachmentCategory

None.

Asset

Asset

None.

FileType

string

None.

FileSize

integer

None.

UploadDate

date

None.

Content

Collection of byte

None.

SourceSystemId

string

None.

CompanyId

globally unique identifier

None.

CreateDate

date

None.

CreateUser

string

None.

CreateMachine

string

None.

LastModifiedDate

date

None.

LastModifiedUser

string

None.

LastModifiedMachine

string

None.

Request Formats

application/json, text/json

Sample:
{
  "AttachmentId": "e02bc327-1da6-4b1d-a6e0-edc4d27b78c4",
  "Name": "sample string 1",
  "Description": "sample string 2",
  "AttachmentCategory": {
    "AttachmentCategoryId": "6a227832-25cf-48bf-bee8-69b9f79cf5dc",
    "Name": "sample string 1",
    "SourceSystemId": "sample string 2",
    "CompanyId": "9b36f026-7261-45b7-9174-5fcd119519e5",
    "CreateDate": "2021-04-17T06:59:02.1090067-07:00",
    "CreateUser": "sample string 4",
    "CreateMachine": "sample string 5",
    "LastModifiedDate": "2021-04-17T06:59:02.1090067-07:00",
    "LastModifiedUser": "sample string 6",
    "LastModifiedMachine": "sample string 7"
  },
  "Asset": {
    "AssetId": "ba015869-1521-4c67-815b-680bc2f80cd9",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "DisplayOrder": 1,
    "AssetType": {
      "AssetTypeId": "a290b864-e639-4b41-bb11-adfdf5be8603",
      "Name": "sample string 1",
      "Description": "sample string 2",
      "DisplayColor": "sample string 3",
      "SourceSystemId": "sample string 4",
      "CompanyId": "4c327925-218d-464d-a42e-db013c486eb5",
      "CreateDate": "2021-04-17T06:59:02.1090067-07:00",
      "CreateUser": "sample string 6",
      "CreateMachine": "sample string 7",
      "LastModifiedDate": "2021-04-17T06:59:02.1090067-07:00",
      "LastModifiedUser": "sample string 8",
      "LastModifiedMachine": "sample string 9"
    },
    "AssetGroup": {
      "AssetGroupId": "aa4fd69d-6474-4e80-964f-3074dc4704b9",
      "Name": "sample string 1",
      "Description": "sample string 2",
      "ParentGroup": null,
      "DisplayOrder": 1,
      "FormValueNeededDate": "2021-04-17T06:59:02.1090067-07:00",
      "MeasurementValueNeededDate": "2021-04-17T06:59:02.1090067-07:00",
      "SourceSystemId": "sample string 3",
      "CompanyId": "96bf2965-a60b-44ff-9d63-72813e2399d8",
      "CreateDate": "2021-04-17T06:59:02.1090067-07:00",
      "CreateUser": "sample string 5",
      "CreateMachine": "sample string 6",
      "LastModifiedDate": "2021-04-17T06:59:02.1090067-07:00",
      "LastModifiedUser": "sample string 7",
      "LastModifiedMachine": "sample string 8"
    },
    "ParentAsset": null,
    "WellKnownText": "sample string 3",
    "Barcode": {
      "Format": 0,
      "Code": "sample string 1"
    },
    "FormValueNeededDate": "2021-04-17T06:59:02.1090067-07:00",
    "MeasurementValueNeededDate": "2021-04-17T06:59:02.1090067-07:00",
    "HasChildren": true,
    "SourceSystemId": "sample string 5",
    "CompanyId": "ab32cb28-d4e1-424e-b690-ce19e5e23406",
    "CreateDate": "2021-04-17T06:59:02.1090067-07:00",
    "CreateUser": "sample string 7",
    "CreateMachine": "sample string 8",
    "LastModifiedDate": "2021-04-17T06:59:02.1090067-07:00",
    "LastModifiedUser": "sample string 9",
    "LastModifiedMachine": "sample string 10"
  },
  "FileType": "sample string 3",
  "FileSize": 1,
  "UploadDate": "2021-04-17T06:59:02.1090067-07:00",
  "Content": "QEA=",
  "SourceSystemId": "sample string 4",
  "CompanyId": "599c5a1b-3f14-4c9c-be83-c62317fde1ba",
  "CreateDate": "2021-04-17T06:59:02.1090067-07:00",
  "CreateUser": "sample string 6",
  "CreateMachine": "sample string 7",
  "LastModifiedDate": "2021-04-17T06:59:02.1090067-07:00",
  "LastModifiedUser": "sample string 8",
  "LastModifiedMachine": "sample string 9"
}

Response Information

Resource Description

On success, the created attachment. The Content of the attachment will not be filled in.

NameDescriptionTypeAdditional information
Data

Attachment

None.

Total

integer

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Data": {
    "AttachmentId": "6da535a0-e98c-436d-a3d7-4ee436bf4d80",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "AttachmentCategory": {
      "AttachmentCategoryId": "edd1d4a3-2672-4b54-a4ab-cceb41a8bf57",
      "Name": "sample string 1",
      "SourceSystemId": "sample string 2",
      "CompanyId": "4f82af65-72aa-450a-bb5e-06849a67c99c",
      "CreateDate": "2021-04-17T06:59:02.1090067-07:00",
      "CreateUser": "sample string 4",
      "CreateMachine": "sample string 5",
      "LastModifiedDate": "2021-04-17T06:59:02.1090067-07:00",
      "LastModifiedUser": "sample string 6",
      "LastModifiedMachine": "sample string 7"
    },
    "Asset": {
      "AssetId": "268e9b81-828e-4dfb-9ce2-df2372b223cd",
      "Name": "sample string 1",
      "Description": "sample string 2",
      "DisplayOrder": 1,
      "AssetType": {
        "AssetTypeId": "d2a03d67-1187-4459-bb8a-e33aa6c5d7c6",
        "Name": "sample string 1",
        "Description": "sample string 2",
        "DisplayColor": "sample string 3",
        "SourceSystemId": "sample string 4",
        "CompanyId": "df3331a9-6fa9-4c5e-bd6a-b349e5b89fd3",
        "CreateDate": "2021-04-17T06:59:02.1090067-07:00",
        "CreateUser": "sample string 6",
        "CreateMachine": "sample string 7",
        "LastModifiedDate": "2021-04-17T06:59:02.1090067-07:00",
        "LastModifiedUser": "sample string 8",
        "LastModifiedMachine": "sample string 9"
      },
      "AssetGroup": {
        "AssetGroupId": "217e1324-bf66-438d-8f88-5f502d5ab97d",
        "Name": "sample string 1",
        "Description": "sample string 2",
        "ParentGroup": null,
        "DisplayOrder": 1,
        "FormValueNeededDate": "2021-04-17T06:59:02.1090067-07:00",
        "MeasurementValueNeededDate": "2021-04-17T06:59:02.1090067-07:00",
        "SourceSystemId": "sample string 3",
        "CompanyId": "adc8549e-263c-49f5-b2d4-1cd0e20f6972",
        "CreateDate": "2021-04-17T06:59:02.1090067-07:00",
        "CreateUser": "sample string 5",
        "CreateMachine": "sample string 6",
        "LastModifiedDate": "2021-04-17T06:59:02.1090067-07:00",
        "LastModifiedUser": "sample string 7",
        "LastModifiedMachine": "sample string 8"
      },
      "ParentAsset": null,
      "WellKnownText": "sample string 3",
      "Barcode": {
        "Format": 0,
        "Code": "sample string 1"
      },
      "FormValueNeededDate": "2021-04-17T06:59:02.1090067-07:00",
      "MeasurementValueNeededDate": "2021-04-17T06:59:02.1090067-07:00",
      "HasChildren": true,
      "SourceSystemId": "sample string 5",
      "CompanyId": "a904e6fb-da0b-4023-8313-b3d420693480",
      "CreateDate": "2021-04-17T06:59:02.1090067-07:00",
      "CreateUser": "sample string 7",
      "CreateMachine": "sample string 8",
      "LastModifiedDate": "2021-04-17T06:59:02.1090067-07:00",
      "LastModifiedUser": "sample string 9",
      "LastModifiedMachine": "sample string 10"
    },
    "FileType": "sample string 3",
    "FileSize": 1,
    "UploadDate": "2021-04-17T06:59:02.1090067-07:00",
    "Content": "QEA=",
    "SourceSystemId": "sample string 4",
    "CompanyId": "0d9d4f04-51c4-49cf-beea-f15a4c8e6731",
    "CreateDate": "2021-04-17T06:59:02.1090067-07:00",
    "CreateUser": "sample string 6",
    "CreateMachine": "sample string 7",
    "LastModifiedDate": "2021-04-17T06:59:02.1090067-07:00",
    "LastModifiedUser": "sample string 8",
    "LastModifiedMachine": "sample string 9"
  },
  "Total": 1,
  "Message": "sample string 1"
}