POST
/
v2
/
saved
/
crosstabs
curl --request POST \
  --url https://api.globalwebindex.com/v2/saved/crosstabs \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "rows": [
    {
      "id": "<string>",
      "name": "<string>",
      "full_name": "<string>",
      "avg": {
        "question": "q999",
        "with_suffixes": {
          "datapoint": "q999_99",
          "suffixes": [
            1,
            2
          ]
        },
        "with_datapoints": {
          "datapoints": [
            "q999_99"
          ]
        }
      },
      "expression": {
        "and": [
          {}
        ],
        "or": [
          {}
        ],
        "not": true,
        "qustion": "<string>",
        "options": [
          "<string>"
        ],
        "suffixes": [
          123
        ],
        "min_count": 123
      }
    }
  ],
  "columns": [
    {
      "id": "<string>",
      "name": "<string>",
      "full_name": "<string>",
      "avg": {
        "question": "q999",
        "with_suffixes": {
          "datapoint": "q999_99",
          "suffixes": [
            1,
            2
          ]
        },
        "with_datapoints": {
          "datapoints": [
            "q999_99"
          ]
        }
      },
      "expression": {
        "and": [
          {}
        ],
        "or": [
          {}
        ],
        "not": true,
        "qustion": "<string>",
        "options": [
          "<string>"
        ],
        "suffixes": [
          123
        ],
        "min_count": 123
      }
    }
  ],
  "country_codes": [
    "<string>"
  ],
  "wave_codes": [
    "<string>"
  ],
  "bases": {
    "id": "<string>",
    "name": "<string>",
    "full_name": "<string>",
    "avg": {
      "question": "q999",
      "with_suffixes": {
        "datapoint": "q999_99",
        "suffixes": [
          1,
          2
        ]
      },
      "with_datapoints": {
        "datapoints": [
          "q999_99"
        ]
      }
    },
    "expression": {
      "and": [
        {}
      ],
      "or": [
        {}
      ],
      "not": true,
      "qustion": "<string>",
      "options": [
        "<string>"
      ],
      "suffixes": [
        123
      ],
      "min_count": 123
    }
  },
  "last_updated_at": "2023-11-07T05:31:56Z",
  "notes": "<string>"
}'
{
  "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "user_id": 123,
  "org_id": "<string>",
  "rows": [
    {
      "id": "<string>",
      "name": "<string>",
      "full_name": "<string>",
      "avg": {
        "question": "q999",
        "with_suffixes": {
          "datapoint": "q999_99",
          "suffixes": [
            1,
            2
          ]
        },
        "with_datapoints": {
          "datapoints": [
            "q999_99"
          ]
        }
      },
      "expression": {
        "and": [
          {}
        ],
        "or": [
          {}
        ],
        "not": true,
        "qustion": "<string>",
        "options": [
          "<string>"
        ],
        "suffixes": [
          123
        ],
        "min_count": 123
      }
    }
  ],
  "columns": [
    {
      "id": "<string>",
      "name": "<string>",
      "full_name": "<string>",
      "avg": {
        "question": "q999",
        "with_suffixes": {
          "datapoint": "q999_99",
          "suffixes": [
            1,
            2
          ]
        },
        "with_datapoints": {
          "datapoints": [
            "q999_99"
          ]
        }
      },
      "expression": {
        "and": [
          {}
        ],
        "or": [
          {}
        ],
        "not": true,
        "qustion": "<string>",
        "options": [
          "<string>"
        ],
        "suffixes": [
          123
        ],
        "min_count": 123
      }
    }
  ],
  "country_codes": [
    "<string>"
  ],
  "wave_codes": [
    "<string>"
  ],
  "bases": {},
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "notes": "<string>",
  "metadata": {}
}

Authorizations

Authorization
string
header
required

Body

application/json
Project to create

Project data.

uuid
string

Internal unique identifier for this project.

name
string

Name of project.

rows
object[]

Saved rows in the project.

Wrapper structure containing AudienceExpression

columns
object[]

Saved columns in the project.

Wrapper structure containing AudienceExpression

country_codes
string[]

List of saved country codes.

wave_codes
string[]

List of wave codes.

bases
object

Wrapper structure containing AudienceExpression

last_updated_at
string

The updated_at of this application or created_at of it's latest version

notes
string

Free-text field which user can enter notes in the UI

Response

200
application/json
OK

Project data.

uuid
string

Internal unique identifier for this project.

name
string

Name of project.

user_id
integer

ID of user who created this project.

org_id
string

Organisation ID

rows
object[]

Saved rows in the project.

Wrapper structure containing AudienceExpression

columns
object[]

Saved columns in the project.

Wrapper structure containing AudienceExpression

country_codes
string[]

List of saved country codes. TODO explain

wave_codes
string[]

List of wave codes.

bases
object

Bases (audiences) for this project

created_at
string

The created_at of the project

updated_at
string

The updated_at of the project

notes
string

Free-text field which user can enter notes in the UI

metadata
object

Any metadata about this project, used by Platform