---
title: "POST /V1.0/CompanyNotes/{parentId}/Attachments"
method: POST
path: "/V1.0/CompanyNotes/{parentId}/Attachments"
tags: ["CompanyNoteAttachmentsChild"]
---

# POST /V1.0/CompanyNotes/{parentId}/Attachments

`POST /V1.0/CompanyNotes/{parentId}/Attachments`

## Path parameters

- `parentId` integer, required

## Headers

- `ApiIntegrationCode` string, required
- `UserName` string, required
- `Secret` string, required
- `ImpersonationResourceId` string

## Request body

- CompanyNoteAttachmentModel
  - `id` integer
  - `attachDate` string, date-time
  - `attachedByContactID` integer
  - `attachedByResourceID` integer
  - `attachmentType` string
  - `companyID` integer
  - `companyNoteID` integer
  - `contentType` string
  - `creatorType` integer
  - `fileSize` number, double
  - `fullPath` string
  - `impersonatorCreatorResourceID` integer
  - `opportunityID` integer
  - `parentID` integer
  - `publish` integer
  - `salesOrderID` integer
  - `title` string
  - `data` string, byte
  - `parentType` integer
  - `soapParentPropertyId` ExpressionFuncAttachmentInfoInt64
    - `type` string
    - `nodeType` 'Add' | 'AddChecked' | 'And' | 'AndAlso' | 'ArrayLength' | 'ArrayIndex' | 'Call' | 'Coalesce' | 'Conditional' | 'Constant' | 'Convert' | 'ConvertChecked' | 'Divide' | 'Equal' | 'ExclusiveOr' | 'GreaterThan' | 'GreaterThanOrEqual' | 'Invoke' | 'Lambda' | 'LeftShift' | 'LessThan' | 'LessThanOrEqual' | 'ListInit' | 'MemberAccess' | 'MemberInit' | 'Modulo' | 'Multiply' | 'MultiplyChecked' | 'Negate' | 'UnaryPlus' | 'NegateChecked' | 'New' | 'NewArrayInit' | 'NewArrayBounds' | 'Not' | 'NotEqual' | 'Or' | 'OrElse' | 'Parameter' | 'Power' | 'Quote' | 'RightShift' | 'Subtract' | 'SubtractChecked' | 'TypeAs' | 'TypeIs' | 'Assign' | 'Block' | 'DebugInfo' | 'Decrement' | 'Dynamic' | 'Default' | 'Extension' | 'Goto' | 'Increment' | 'Index' | 'Label' | 'RuntimeVariables' | 'Loop' | 'Switch' | 'Throw' | 'Try' | 'Unbox' | 'AddAssign' | 'AndAssign' | 'DivideAssign' | 'ExclusiveOrAssign' | 'LeftShiftAssign' | 'ModuloAssign' | 'MultiplyAssign' | 'OrAssign' | 'PowerAssign' | 'RightShiftAssign' | 'SubtractAssign' | 'AddAssignChecked' | 'MultiplyAssignChecked' | 'SubtractAssignChecked' | 'PreIncrementAssign' | 'PreDecrementAssign' | 'PostIncrementAssign' | 'PostDecrementAssign' | 'TypeEqual' | 'OnesComplement' | 'IsTrue' | 'IsFalse'
    - `parameters` ParameterExpression[]
      - `type` string
      - `nodeType` 'Add' | 'AddChecked' | 'And' | 'AndAlso' | 'ArrayLength' | 'ArrayIndex' | 'Call' | 'Coalesce' | 'Conditional' | 'Constant' | 'Convert' | 'ConvertChecked' | 'Divide' | 'Equal' | 'ExclusiveOr' | 'GreaterThan' | 'GreaterThanOrEqual' | 'Invoke' | 'Lambda' | 'LeftShift' | 'LessThan' | 'LessThanOrEqual' | 'ListInit' | 'MemberAccess' | 'MemberInit' | 'Modulo' | 'Multiply' | 'MultiplyChecked' | 'Negate' | 'UnaryPlus' | 'NegateChecked' | 'New' | 'NewArrayInit' | 'NewArrayBounds' | 'Not' | 'NotEqual' | 'Or' | 'OrElse' | 'Parameter' | 'Power' | 'Quote' | 'RightShift' | 'Subtract' | 'SubtractChecked' | 'TypeAs' | 'TypeIs' | 'Assign' | 'Block' | 'DebugInfo' | 'Decrement' | 'Dynamic' | 'Default' | 'Extension' | 'Goto' | 'Increment' | 'Index' | 'Label' | 'RuntimeVariables' | 'Loop' | 'Switch' | 'Throw' | 'Try' | 'Unbox' | 'AddAssign' | 'AndAssign' | 'DivideAssign' | 'ExclusiveOrAssign' | 'LeftShiftAssign' | 'ModuloAssign' | 'MultiplyAssign' | 'OrAssign' | 'PowerAssign' | 'RightShiftAssign' | 'SubtractAssign' | 'AddAssignChecked' | 'MultiplyAssignChecked' | 'SubtractAssignChecked' | 'PreIncrementAssign' | 'PreDecrementAssign' | 'PostIncrementAssign' | 'PostDecrementAssign' | 'TypeEqual' | 'OnesComplement' | 'IsTrue' | 'IsFalse'
      - `name` string
      - `isByRef` boolean
      - `canReduce` boolean
    - `name` string
    - `body` Expression
      - `nodeType` 'Add' | 'AddChecked' | 'And' | 'AndAlso' | 'ArrayLength' | 'ArrayIndex' | 'Call' | 'Coalesce' | 'Conditional' | 'Constant' | 'Convert' | 'ConvertChecked' | 'Divide' | 'Equal' | 'ExclusiveOr' | 'GreaterThan' | 'GreaterThanOrEqual' | 'Invoke' | 'Lambda' | 'LeftShift' | 'LessThan' | 'LessThanOrEqual' | 'ListInit' | 'MemberAccess' | 'MemberInit' | 'Modulo' | 'Multiply' | 'MultiplyChecked' | 'Negate' | 'UnaryPlus' | 'NegateChecked' | 'New' | 'NewArrayInit' | 'NewArrayBounds' | 'Not' | 'NotEqual' | 'Or' | 'OrElse' | 'Parameter' | 'Power' | 'Quote' | 'RightShift' | 'Subtract' | 'SubtractChecked' | 'TypeAs' | 'TypeIs' | 'Assign' | 'Block' | 'DebugInfo' | 'Decrement' | 'Dynamic' | 'Default' | 'Extension' | 'Goto' | 'Increment' | 'Index' | 'Label' | 'RuntimeVariables' | 'Loop' | 'Switch' | 'Throw' | 'Try' | 'Unbox' | 'AddAssign' | 'AndAssign' | 'DivideAssign' | 'ExclusiveOrAssign' | 'LeftShiftAssign' | 'ModuloAssign' | 'MultiplyAssign' | 'OrAssign' | 'PowerAssign' | 'RightShiftAssign' | 'SubtractAssign' | 'AddAssignChecked' | 'MultiplyAssignChecked' | 'SubtractAssignChecked' | 'PreIncrementAssign' | 'PreDecrementAssign' | 'PostIncrementAssign' | 'PostDecrementAssign' | 'TypeEqual' | 'OnesComplement' | 'IsTrue' | 'IsFalse'
      - `type` string
      - `canReduce` boolean
    - `returnType` string
    - `tailCall` boolean
    - `canReduce` boolean
  - `isTaskAttachment` boolean

## Response `200`

OK

- OperationResultModel
  - `itemId` Object

## Other responses

- `401` — Unauthorized
- `403` — Forbidden

---

[API](https://skmtc.net/autotask/apis/datto-autotask-psa-rest-api.md) · [All operations](https://skmtc.net/autotask/apis/datto-autotask-psa-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/autotask/datto-autotask-psa-rest-api/versions/b5e89df4589e/schema)
