Create agreement attachment
Path parameters
agreementIdstringRequired
Agreement id
Body
filestring · binaryOptional
Responses
201
Created
application/json
idstringOptional
namestringOptional
revisioninteger · int32Optional
typestringOptional
descriptionstringOptional
filenamestring · nullableOptional
sizeinteger · int32 · nullableOptional
contentTypestringOptional
orderIdstringOptional
licenseKeystringOptional
400
Bad Request
application/json
post/public/v1/commerce/agreements/{agreementId}/attachments
POST /public/v1/commerce/agreements/{agreementId}/attachments HTTP/1.1
Host: api.platform.softwareone.com
Content-Type: multipart/form-data
Accept: */*
Content-Length: 118
{
"attachment": {
"Name": "text",
"Description": "text",
"OrderId": "text",
"Type": "File",
"LicenseKey": "text"
},
"file": "binary"
}{
"id": "text",
"audit": {
"created": {
"at": "2026-01-01T00:00:00.000Z",
"by": {
"id": "text",
"name": "text",
"icon": "text",
"revision": 1
}
},
"updated": {
"at": "2026-01-01T00:00:00.000Z",
"by": {
"id": "text",
"name": "text",
"icon": "text",
"revision": 1
}
}
},
"$meta": {
"omitted": [
"text"
]
},
"name": "text",
"revision": 1,
"type": "text",
"description": "text",
"filename": "text",
"size": 1,
"contentType": "text",
"orderId": "text",
"licenseKey": "text",
"agreement": {
"id": "text",
"name": "text",
"icon": "text",
"revision": 1,
"status": "New"
}
}Last updated
Was this helpful?