Skip to content

Commit

Permalink
API - Update API doc to add PUT on columns
Browse files Browse the repository at this point in the history
  • Loading branch information
fflorent committed Aug 2, 2023
1 parent 036fa5d commit 1f91993
Showing 1 changed file with 30 additions and 2 deletions.
32 changes: 30 additions & 2 deletions api/grist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -895,7 +895,35 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/PatchColumns"
$ref: "#/components/schemas/UpdateColumns"
required: true
responses:
200:
description: Success
put:
operationId: "replaceColumns"
tags:
- columns
summary: "Add or update columns of a table"
parameters:
- $ref: '#/components/parameters/docIdPathParam'
- $ref: '#/components/parameters/tableIdPathParam'
- in: query
name: noadd
schema:
type: boolean
description: "Set to true to prohibit adding records."
- in: query
name: noupdate
schema:
type: boolean
description: "Set to true to prohibit updating records."
requestBody:
description: The columns to add or update.
content:
application/json:
schema:
$ref: "#/components/schemas/UpdateColumns"
required: true
responses:
200:
Expand Down Expand Up @@ -1666,7 +1694,7 @@ components:
fields:
type: Choice
widgetOptions: "{\"choices\":[\"New\",\"Old\"],\"choiceOptions\":{\"New\":{\"fillColor\":\"#FF0000\",\"textColor\":\"#FFFFFF\"}}}"
PatchColumns:
UpdateColumns:
type: object
required:
- columns
Expand Down

0 comments on commit 1f91993

Please sign in to comment.