3. Resources
3.1. Preview
Operation for preview ticket
3.1.1. Creates a new preview ticket.
POST /v1/preview
Responses
HTTP Code | Description | Schema |
---|---|---|
201 |
Created |
|
400 |
Bad Request e.g. incorrect request body data, missing parameters |
No Content |
401 |
Unauthorized |
No Content |
403 |
Forbidden. Have no access to this method |
No Content |
3.1.2. Returns a preview ticket DTO.
GET /v1/preview/{ticketId}
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
400 |
Bad Request |
No Content |
401 |
Unauthorized |
No Content |
403 |
Forbidden. Have no access to this method |
No Content |
404 |
Ticket with given id doesn’t exist |
No Content |
3.1.3. Updates an existing preview ticket.
PUT /v1/preview/{ticketId}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
ticketId |
Preview ticket identifier |
string |
Body |
previewTicketDTO |
Details of the ticket to be updated |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
400 |
Bad Request e.g. incorrect request body data, missing parameters |
No Content |
401 |
Unauthorized |
No Content |
403 |
Forbidden. Have no access to this method |
No Content |
404 |
Ticket with given id doesn’t exist |
No Content |
409 |
Conflict - ticket code in request body and url do not match |
No Content |
4. Definitions
4.1. CxVariationKey
Name | Schema |
---|---|
catalog |
string |
catalogVersion |
string |
customizationCode |
string |
variationCode |
string |
4.2. catalogVersion
Name | Description | Schema |
---|---|---|
catalog |
Catalog ID |
string |
catalogVersion |
Catalog version |
string |
4.3. previewTicket
Preview Ticket.
Name | Description | Schema |
---|---|---|
catalogVersions |
Catalog version list |
< catalogVersion > array |
language |
Language of the preview ticket |
string |
pageId |
CMS page ID to use for the preview |
string |
resourcePath |
Resource path. |
string |
segments |
< string > array |
|
ticketId |
Preview ticket ID |
string |
time |
Time of the preview ticket |
string(date-time) |
user |
User of the preview ticket |
string |
userGroup |
User group of the preview ticket |
string |
variations |
< CxVariationKey > array |
|
versionId |
CMS version ID to use for the preview |
string |