import MethodEndpoint from "@theme/ApiExplorer/MethodEndpoint"; import ParamsDetails from "@theme/ParamsDetails"; import RequestSchema from "@theme/RequestSchema"; import StatusCodes from "@theme/StatusCodes"; import OperationTabs from "@theme/OperationTabs"; import TabItem from "@theme/TabItem"; import Heading from "@theme/Heading"; import Translate from "@docusaurus/Translate";
<Heading as={"h1"} className={"openapi__heading"} children={"Create or get user task"}
<MethodEndpoint method={"post"} path={"/tasks/{userName}"} context={"endpoint"}
Create or get an existing task for the user (async only). If a task with the same type, version, and parameters exists, returns it immediately. Otherwise creates and queues the task.
<Heading id={"request"} as={"h2"} className={"openapi-tabs__heading"}
<ParamsDetails {...require("./create-user-task.ParamsDetails.json")}
<RequestSchema {...require("./create-user-task.RequestSchema.json")}
<StatusCodes {...require("./create-user-task.StatusCodes.json")}