Skip to content

Commit 7464dae

Browse files
jirkasemmlerclaude
andcommitted
fix: correct operationParams structure and HTTP 400 for validation errors in Apiary docs
- operationParams is a flat map (workspaceId, objects as JSON string), not nested under params - validation errors (empty objects list) return HTTP 400, not 422 - restore missing non-branch endpoint section Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 614067a commit 7464dae

1 file changed

Lines changed: 58 additions & 7 deletions

File tree

apiary.apib

Lines changed: 58 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6041,6 +6041,58 @@ Returns a list of objects (tables and views) present in the workspace schema in
60416041
Returned when the workspace backend is not supported.
60426042
60436043
6044+
## Batch Delete Workspace Objects [/v2/storage/workspaces/{workspace_id}/objects/batch-delete]
6045+
6046+
### Batch Delete Workspace Objects [POST]
6047+
6048+
Deletes multiple tables and views from a workspace in a single async operation. Returns a job. All objects are attempted even if some fail, but the job will be marked as failed if any deletion fails.
6049+
6050+
+ Parameters
6051+
+ workspace_id (required, number) - Workspace ID
6052+
6053+
+ Request (application/json)
6054+
+ Headers
6055+
6056+
X-StorageApi-Token: your_token
6057+
6058+
+ Body
6059+
6060+
{
6061+
"objects": ["MY_TABLE", "MY_VIEW"]
6062+
}
6063+
6064+
+ Response 202 (application/json)
6065+
6066+
+ Body
6067+
6068+
{
6069+
"id": 12345,
6070+
"status": "waiting",
6071+
"url": "https://connection.keboola.com/v2/storage/jobs/12345",
6072+
"operationName": "workspaceBatchDeleteObjects",
6073+
"operationParams": {
6074+
"workspaceId": "456",
6075+
"objects": "[\"MY_TABLE\",\"MY_VIEW\"]"
6076+
},
6077+
"createdTime": "2013-05-31T16:11:05+0200",
6078+
"startTime": null,
6079+
"endTime": null,
6080+
"runId": null,
6081+
"results": null,
6082+
"creatorToken": {
6083+
"id": "27978",
6084+
"description": "user@keboola.com"
6085+
}
6086+
}
6087+
6088+
+ Response 400 (application/json)
6089+
6090+
Returned when the request body is invalid (e.g. empty objects list).
6091+
6092+
+ Response 404 (application/json)
6093+
6094+
Returned when the workspace is not found.
6095+
60446096
## Batch Delete Development Branch Workspace Objects [/v2/storage/branch/{branch_id}/workspaces/{workspace_id}/objects/batch-delete]
60456097
60466098
### Batch Delete Development Branch Workspace Objects [POST]
@@ -6072,9 +6124,8 @@ Deletes multiple tables and views from a workspace in a [Development Branch](#re
60726124
"url": "https://connection.keboola.com/v2/storage/jobs/12345",
60736125
"operationName": "workspaceBatchDeleteObjects",
60746126
"operationParams": {
6075-
"params": {
6076-
"objects": ["MY_TABLE", "MY_VIEW"]
6077-
}
6127+
"workspaceId": "456",
6128+
"objects": "[\"MY_TABLE\",\"MY_VIEW\"]"
60786129
},
60796130
"createdTime": "2013-05-31T16:11:05+0200",
60806131
"startTime": null,
@@ -6087,13 +6138,13 @@ Deletes multiple tables and views from a workspace in a [Development Branch](#re
60876138
}
60886139
}
60896140
6090-
+ Response 404 (application/json)
6141+
+ Response 400 (application/json)
60916142
6092-
Returned when the workspace is not found.
6143+
Returned when the request body is invalid (e.g. empty objects list).
60936144
6094-
+ Response 422 (application/json)
6145+
+ Response 404 (application/json)
60956146
6096-
Returned when the request body is invalid (e.g. empty objects list).
6147+
Returned when the workspace is not found.
60976148
60986149
60996150
## Data Structures

0 commit comments

Comments
 (0)