| POST | /api/documentgenerator/word/generatedraftdocument |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| DocumentInfo | body | string | Yes | The DocumentInfo result of the registration wizard. |
| CustomData | body | string | No | Hier kan de (dynamische) data voor het document geplaatst worden, de data kan middels tekstblokken en placeholders worden geplaatst.Het formaat binnen CustomData staat vrij maar vereist een 'root' element. |
| File | body | DocumentBase64File | No | The document to update. |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ContentType | form | string | No | |
| Content | form | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| File | form | DocumentBase64File | No | Contains the file |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /api/documentgenerator/word/generatedraftdocument HTTP/1.1
Host: doapigw.baasbv.nl
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
DocumentInfo: String,
CustomData: String,
File:
{
ContentType: String,
Content: String
}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
File:
{
ContentType: String,
Content: String
}
}