diff --git a/content/en/api/v2/reference-tables/examples.json b/content/en/api/v2/reference-tables/examples.json index da26ee87e2d..a9b0711464a 100644 --- a/content/en/api/v2/reference-tables/examples.json +++ b/content/en/api/v2/reference-tables/examples.json @@ -665,7 +665,10 @@ { "attributes": { "values": { - "": "undefined" + "": { + "example": "undefined", + "type": "undefined" + } } }, "id": "primary_key_value", @@ -673,7 +676,7 @@ } ] }, - "html": "
\n
\n
\n
\n

data [required]

\n
\n

[object]

\n
\n
\n
\n
\n
\n
\n

attributes

\n
\n

object

\n

Attributes containing row data values for row creation or update operations.

\n
\n
\n
\n
\n
\n

values [required]

\n
\n

object

\n

Key-value pairs representing row data, where keys are field names from the schema.

\n
\n
\n
\n
\n
\n

<any-key>

\n
\n

\n
\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

id [required]

\n
\n

string

\n
\n
\n \n
\n
\n
\n
\n
\n

type [required]

\n
\n

enum

\n

Row resource type. \nAllowed enum values: row

default: row

\n
\n \n
\n
\n
\n
" + "html": "
\n
\n
\n
\n

data [required]

\n
\n

[object]

\n
\n
\n
\n
\n
\n
\n

attributes

\n
\n

object

\n

Attributes containing row data values for row creation or update operations.

\n
\n
\n
\n
\n
\n

values [required]

\n
\n

object

\n

Key-value pairs representing row data, where keys are schema field names and values match the corresponding column types.

\n
\n
\n
\n
\n
\n

<any-key>

\n
\n

 <oneOf>

\n

Types allowed for Reference Table row values.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

string

\n
\n
\n \n
\n
\n
\n
\n
\n

Option 2

\n
\n

int32

\n
\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

id [required]

\n
\n

string

\n
\n
\n \n
\n
\n
\n
\n
\n

type [required]

\n
\n

enum

\n

Row resource type. \nAllowed enum values: row

default: row

\n
\n \n
\n
\n
\n
" } }, "CreateReferenceTableUpload": { diff --git a/data/api/v2/full_spec.yaml b/data/api/v2/full_spec.yaml index 71890450485..7243f3fb467 100644 --- a/data/api/v2/full_spec.yaml +++ b/data/api/v2/full_spec.yaml @@ -7061,19 +7061,27 @@ components: BatchUpsertRowsRequestDataAttributes: description: Attributes containing row data values for row creation or update operations. + example: + values: {} properties: values: additionalProperties: - x-required-field: true - description: Key-value pairs representing row data, where keys are field - names from the schema. - example: - example_key_value: primary_key_value - name: row_name + $ref: '#/components/schemas/BatchUpsertRowsRequestDataAttributesValue' + description: Key-value pairs representing row data, where keys are schema + field names and values match the corresponding column types. type: object required: - values type: object + BatchUpsertRowsRequestDataAttributesValue: + description: Types allowed for Reference Table row values. + oneOf: + - example: row_name + type: string + - example: 25 + format: int32 + maximum: 2147483647 + type: integer BillConfig: description: Bill config. properties: @@ -79856,6 +79864,18 @@ paths: requestBody: content: application/json: + examples: + happy_path: + summary: Upsert a row with mixed string and int values + value: + data: + - attributes: + values: + age: 25 + example_key_value: primary_key_value + name: row_name + id: primary_key_value + type: row schema: $ref: '#/components/schemas/BatchUpsertRowsRequestArray' required: true