bidHistoryImportSheets
Requires permission biddesk:settings:manage.
The sheets of an uploaded history file with their headers and suggested mappings. Requires Bid Desk and permission to manage Bid Desk settings.
Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.
Example:
- GraphQL
- cURL
query BidHistoryImportSheets($fileKey: String!) {
bidHistoryImportSheets(fileKey: $fileKey) {
name
headers
rowCount
suggestedBidMapping {
field
header
}
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "query BidHistoryImportSheets($fileKey: String!) {\n bidHistoryImportSheets(fileKey: $fileKey) {\n name\n headers\n rowCount\n suggestedBidMapping {\n field\n header\n }\n }\n}",
"variables": {
"fileKey": "string"
}
}
EOF
Variables:
{
"fileKey": "string"
}
Response:
{
"data": {
"bidHistoryImportSheets": [
{
"name": "string",
"headers": [
"string"
],
"rowCount": 0,
"suggestedBidMapping": [
{
"field": "string",
"header": "string"
}
]
}
]
}
}
bidHistoryImportSheets(
fileKey: String!
): [BidHistorySheet!]!
Arguments
bidHistoryImportSheets.fileKey ● String! non-null scalar
The key the upload link returned.
Type
BidHistorySheet object
One sheet of an uploaded history file.