Create a repair task
POST
/v1/repair-taskscurl -X POST 'https://api.embodiflow.io/v1/repair-tasks' \
-H 'Authorization: Bearer $EMBODIFLOW_PAT' \
-H 'Content-Type: application/json' \
-d '{
"projectId": "00000000-0000-0000-0000-000000000000",
"scopeType": "project",
"datasetId": "00000000-0000-0000-0000-000000000000",
"datasetVersionId": "00000000-0000-0000-0000-000000000000",
"sourceType": "health-check",
"sourceId": "00000000-0000-0000-0000-000000000000",
"title": "string",
"description": "string",
"severity": "info",
"assigneeProjectMembershipId": "00000000-0000-0000-0000-000000000000",
"dueAt": "string"
}'认证
每个请求都需要携带个人访问令牌(PAT)。
- Authorization: Bearer PAT
请求头参数
- Idempotency-Keystring
Optional idempotency key, at most 255 characters (UUIDv4 recommended). A repeated key returns the first response byte-for-byte, including a 5xx. The same key with a different body, or a second in-flight request, returns 409 IDEMPOTENCY_CONFLICT. Keys are unique per tenant and retained for 24 hours.
请求体
Content-Typeapplication/json
- projectIdstring (uuid)必填
- scopeTypestring必填可选值projectdatasetdataset_version
- datasetIdstring (uuid) | null
- datasetVersionIdstring (uuid) | null
- sourceTypestring必填可选值health-checkworkflow-runworkflow_itemquality-ruleannotation-gapexport-jobpolicy-gatecollection-delivery-batchcollection-submission
- sourceIdstring (uuid)必填
- titlestring | null
- descriptionstring | null
- severitystring可选值infowarningblocking
- assigneeProjectMembershipIdstring (uuid) | null
- dueAtstring | null
响应
Success
- dataobject必填
- idstring必填
- tenantIdstring必填
- projectIdstring必填
- scopeTypestring必填可选值datasetprojectdataset_version
- datasetIdstring | null必填
- datasetVersionIdstring | null必填
- sourceTypestring必填可选值health-checkworkflow-runworkflow_itemquality-ruleannotation-gapexport-jobpolicy-gatecollection-delivery-batchcollection-submission
- sourceIdstring必填
- titlestring | null必填
- descriptionstring | null必填
- severitystring必填可选值warninginfoblocking
- statusstring必填可选值in_progressopenresolvedwaived
- assigneeobject必填
- dueAtstring | null必填
- resolutionstring | null必填可选值fixedwaivedduplicatenot_reproducible
- waiveReasonstring | null必填
- waivedAtstring | null必填
- waivedByobject必填
- resolvedAtstring | null必填
- createdAtstring必填
- updatedAtstring必填
- deduplicatedone of
响应示例
{
"data": {
"id": "string",
"tenantId": "string",
"projectId": "string",
"scopeType": "dataset",
"datasetId": "string",
"datasetVersionId": "string",
"sourceType": "health-check",
"sourceId": "string",
"title": "string",
"description": "string",
"severity": "warning",
"status": "in_progress",
"assignee": {
"projectMembershipId": "string",
"membershipId": "string",
"displayName": "string"
},
"dueAt": "string",
"resolution": "fixed",
"waiveReason": "string",
"waivedAt": "string",
"waivedBy": {
"membershipId": "string",
"displayName": "string"
},
"resolvedAt": "string",
"createdAt": "string",
"updatedAt": "string",
"deduplicated": false
}
}服务器https://api.embodiflow.io/v1https://api.embodiflow.dev/v1