Skip to content

Commit

Permalink
Changes to API docs for 2024.3 release (#1347)
Browse files Browse the repository at this point in the history
* changes to API docs for 2024.3 release

* Small changes in response to review comments
  • Loading branch information
ktuite authored Dec 17, 2024
1 parent efdbc3a commit 92f1186
Showing 1 changed file with 15 additions and 25 deletions.
40 changes: 15 additions & 25 deletions docs/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,14 @@ info:

## ODK Central v2024.3

**Added**:
- Endpoints for managing [User Preferences](/central-api-accounts-and-users/#user-preferences), mainly to be used by the frontend.

**Changed**:

- [Submissions Odata]() now returns `__system/deletedAt`. It can also be used in $filter, $sort and $select query parameters.
- Dataset (Entity List) properties with the same name but different capitalization are not allowed.
- Form Attachments for both [published Forms](/central-api-form-management/#listing-form-attachments) and [draft Forms](/central-api-form-management/#listing-expected-draft-form-attachments) now return a property representing the hash of the attachment file.

## ODK Central v2024.2

Expand Down Expand Up @@ -847,6 +851,7 @@ tags:
* `form.update.draft.set` when a Draft Form definition is set.
* `form.update.draft.delete` when a Draft Form definition is deleted.
* `form.update.publish` when a Draft Form is published to the Form.
* `form.update.draft.replace` when a Draft Form is changed in place.
* `form.attachment.update` when a Form Attachment binary is set or cleared.
* `form.submissions.export` when a Form's Submissions are exported to CSV.
* `form.delete` when a Form is deleted.
Expand All @@ -872,6 +877,7 @@ tags:
* `submission.backlog.hold` when an Entity Submission is first held in processing backlog.
* `submission.backlog.reprocess` when an Entity Submission is reprocessed and removed from the backlog.
* `submission.backlog.force` when an Entity Submission is force-processed after being in backlog.
* `upgrade.process.form.entities_version` when Central flags an Entity-related Form for a potential automatic upgrade.
* `dataset.create` when a Dataset is created.
* `dataset.update` when a Dataset is updated.
* `dataset.update.publish` when a Dataset is published.
Expand Down Expand Up @@ -1553,13 +1559,6 @@ paths:
schema:
type: string
example: "frobwazzleEnabled"
- name: Authorization
in: header
description: Bearer encoding of a token of the user whose preferences to operate on
required: true
schema:
type: string
example: Bearer lSpAIeksRu1CNZs7!qjAot2T17dPzkrw9B4iTtpj7OoIJBmXvnHM8z8Ka4QPEjR7
responses:
200:
description: The preference was stored
Expand Down Expand Up @@ -1592,13 +1591,6 @@ paths:
schema:
type: string
example: "frobwazzleEnabled"
- name: Authorization
in: header
description: Bearer encoding of a token of the user whose preferences to operate on
required: true
schema:
type: string
example: Bearer lSpAIeksRu1CNZs7!qjAot2T17dPzkrw9B4iTtpj7OoIJBmXvnHM8z8Ka4QPEjR7
requestBody:
content:
'application/json':
Expand Down Expand Up @@ -1639,13 +1631,6 @@ paths:
schema:
type: string
example: "frobwazzleEnabled"
- name: Authorization
in: header
description: Bearer encoding of a token of the user whose preferences to operate on
required: true
schema:
type: string
example: Bearer lSpAIeksRu1CNZs7!qjAot2T17dPzkrw9B4iTtpj7OoIJBmXvnHM8z8Ka4QPEjR7
responses:
200:
description: The preference was deleted
Expand Down Expand Up @@ -3852,7 +3837,9 @@ paths:
summary: Listing Form Attachments
description: This endpoint allows you to fetch the list of expected attachment
files, and will tell you whether the server is in possession of each file
or not. To modify an attachment, you'll need to create a Draft.
or not, and a hash of the file contents. To modify an attachment, you'll need to
create a Draft. The property `datasetExists` indicates whether the attachment is
a link to a Dataset instead of an actual file.
operationId: Listing Form Attachments
parameters:
- name: projectId
Expand Down Expand Up @@ -3883,7 +3870,8 @@ paths:
type: image
exists: true
blobExists: true
datasetExists: true
datasetExists: false
hash: 'd41d8cd98f00b204e9800998ecf8427e'
updatedAt: 2018-03-21T12:45:02.312Z
403:
description: Forbidden
Expand Down Expand Up @@ -4411,7 +4399,8 @@ paths:
type: image
exists: true
blobExists: true
datasetExists: true
datasetExists: false
hash: 'd41d8cd98f00b204e9800998ecf8427e'
updatedAt: 2018-03-21T12:45:02.312Z
403:
description: Forbidden
Expand Down Expand Up @@ -5112,7 +5101,8 @@ paths:
type: image
exists: true
blobExists: true
datasetExists: true
datasetExists: false
hash: 'd41d8cd98f00b204e9800998ecf8427e'
updatedAt: 2018-03-21T12:45:02.312Z
403:
description: Forbidden
Expand Down

0 comments on commit 92f1186

Please sign in to comment.