diff --git a/schema/openapi.d.ts b/schema/openapi.d.ts index cafc3cb0..9d1778a3 100644 --- a/schema/openapi.d.ts +++ b/schema/openapi.d.ts @@ -233,8 +233,8 @@ export interface paths { }; }; }; - "/accessions/{id}/pubdate": { - /** @description Update the publication date of the accession. */ + "/accessions/{id}/hold_date": { + /** @description Update the hold date of the accession. */ put: { parameters: { path: { @@ -245,7 +245,7 @@ export interface paths { content: { "application/json": { /** Format: date */ - pubdate: string | null; + hold_date: string; }; }; }; diff --git a/schema/openapi.yml b/schema/openapi.yml index a8e438a6..e3100f97 100644 --- a/schema/openapi.yml +++ b/schema/openapi.yml @@ -517,9 +517,9 @@ paths: '404': $ref: '#/components/responses/NotFound' - /accessions/{id}/pubdate: + /accessions/{id}/hold_date: put: - description: Update the publication date of the accession. + description: Update the hold date of the accession. tags: - Accession @@ -533,14 +533,11 @@ paths: schema: type: object additionalProperties: false - required: [pubdate] + required: [hold_date] properties: - pubdate: - type: - - string - - 'null' - + hold_date: + type: string format: date responses: diff --git a/schema/openapi.yml.erb b/schema/openapi.yml.erb index c65382fe..942588b2 100644 --- a/schema/openapi.yml.erb +++ b/schema/openapi.yml.erb @@ -497,9 +497,9 @@ paths: '404': $ref: '#/components/responses/NotFound' - /accessions/{id}/pubdate: + /accessions/{id}/hold_date: put: - description: Update the publication date of the accession. + description: Update the hold date of the accession. tags: - Accession @@ -513,14 +513,11 @@ paths: schema: type: object additionalProperties: false - required: [pubdate] + required: [hold_date] properties: - pubdate: - type: - - string - - 'null' - + hold_date: + type: string format: date responses: