| Code | Description |
|---|---|
| 401 | Unauthorized |
| 403 | Forbidden |
POST /api/project_templates/59c241d4a83dc1219d4f290a/details/multi_persist
{
"template_details": [
{
"html_type": "h1",
"instruction": "instruction"
},
{
"html_type": "h2",
"instruction": "instruction c",
"detail_id": {
"$oid": "59c241d4a83dc1219d4f290c"
}
},
{
"html_type": "h2",
"instruction": "instruction 2"
}
],
"template_detail": {
"template_details": [
{
"html_type": "h1",
"instruction": "instruction"
},
{
"html_type": "h2",
"instruction": "instruction c",
"detail_id": {
"$oid": "59c241d4a83dc1219d4f290c"
}
},
{
"html_type": "h2",
"instruction": "instruction 2"
}
]
}
}
200
| Param name | Description |
|---|---|
|
project_template_id required |
Project template id Validations:
|
|
template_detail optional |
Project template detail parameter container. Validations:
|
|
template_detail[item_id] required |
Item id Validations:
|
|
template_detail[instruction] optional |
Instruction of detail. Validations:
|
|
template_detail[rules] required |
Rule container Validations:
|
|
template_detail[rules][type] optional |
The type of rule. Available types are: word_count,character_count,main_keyword,sub_keyword,alternative_keywords,pixel_size,list_item,negative_keywords Validations:
|
|
template_detail[rules][parameters] required |
Rule parameter container Validations:
|
|
template_detail[rules][parameters][name] required |
The name of parameter. Available parameters are: minimum,maximum,repetition,location,match,index,indexes,current,keyword,keywords,height,width,list_type,current_width,min_width,max_width,current_height,min_height,max_height Validations:
|
|
template_detail[rules][parameters][value] required |
The value of parameter name Validations:
|
|
template_detail[custom_attributes] optional |
custom attributes of item Validations:
|
|
item_id required |
Item id Validations:
|