Calculate game performance
POST
/v1/games/performance
const url = 'https://example.com/komplettpc/v1/games/performance';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"productIds":["example"],"gameIds":["example"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/komplettpc/v1/games/performance \ --header 'Content-Type: application/json' \ --data '{ "productIds": [ "example" ], "gameIds": [ "example" ] }'Calculates how the given products perform against the given games, returning one verdict per requested game id.
Request Bodyrequired
Section titled “Request Bodyrequired”object
productIds
required
Array<string>
gameIds
required
Array<string>
Examplegenerated
{ "productIds": [ "example" ], "gameIds": [ "example" ]}object
productIds
required
Array<string>
gameIds
required
Array<string>
Examplegenerated
{ "productIds": [ "example" ], "gameIds": [ "example" ]}Responses
Section titled “Responses”OK
Media typeapplication/json
object
games
required
Array<object>
object
gameId
required
string
title
required
null | string
status
required
coverImage
required
null | string
thumbnailImage
required
null | string
Example
{ "games": [ { "status": "NotKnown" } ]}Bad Request
Media typeapplication/json
object
type
null | string
title
null | string
status
null | integer | string format: int32
detail
null | string
instance
null | string
errors
required
Array<object>
object
fieldName
required
string
message
required
string
code
required
string
traceId
required
string
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example", "errors": [ { "fieldName": "example", "message": "example" } ], "code": "example", "traceId": "example"}Unauthorized
Media typeapplication/json
object
type
null | string
title
null | string
status
null | integer | string format: int32
detail
null | string
instance
null | string
code
required
string
traceId
required
string
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example", "code": "example", "traceId": "example"}Forbidden
Media typeapplication/json
object
type
null | string
title
null | string
status
null | integer | string format: int32
detail
null | string
instance
null | string
code
required
string
traceId
required
string
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example", "code": "example", "traceId": "example"}Internal Server Error
Media typeapplication/json
object
type
null | string
title
null | string
status
null | integer | string format: int32
detail
null | string
instance
null | string
code
required
string
traceId
required
string
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example", "code": "example", "traceId": "example"}