Create a Revision of PM Attachment and link it to a sub-contract
  • 13 Mar 2024
  • 1 Minute to read
  • Dark
    Light

Create a Revision of PM Attachment and link it to a sub-contract

  • Dark
    Light

Article Summary

Create a Revision of PM Attachment and link it to a sub-contract.

Use CMiC Project Management document API to create and upload and link to a CMiC document object.

Form Elements

fileDetails

This form element contains a JSON string. Attributes provide attachment details where:

AttributeDescription
PmdProjUuidProject unique identifier
PmdTypeCodeMaps to folder name within the document management system
PmdIdAttachment document id
PmdTitleDocument title
PmdDesc1Document description text
PmdDesc2Additional document description text
PmdrCommentComments
PmdrRcvdDateDocument received date
PmdrRevDateDocument revision date
PmdObjectType
PmdObjectId
PmdObjectId2
PmdProjCode
PmdCompCode

document-content-file

This is the attachment file that will be uploaded

Request

curl --location --request POST 'https://yourserver.com/yourenvironment/pm-doc-rest-api/jersey/v1/uploadDoc' \
--header 'Authorization: Your-User:Pass' \
--form 'fileDetails="{
 \"PmdProjUuid\": \"Project UUID\",
 \"PmdTypeCode\": \"Folder name\",
 \"PmdId\": \"Docoument Id\",
 \"PmdTitle\": \"Document title\",
 \"PmdDesc1\": \"Description 1\",
 \"PmdDesc2\": \"Description 2\",
 \"PmdrComment\": \"Original Document\",
 \"PmdrRcvdDate\": \"2021-10-15\",
 \"PmdrRevDate\": \"2021-10-15\",
 \"PmdObjectType\": \"Type\",
 \"PmdObjectId\": \"Id\",
 \"PmdObjectId2\": \"Id\",
 \"PmdProjCode\": \"Project code\",
 \"PmdCompCode\": \"Comp code\",
}"' \
--form 'document-content-file=@"document-file-2-upload"'

ESC

Eddy, a super-smart generative AI, opening up ways to have tailored queries and responses