Publish Document
Last updated
Was this helpful?
Last updated
Was this helpful?
Publish a document.
POST /public/v1/program/programs/{programId}/documents/{id}/publish HTTP/1.1
Host:
Accept: */*
{
"id": "text",
"audit": {
"created": {
"at": "2025-05-13T22:49:04.537Z",
"by": {
"id": "text",
"name": "text",
"icon": "text"
}
},
"updated": {
"at": "2025-05-13T22:49:04.537Z",
"by": {
"id": "text",
"name": "text",
"icon": "text"
}
}
},
"$meta": {
"omitted": [
"text"
]
},
"name": "text",
"type": "text",
"description": "text",
"status": "Draft",
"filename": "text",
"size": 1,
"contentType": "text",
"url": "text",
"language": "text",
"program": {
"id": "text",
"name": "text",
"status": "None",
"applicableTo": "Buyer",
"products": [
{
"id": "text",
"audit": {
"created": {
"at": "2025-05-13T22:49:04.537Z",
"by": {
"id": "text",
"name": "text",
"icon": "text"
}
},
"updated": {
"at": "2025-05-13T22:49:04.537Z",
"by": {
"id": "text",
"name": "text",
"icon": "text"
}
},
"published": {
"at": "2025-05-13T22:49:04.537Z",
"by": {
"id": "text",
"name": "text",
"icon": "text"
}
},
"pending": {
"at": "2025-05-13T22:49:04.537Z",
"by": {
"id": "text",
"name": "text",
"icon": "text"
}
},
"unpublished": {
"at": "2025-05-13T22:49:04.537Z",
"by": {
"id": "text",
"name": "text",
"icon": "text"
}
}
},
"$meta": {
"omitted": [
"text"
]
},
"name": "text",
"shortDescription": "text",
"longDescription": "text",
"externalIds": {
"operations": "text"
},
"website": "text",
"icon": "text",
"status": "text",
"vendor": {
"id": "text",
"icon": "text",
"type": "Client",
"status": "Active",
"name": "text"
},
"settings": {
"productOrdering": true,
"productRequests": {
"enabled": true,
"name": "text",
"label": "text"
},
"itemSelection": true,
"orderQueueChanges": true,
"preValidation": {
"purchaseOrderDraft": true,
"purchaseOrderQuerying": true,
"changeOrderDraft": true,
"configurationOrderDraft": true,
"terminationOrder": true,
"productRequest": true
},
"splitBilling": {
"enabled": true,
"type": "text"
},
"subscriptionCessation": {
"enabled": true,
"mode": "Termination"
}
},
"statistics": {
"itemCount": 1,
"ordersPlacedCount": 1,
"agreementCount": 1,
"subscriptionCount": 1,
"requestCount": 1
}
}
]
}
}