Created
September 22, 2024 12:24
-
-
Save GabiGrin/e501cc83805836231482e4ce51795e49 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openapi: 3.1.0 | |
info: | |
title: Tasks API | |
description: API for managing tasks, including creating new tasks. | |
version: 1.0.0 | |
servers: | |
- url: https://app.getflowcode.io/api/apps/477deaf4-1dab-42b1-9a2a-9186c4afba97 | |
description: Main (production) server for the Tasks API | |
paths: | |
/notion-tasks: | |
post: | |
operationId: createTask | |
summary: Create a new task | |
description: Endpoint to create a new task with a given title, assigned users, priority level, and optional description. | |
x-openai-isConsequential: false | |
requestBody: | |
required: true | |
content: | |
application/json: | |
schema: | |
type: object | |
properties: | |
title: | |
type: string | |
description: Title of the task to be created. | |
example: Fix user login bug | |
userId: | |
type: array | |
description: IDs of the users assigned to the task. | |
items: | |
type: string | |
enum: | |
- a239aad6-0528-42d8-8b4d-883ee2660c2c # Gabriel, CTO | |
- cc117bc0-cbcf-4a2e-9385-dbdd73eb99cb # Or, CEO | |
example: | |
- a239aad6-0528-42d8-8b4d-883ee2660c2c | |
- cc117bc0-cbcf-4a2e-9385-dbdd73eb99cb | |
priority: | |
type: string | |
description: Priority level of the task. | |
enum: | |
- High | |
- Medium | |
- Low | |
- Not sure | |
- Highestest | |
example: High | |
description: | |
type: string | |
description: Detailed description of the task. | |
example: "Investigate the login issue reported by users and provide a fix." | |
responses: | |
"200": | |
description: Task successfully created. | |
content: | |
application/json: | |
schema: | |
type: object | |
properties: | |
link: | |
type: string | |
format: uri | |
description: URL link to the newly created task. | |
example: https://app.getflowcode.io/api/apps/477deaf4-1dab-42b1-9a2a-9186c4afba97/notion-tasks/12345 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment