[AI66-1]FTO Search - Create Task

post
https://connect.patsnap.com/fto_steps/create_task
Try in Sandbox

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

NameTypeExampleDescription
task_id
stringfto-20260928-a1b2c3d4
Task ID (optional); auto-generated as fto-{yyyymmdd}-{8-hex} when omitted.
tech_description
Required
string一种基于机器学习的图像识别系统,能够自动识别产品缺陷
Technical proposal description text, required. Persisted as technical_proposal for later steps to read back by task_id.
country
array[ "CN" ]
Filing office filter; omitted means this filter is not set.
legal_status
array[ 1, 2 ]
Simple legal status list (used for SO query filtering; e.g. 1=active, 2=pending, 3=lapsed).
include_company
array[ "华为技术有限公司" ]
Include-only company list (applicant/assignee whitelist).
exclude_company
array[ "某公司A" ]
Excluded company list (applicant/assignee blacklist).
apd_start
string2020-01-01
Start date (application/publication date filter, format YYYY-MM-DD).
apd_end
string2023-12-31
End date (application/publication date filter, format YYYY-MM-DD).
input_lang
stringcn
Input language: cn / en / tw / jp. This step does not currently use this field (kept for compatibility, safe to ignore).
image_file_keys
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 NameTypeExampleDescription
status
Required
stringcreated
Always created, meaning persistence has completed (synchronous operation, no running intermediate state).
task_id
Required
stringfto-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 CodeDescription
68300004Invalid parameter!
68300005Search api failure!
68300006Analytic basic access error!
68300007Bad request!
68300008Service error, please try again later!
68300010The file does not comply with upload specifications!

Platform Errors

Error CodeDescription
67200000API call exceeds the total limit set by the platform!
67200001API call exceeds the total limit set by the platform!
67200002The current call rate is too fast, exceeding the current configuration limit QPS!
67200003The key and secret parameters for applying for the token are incorrect or the client has been disabled!
67200004The requested api does not have permission. Please contact our support personnel!
67200005Insufficient account balance/number of calls!
67200006The client has exceeded the activation validity period!
67200007The current call exceeds the configured usage limit of the day!
67200008Please check if the required apikey in the query parameter has been transmitted!
67200009The apikey does not match the passed bearerToken. Please check if a valid token is being used!
67200012The request is illegal!
67200100The current server status is busy, request response timeout!
67200101The API requested currently does not exist. Please check the request path!

HTTP Status Codes

Status CodeDescription
0Success
422Validation Error
500落库失败