PR Attachments

PR Attachments

Retrieve and manage purchase request attachments.

FieldData TypePOSTPATCH
PRIDStringXX
AttachToPOBooleanXX
FileNameStringXX
DescriptionStringXX
AttachmentTypeStringXX
FileDataBinaryXX
FileLinkStringXX
FileSizeInt32
HttpLinkStringXX
CreatedByString
DateCreatedDateTimeOffset
EditedByString
DateEditedDateTimeOffset

Key: PRID, FileName

Endpoints

GET

URL: https://{site}.mvpplant.com/ODataApi/v1/PRAttachments

Description: Retrieve purchase request attachments.

POST

URL: https://{site}.mvpplant.com/ODataApi/v1/PRAttachments

Description: Create a purchase request attachment.

Body: Send the property values marked in the POST column.

PATCH

URL: https://{site}.mvpplant.com/ODataApi/v1/PRAttachments(PRID='prID',FileName='fileName')

Description: Update an existing purchase request attachment.

Body: Send only the property values you want to update from the PATCH column.

Notes

  • AttachmentType allowed values: File, FileLink, HttpLink
  • FileData is required when AttachmentType = File
  • FileLink is required when AttachmentType = FileLink
  • HttpLink is required when AttachmentType = HttpLink