List Data Instances
GET/v1/campaigns/:campaignId/data-instances
List Data Instances
Request
Path Parameters
Filter to a Campaign identifier.
Query Parameters
Filter by either won or lost.
Return the Data Instance with formatted values.
From date, inclusive.
To date, inclusive.
Responses
- 200
- default
OK
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
]
instances
object[]
required
The identifier of the Data Instance.
The date time on which the Data Instance was auctioned.
The roles played in the Data Instance.
Possible values: [SELLER
, BUYER
]
(Optional) Whether the caller of the Data Instance is the winner.
(Optional) The identifier of the Campaign that won the Data Instance.
bid
object
Represents an amount of money with its currency type.
The whole units of the amount.
For example if currencyCode
is "USD"
, then 1 unit is one US dollar.
Number of nano (10^-9) units of the amount.
The value must be between -999,999,999 and +999,999,999 inclusive.
If units
is positive, nanos
must be positive or zero.
If units
is zero, nanos
can be positive, zero, or negative.
If units
is negative, nanos
must be negative or zero.
For example $-1.75 is represented as units
=-1 and nanos
=-750,000,000.
paid
object
Represents an amount of money with its currency type.
The whole units of the amount.
For example if currencyCode
is "USD"
, then 1 unit is one US dollar.
Number of nano (10^-9) units of the amount.
The value must be between -999,999,999 and +999,999,999 inclusive.
If units
is positive, nanos
must be positive or zero.
If units
is zero, nanos
can be positive, zero, or negative.
If units
is negative, nanos
must be negative or zero.
For example $-1.75 is represented as units
=-1 and nanos
=-750,000,000.
properties
object[]
required
The properties of the Data Instance.
The label of the detail.
The value of the detail.
{
"instances": [
{
"id": "string",
"auctionDate": "2024-07-29T15:51:28.071Z",
"roles": [
"SELLER"
],
"winner": true,
"campaignId": "string",
"bid": {
"currencyCode": "string",
"units": "string",
"nanos": 0
},
"paid": {
"currencyCode": "string",
"units": "string",
"nanos": 0
},
"properties": [
{
"label": "string"
}
]
}
]
}
Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
An error status code describing the response.
Enum Value | Description |
---|---|
0 | OK |
1 | Cancelled |
2 | Unknown |
3 | InvalidArgument |
4 | DeadlineExceeded |
5 | NotFound |
6 | AlreadyExists |
7 | PermissionDenied |
8 | ResourceExhausted |
9 | FailedPrecondition |
10 | Aborted |
11 | OutOfRange |
12 | Unimplemented |
13 | Internal |
14 | Unavailable |
15 | DataLoss |
16 | Unauthenticated |
Possible values: [0
, 1
, 2
, 3
, 4
, 5
, 6
, 7
, 8
, 9
, 10
, 11
, 12
, 13
, 14
, 15
, 16
]
A developer-facing error message
details
object[]
A list of messages containing details about the errors
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}