Skip to content

Create Task

Request

Create Task

Security
bearerAuth
Query
inventoryIdinteger, (int64), >= 1required

ID of the inventory to be used to create the task

Example:inventoryId=1
Bodyapplication/jsonrequired

Create new workflow task priority :"LOW, MEDIUM, HIGH" type : "MISCELLANEOUS, MANUAL_INVENTORY_REVIEW, REMEDIATE_INVENTORY"

ownerstring

owner

Example:"admin"
summarystring

summary

Example:"Summary for the task"
prioritystring

priority

Enum:"LOW""MEDIUM""HIGH"
Example:"MEDIUM"
typestring

type

Enum:"MISCELLANEOUS""MANUAL_INVENTORY_REVIEW""REMEDIATE_INVENTORY"
Example:"MISCELLANEOUS"
detailsstring

details

Example:"Details of the task"
curl -i -X POST \
  'https://codeinsightapi.redocly.app/_mock/swagger/tasks?inventoryId=1' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "owner": "admin",
    "summary": "Summary for the task",
    "priority": "MEDIUM",
    "type": "MISCELLANEOUS",
    "details": "Details of the task"
  }'

Responses

Created