Create Agreement Attachment

POSThttps://api.platform.softwareone.com/public/v1/commerce/agreements/{agreementId}/attachments
Path parameters
agreementId*string
Body
attachmentobject

Json representation of the attachment

filestring (binary)
Response

Created

Body
idstring
auditobject
$metaobject
hrefstring
namestring
typestring
descriptionstring
filenamenullable string
sizenullable integer (int32)
contentTypestring
orderIdstring
licenseKeystring
agreementobject
Request
const response = await fetch('https://api.platform.softwareone.com/public/v1/commerce/agreements/{agreementId}/attachments', {
    method: 'POST',
    headers: {
      "Content-Type": "multipart/form-data"
    },
    body: JSON.stringify({}),
});
const data = await response.json();
Response
{
  "id": "text",
  "href": "text",
  "name": "text",
  "type": "text",
  "description": "text",
  "filename": "text",
  "contentType": "text",
  "orderId": "text",
  "licenseKey": "text"
}

Last updated

SoftwareOne is a trademark of SoftwareOne, Inc. "The Software Licensing Experts" is a service mark of SoftwareOne, Inc. VAR assist is a trademark of SoftwareOne, Inc. "It pays to partner" is a service mark of SoftwareOne, Incorporated.

Change request #498: