PUT Attachments

Updates the given attachment. Only the Name and Description of the attachment may be updated.

Request Information

URI Parameters

None.

Body Parameters

The attachment to update

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.

LastModifiedDate

date

None.

LastModifiedUser

string

None.

Request Formats

application/json, text/json

Sample:
{
  "AttachmentId": "3af9ad59-73b9-4c1c-9f00-0675a862f73d",
  "Name": "sample string 1",
  "Description": "sample string 2",
  "AttachmentCategory": {
    "AttachmentCategoryId": "6114da3c-6937-42af-bae1-ede0bc4d7865",
    "Name": "sample string 1",
    "SourceSystemId": "sample string 2",
    "CompanyId": "bd75386a-8c45-4294-be42-38668ad34c8c",
    "CreateDate": "2024-12-22T00:59:54.398991-08:00",
    "CreateUser": "sample string 4",
    "LastModifiedDate": "2024-12-22T00:59:54.398991-08:00",
    "LastModifiedUser": "sample string 5"
  },
  "Asset": {
    "AssetId": "e1bf4208-446b-4069-826e-f92bfe7e57ea",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "DisplayOrder": 1,
    "AssetType": {
      "AssetTypeId": "4d057d33-ac6f-4dce-b8c0-8f9c25d91599",
      "Name": "sample string 1",
      "Description": "sample string 2",
      "DisplayColor": "sample string 3",
      "SourceSystemId": "sample string 4",
      "CompanyId": "95e8f136-e9aa-48d5-9e24-117c56b2c14b",
      "CreateDate": "2024-12-22T00:59:54.398991-08:00",
      "CreateUser": "sample string 6",
      "LastModifiedDate": "2024-12-22T00:59:54.398991-08:00",
      "LastModifiedUser": "sample string 7"
    },
    "AssetGroup": {
      "AssetGroupId": "65b0675a-39b9-4172-9a37-8f10d5fe6cb7",
      "Name": "sample string 1",
      "Description": "sample string 2",
      "ParentGroup": null,
      "DisplayOrder": 1,
      "FormValueNeededDate": "2024-12-22T00:59:54.398991-08:00",
      "MeasurementValueNeededDate": "2024-12-22T00:59:54.398991-08:00",
      "SourceSystemId": "sample string 3",
      "CompanyId": "f772800f-0df8-45e0-bc9f-0b7204c513fb",
      "CreateDate": "2024-12-22T00:59:54.398991-08:00",
      "CreateUser": "sample string 5",
      "LastModifiedDate": "2024-12-22T00:59:54.398991-08:00",
      "LastModifiedUser": "sample string 6"
    },
    "ParentAsset": null,
    "Location": "sample string 3",
    "Barcode": {
      "Format": 0,
      "Code": "sample string 1"
    },
    "FormValueNeededDate": "2024-12-22T00:59:54.398991-08:00",
    "MeasurementValueNeededDate": "2024-12-22T00:59:54.398991-08:00",
    "HasChildren": true,
    "SourceSystemId": "sample string 5",
    "CompanyId": "08e4826c-2992-4255-a30a-f91ed8fbcb73",
    "CreateDate": "2024-12-22T00:59:54.398991-08:00",
    "CreateUser": "sample string 7",
    "LastModifiedDate": "2024-12-22T00:59:54.398991-08:00",
    "LastModifiedUser": "sample string 8"
  },
  "FileType": "sample string 3",
  "FileSize": 1,
  "UploadDate": "2024-12-22T00:59:54.398991-08:00",
  "Content": "QEA=",
  "SourceSystemId": "sample string 4",
  "CompanyId": "e0d93d93-1b23-4d86-bc53-e910631749d6",
  "CreateDate": "2024-12-22T00:59:54.398991-08:00",
  "CreateUser": "sample string 6",
  "LastModifiedDate": "2024-12-22T00:59:54.398991-08:00",
  "LastModifiedUser": "sample string 7"
}

Response Information

Resource Description

On success, the updated 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": "2e735407-fcbe-4c3e-af89-f811597b3182",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "AttachmentCategory": {
      "AttachmentCategoryId": "9adc40d3-ae78-435d-bb80-932e2ea116ad",
      "Name": "sample string 1",
      "SourceSystemId": "sample string 2",
      "CompanyId": "893191fb-c984-450d-846a-da7ba17ac665",
      "CreateDate": "2024-12-22T00:59:54.4146514-08:00",
      "CreateUser": "sample string 4",
      "LastModifiedDate": "2024-12-22T00:59:54.4146514-08:00",
      "LastModifiedUser": "sample string 5"
    },
    "Asset": {
      "AssetId": "db6cc1a1-608f-4b58-84b0-7635547dd2b5",
      "Name": "sample string 1",
      "Description": "sample string 2",
      "DisplayOrder": 1,
      "AssetType": {
        "AssetTypeId": "0468b216-984e-4ef6-9b9e-fa51e6ea49ae",
        "Name": "sample string 1",
        "Description": "sample string 2",
        "DisplayColor": "sample string 3",
        "SourceSystemId": "sample string 4",
        "CompanyId": "41528e48-0d01-4594-8cc6-1f8819091daa",
        "CreateDate": "2024-12-22T00:59:54.4146514-08:00",
        "CreateUser": "sample string 6",
        "LastModifiedDate": "2024-12-22T00:59:54.4146514-08:00",
        "LastModifiedUser": "sample string 7"
      },
      "AssetGroup": {
        "AssetGroupId": "986c4a20-d9a2-41ba-b9b4-d623ae0c8c71",
        "Name": "sample string 1",
        "Description": "sample string 2",
        "ParentGroup": null,
        "DisplayOrder": 1,
        "FormValueNeededDate": "2024-12-22T00:59:54.4146514-08:00",
        "MeasurementValueNeededDate": "2024-12-22T00:59:54.4146514-08:00",
        "SourceSystemId": "sample string 3",
        "CompanyId": "6e484251-fae5-4040-a5a0-6b1572b1fb8c",
        "CreateDate": "2024-12-22T00:59:54.4146514-08:00",
        "CreateUser": "sample string 5",
        "LastModifiedDate": "2024-12-22T00:59:54.4146514-08:00",
        "LastModifiedUser": "sample string 6"
      },
      "ParentAsset": null,
      "Location": "sample string 3",
      "Barcode": {
        "Format": 0,
        "Code": "sample string 1"
      },
      "FormValueNeededDate": "2024-12-22T00:59:54.4146514-08:00",
      "MeasurementValueNeededDate": "2024-12-22T00:59:54.4146514-08:00",
      "HasChildren": true,
      "SourceSystemId": "sample string 5",
      "CompanyId": "cdc63241-ecfe-48d5-99c0-b07e680168d8",
      "CreateDate": "2024-12-22T00:59:54.4146514-08:00",
      "CreateUser": "sample string 7",
      "LastModifiedDate": "2024-12-22T00:59:54.4146514-08:00",
      "LastModifiedUser": "sample string 8"
    },
    "FileType": "sample string 3",
    "FileSize": 1,
    "UploadDate": "2024-12-22T00:59:54.4146514-08:00",
    "Content": "QEA=",
    "SourceSystemId": "sample string 4",
    "CompanyId": "acc1f7cd-eace-47d2-b4eb-724bc5c37e10",
    "CreateDate": "2024-12-22T00:59:54.4146514-08:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2024-12-22T00:59:54.4146514-08:00",
    "LastModifiedUser": "sample string 7"
  },
  "Total": 1,
  "Message": "sample string 1"
}