diff --git a/docs/api/v1/openapi.yml b/docs/api/v1/openapi.yml index 21a957566..d6ca5a569 100644 --- a/docs/api/v1/openapi.yml +++ b/docs/api/v1/openapi.yml @@ -398,6 +398,56 @@ paths: $ref: '#/components/responses/notFound' '409': $ref: '#/components/responses/conflict' + /executions/{id}/tags: + get: + x-eov-operation-id: getExecutionTags + x-eov-operation-handler: v1/handlers/executions/executions.handler + tags: + - Execution + summary: Get execution tags + description: Get annotation tags for an execution. + parameters: + - $ref: '#/components/parameters/executionId' + responses: + '200': + description: List of annotation tags + content: + application/json: + schema: + $ref: '#/components/schemas/executionTags' + '401': + $ref: '#/components/responses/unauthorized' + '404': + $ref: '#/components/responses/notFound' + put: + x-eov-operation-id: updateExecutionTags + x-eov-operation-handler: v1/handlers/executions/executions.handler + tags: + - Execution + summary: Update tags of an execution + description: Update annotation tags of an execution. + parameters: + - $ref: '#/components/parameters/executionId' + requestBody: + description: List of annotation tag IDs + content: + application/json: + schema: + $ref: '#/components/schemas/tagIds' + required: true + responses: + '200': + description: List of tags after updating + content: + application/json: + schema: + $ref: '#/components/schemas/executionTags' + '400': + $ref: '#/components/responses/badRequest' + '401': + $ref: '#/components/responses/unauthorized' + '404': + $ref: '#/components/responses/notFound' /tags: post: x-eov-operation-id: createTag @@ -2090,6 +2140,21 @@ components: type: string format: date-time readOnly: true + executionTags: + type: array + items: + $ref: '#/components/schemas/tag' + tagIds: + type: array + items: + type: object + additionalProperties: false + required: + - id + properties: + id: + type: string + example: 2tUt1wbLX592XDdX tagList: type: object properties: @@ -2463,17 +2528,6 @@ components: type: array items: $ref: '#/components/schemas/tag' - tagIds: - type: array - items: - type: object - additionalProperties: false - required: - - id - properties: - id: - type: string - example: 2tUt1wbLX592XDdX user: required: - email