Product pages - Amazon API Gateway

Product pages

Represents the collection of product pages for a portal product.

URI

/v2/portalproducts/portalProductId/productpages

HTTP methods

GET

Operation ID: ListProductPages

Lists the product pages for a portal product.

Path parameters
NameTypeRequiredDescription
portalProductIdStringTrue

The portal product identifier.

Query parameters
NameTypeRequiredDescription
nextTokenStringFalse

The next page of elements from this collection. Not valid for the last element of the collection.

maxResultsStringFalse

The maximum number of elements to be returned for this resource.

resourceOwnerAccountIdStringFalse

The account ID of the resource owner of the portal product.

Responses
Status codeResponse modelDescription
200ListProductPagesResponseContent

Success

400BadRequestExceptionResponseContent

One of the parameters in the request is invalid.

403AccessDeniedExceptionResponseContent

403 response

404NotFoundExceptionResponseContent

The resource specified in the request was not found.

429LimitExceededExceptionResponseContent

The client is sending more than the allowed number of requests per unit of time.

POST

Operation ID: CreateProductPage

Creates a new product page for a portal product.

Path parameters
NameTypeRequiredDescription
portalProductIdStringTrue

The portal product identifier.

Responses
Status codeResponse modelDescription
201CreateProductPageResponseContent

The request has succeeded and has resulted in the creation of a resource.

400BadRequestExceptionResponseContent

One of the parameters in the request is invalid.

403AccessDeniedExceptionResponseContent

403 response

404NotFoundExceptionResponseContent

The resource specified in the request was not found.

429LimitExceededExceptionResponseContent

The client is sending more than the allowed number of requests per unit of time.

Schemas

Request bodies

{ "displayContent": { "title": "string", "body": "string" } }

Response bodies

{ "nextToken": "string", "items": [ { "pageTitle": "string", "productPageId": "string", "lastModified": "string", "productPageArn": "string" } ] }
{ "displayContent": { "title": "string", "body": "string" }, "productPageId": "string", "lastModified": "string", "productPageArn": "string" }
{ "message": "string" }
{ "message": "string" }
{ "message": "string", "resourceType": "string" }
{ "message": "string", "limitType": "string" }

Properties

AccessDeniedExceptionResponseContent

The error message.

PropertyTypeRequiredDescription
message

string

False

The message.

BadRequestExceptionResponseContent

The response content for bad request exception.

PropertyTypeRequiredDescription
message

string

False

The message of the bad request exception response content.

CreateProductPageRequestContent

Creates a product page.

PropertyTypeRequiredDescription
displayContent

DisplayContent

True

The content of the product page.

CreateProductPageResponseContent

Creates a product page.

PropertyTypeRequiredDescription
displayContent

DisplayContent

False

The content of the product page.

lastModified

string

Format: date-time

True

The timestamp when the product page was last modified.

productPageArn

string

MinLength: 20

MaxLength: 2048

True

The ARN of the product page.

productPageId

string

Pattern: ^[a-z0-9]+$

MinLength: 10

MaxLength: 30

True

The product page identifier.

DisplayContent

The content of the product page.

PropertyTypeRequiredDescription
body

string

MinLength: 1

MaxLength: 32768

True

The body.

title

string

MinLength: 1

MaxLength: 255

True

The title.

LimitExceededExceptionResponseContent

The response content for limit exceeded exception.

PropertyTypeRequiredDescription
limitType

string

False

The limit type of the limit exceeded exception response content.

message

string

False

The message of the limit exceeded exception response content.

ListProductPagesResponseContent

Lists product pages.

PropertyTypeRequiredDescription
items

Array of type ProductPageSummaryNoBody

True

The elements from this collection.

nextToken

string

MinLength: 1

MaxLength: 2048

False

The next page of elements from this collection. Not valid for the last element of the collection.

NotFoundExceptionResponseContent

The response content for not found exception.

PropertyTypeRequiredDescription
message

string

False

The message of the not found exception response content.

resourceType

string

False

The resource type of the not found exception response content.

ProductPageSummaryNoBody

Represents a product page summary without listing any page content.

PropertyTypeRequiredDescription
lastModified

string

Format: date-time

True

The timestamp when the product page was last modified.

pageTitle

string

MinLength: 1

MaxLength: 255

True

The page title.

productPageArn

string

MinLength: 20

MaxLength: 2048

True

The ARN of the product page.

productPageId

string

Pattern: ^[a-z0-9]+$

MinLength: 10

MaxLength: 30

True

The product page identifier.

See also

For more information about using this API in one of the language-specific AWS SDKs and references, see the following:

ListProductPages

CreateProductPage