[AI66-1]FTO Search - Create Task
Create/trigger an FTO task: generates or reuses a task_id and persists the technical proposal plus search filters (country/legal_status/include_company/exclude_company/apd_start/apd_end/input_lang/image_file_keys). A purely synchronous database write; no background task or polling, no pipeline step is triggered, and no step lock is held; persistence is complete by the time the response returns. Later steps (proposal_refine, feature_extraction, etc.) under the same task_id may omit technical_proposal and will read back the proposal persisted here.
Request Parameters
List of parameters supported by this API endpoint
| Name | Type | Example | Description |
|---|---|---|---|
| string | fto-20260928-a1b2c3d4 | Task ID (optional); auto-generated as fto-{yyyymmdd}-{8-hex} when omitted. |
Required | string | 一种基于机器学习的图像识别系统,能够自动识别产品缺陷 | Technical proposal description text, required. Persisted as technical_proposal for later steps to read back by task_id. |
| array | [
"CN"
] | Filing office filter; omitted means this filter is not set. |
| array | [
1,
2
] | Simple legal status list (used for SO query filtering; e.g. 1=active, 2=pending, 3=lapsed). |
| array | [
"华为技术有限公司"
] | Include-only company list (applicant/assignee whitelist). |
| array | [
"某公司A"
] | Excluded company list (applicant/assignee blacklist). |
| string | 2020-01-01 | Start date (application/publication date filter, format YYYY-MM-DD). |
| string | 2023-12-31 | End date (application/publication date filter, format YYYY-MM-DD). |
| string | cn | Input language: cn / en / tw / jp. This step does not currently use this field (kept for compatibility, safe to ignore). |
| array | [
"file_key_1",
"file_key_2"
] | List of image file keys, used by the proposal_refine step's multimodal refinement. |
Response Schema
Structure of the API response data
| Field Name | Type | Example | Description |
|---|---|---|---|
statusRequired | string | created | Always created, meaning persistence has completed (synchronous operation, no running intermediate state). |
task_idRequired | string | fto-20260928-a1b2c3d4 | Task ID (newly generated or the caller-supplied value being reused). |
Success Response Example
Example of a successful API response
JSON
{
"status": true,
"task_id": "fto-20260928-a1b2c3d4",
"error_code": 0
}Error Codes
List of possible error codes returned by this endpoint
Business Errors
| Error Code | Description |
|---|---|
68300004 | Invalid parameter! |
68300005 | Search api failure! |
68300006 | Analytic basic access error! |
68300007 | Bad request! |
68300008 | Service error, please try again later! |
68300010 | The file does not comply with upload specifications! |
Platform Errors
| Error Code | Description |
|---|---|
67200000 | API call exceeds the total limit set by the platform! |
67200001 | API call exceeds the total limit set by the platform! |
67200002 | The current call rate is too fast, exceeding the current configuration limit QPS! |
67200003 | The key and secret parameters for applying for the token are incorrect or the client has been disabled! |
67200004 | The requested api does not have permission. Please contact our support personnel! |
67200005 | Insufficient account balance/number of calls! |
67200006 | The client has exceeded the activation validity period! |
67200007 | The current call exceeds the configured usage limit of the day! |
67200008 | Please check if the required apikey in the query parameter has been transmitted! |
67200009 | The apikey does not match the passed bearerToken. Please check if a valid token is being used! |
67200012 | The request is illegal! |
67200100 | The current server status is busy, request response timeout! |
67200101 | The API requested currently does not exist. Please check the request path! |
HTTP Status Codes
| Status Code | Description |
|---|---|
0 | Success |
422 | Validation Error |
500 | 落库失败 |