Requires any of the roles: | bookingsupplier-administrator-write, superadmin |
PUT | /reports/booking/printout/{Id} | Update booking printout report |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
CompanyId | query | Guid? | No | Enter the company you want to see add a token for, if blank and you are an admin, your company id will be used |
Id | path | int | Yes | Report id |
Name | body | string | Yes | Report Name |
HeaderLeftCell | body | string | Yes | Report header left cell content |
HeaderMiddleCell | body | string | Yes | Report header middle cell content |
HeaderRightCell | body | string | Yes | Report header right cell content |
BodyCell | body | string | Yes | Report body cell content |
FooterLeftCell | body | string | Yes | Report footer left cell content |
FooterMiddleCell | body | string | Yes | Report footer middle cell content |
FooterRightCell | body | string | Yes | Report footer right cell content |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Id | form | int | No | Report id |
Name | form | string | No | Report Name |
HeaderLeftCell | form | string | Yes | Report header left cell content |
HeaderMiddleCell | form | string | Yes | Report header middle cell content |
HeaderRightCell | form | string | Yes | Report header right cell content |
BodyCell | form | string | Yes | Report body cell content |
FooterLeftCell | form | string | Yes | Report footer left cell content |
FooterMiddleCell | form | string | Yes | Report footer middle cell content |
FooterRightCell | form | string | Yes | Report footer right cell content |
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.
PUT /reports/booking/printout/{Id} HTTP/1.1
Host: api.bokamera.se
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
CompanyId: 00000000-0000-0000-0000-000000000000,
Id: 0,
Name: String,
HeaderLeftCell: String,
HeaderMiddleCell: String,
HeaderRightCell: String,
BodyCell: String,
FooterLeftCell: String,
FooterMiddleCell: String,
FooterRightCell: String
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { Id: 0, Name: String, HeaderLeftCell: String, HeaderMiddleCell: String, HeaderRightCell: String, BodyCell: String, FooterLeftCell: String, FooterMiddleCell: String, FooterRightCell: String }