Code | Description |
---|---|
401 | Unauthorized |
403 | Forbidden |
422 | Unprocessable Project Template |
POST /api/project_templates { "template": { "name": "Madiga" } } 201
Param name | Description |
---|---|
template optional |
Template attributes container Validations:
|
template[name] optional |
The name of template Validations:
|
template[description] optional |
The description of template Validations:
|
template[instructions] optional |
The instructions of template Validations:
|
template[language] optional |
The language of template Validations:
|
template[professions] optional |
The professions(topics) of template Validations:
|
template[difficulty_level] optional |
Difficult level of template. Validations:
|
template[price_amount] optional |
Price in Cent Validations:
|
template[price_currency] optional |
Price currency code Validations:
|
template[ready_to_use] optional |
Ready to use Validations:
|
template[details] required |
Template details attributes container Validations:
|
template[details][html_type] optional |
Validations:
|
template[details][instruction] optional |
Validations:
|
template[details][read_only] optional |
Validations:
|
template[details][locked] optional |
Validations:
|
template[details][rules] required |
Detail rules attributes container Validations:
|
template[details][rules][type] required |
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[details][rules][parameters] required |
Rule parameters attributes container Validations:
|
template[details][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[details][rules][parameters][value] required |
Parameter value Validations:
|
template[details][custom_attributes] optional |
custom attributes of item Validations:
|