Skip to content

Commit dcb51d3

Browse files
authored
Merge pull request #41 from glideapps/api-update-glide-pr-33138
OpenAPI spec update from glideapps/glide#33138
2 parents 6ccfe83 + e6ea8ea commit dcb51d3

File tree

2 files changed

+77
-2
lines changed

2 files changed

+77
-2
lines changed

api-reference/v2/resources/changelog.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ title: Glide API Changelog
33
sidebarTitle: Changelog
44
---
55

6+
### April 1, 2025
7+
8+
- Clarified that the version supplied in the `If-Match` header is compared against the row version, not the table version, in the Update Row endpoint.
9+
- Added HTTP 412 Precondition Failed as a possible error for endpoints that accept an `If-Match` header.
10+
611
### December 13, 2024
712

813
- Clarified that endpoints return row IDs in the same order as the input rows.

openapi/swagger.json

Lines changed: 72 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,41 @@
609609
}
610610
}
611611
},
612+
"412": {
613+
"description": "",
614+
"content": {
615+
"application/json": {
616+
"schema": {
617+
"type": "object",
618+
"properties": {
619+
"error": {
620+
"type": "object",
621+
"properties": {
622+
"type": {
623+
"type": "string",
624+
"enum": [
625+
"precondition_failed"
626+
]
627+
},
628+
"message": {
629+
"type": "string"
630+
}
631+
},
632+
"required": [
633+
"type",
634+
"message"
635+
],
636+
"additionalProperties": false
637+
}
638+
},
639+
"required": [
640+
"error"
641+
],
642+
"additionalProperties": false
643+
}
644+
}
645+
}
646+
},
612647
"422": {
613648
"description": "",
614649
"content": {
@@ -655,7 +690,7 @@
655690
"schema": {
656691
"type": "string",
657692
"pattern": "^\"[0-9]+\"$",
658-
"description": "ETag of the current table version. If provided, the request will fail if the table has been updated since this version."
693+
"description": "ETag of the current table version. If provided, the request will fail if the table has been updated since the given version. See [Data Versioning](/api-reference/v2/tables/versioning)."
659694
},
660695
"required": false
661696
},
@@ -1449,6 +1484,41 @@
14491484
}
14501485
}
14511486
},
1487+
"412": {
1488+
"description": "",
1489+
"content": {
1490+
"application/json": {
1491+
"schema": {
1492+
"type": "object",
1493+
"properties": {
1494+
"error": {
1495+
"type": "object",
1496+
"properties": {
1497+
"type": {
1498+
"type": "string",
1499+
"enum": [
1500+
"precondition_failed"
1501+
]
1502+
},
1503+
"message": {
1504+
"type": "string"
1505+
}
1506+
},
1507+
"required": [
1508+
"type",
1509+
"message"
1510+
],
1511+
"additionalProperties": false
1512+
}
1513+
},
1514+
"required": [
1515+
"error"
1516+
],
1517+
"additionalProperties": false
1518+
}
1519+
}
1520+
}
1521+
},
14521522
"422": {
14531523
"description": "",
14541524
"content": {
@@ -1494,7 +1564,7 @@
14941564
"schema": {
14951565
"type": "string",
14961566
"pattern": "^\"[0-9]+\"$",
1497-
"description": "ETag of the current table version. If provided, the request will fail if the table has been updated since this version."
1567+
"description": "ETag of the current table version. If provided, the request will fail if this row has been updated since the given version. See [Data Versioning](/api-reference/v2/tables/versioning)."
14981568
},
14991569
"required": false
15001570
},

0 commit comments

Comments
 (0)