PR Attachments
Retrieve and manage purchase request attachments.
| Field | Data Type | POST | PATCH |
|---|---|---|---|
| PRID | String | X | X |
| AttachToPO | Boolean | X | X |
| FileName | String | X | X |
| Description | String | X | X |
| AttachmentType | String | X | X |
| FileData | Binary | X | X |
| FileLink | String | X | X |
| FileSize | Int32 | ||
| HttpLink | String | X | X |
| CreatedBy | String | ||
| DateCreated | DateTimeOffset | ||
| EditedBy | String | ||
| DateEdited | DateTimeOffset |
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
AttachmentTypeallowed values:File,FileLink,HttpLinkFileDatais required whenAttachmentType = FileFileLinkis required whenAttachmentType = FileLinkHttpLinkis required whenAttachmentType = HttpLink
