| Code | Description |
|---|---|
| 401 | Unauthorized |
| 403 | Forbidden |
GET /api/project_templates 401
| Param name | Description |
|---|---|
|
offset optional |
items start position Validations:
|
|
count optional |
items count in payload Validations:
|
|
order_by optional |
items sort field Validations:
|
|
order_asc optional |
items sort order Validations:
|
|
mode optional |
retrieve templates from: account or library Validations:
|
|
search optional |
Validations:
|
|
q optional |
Validations:
|
|
assumption optional |
Find the exact match(s) for the assumption Validations:
|
| Code | Description |
|---|---|
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Template Not Found. |
| Param name | Description |
|---|---|
|
id required |
Template Id. Validations:
|
| 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:
|
| Code | Description |
|---|---|
| 401 | Unauthorized |
| 403 | Forbidden |
| 422 | Unprocessable Project Template |
| 404 | Template Not Found. |
PUT /api/project_templates/59c241f9a83dc1219d4f4e70
{
"template": {
"name": "agidaM"
}
}
204
| Param name | Description |
|---|---|
|
id required |
Template ID. Validations:
|
|
template optional |
Project template parameter container Validations:
|
|
template[name] optional |
Template name Validations:
|
| Code | Description |
|---|---|
| 401 | Unauthorized |
| 403 | Forbidden |
| 422 | Unprocessable Project Template |
| 404 | Template Not Found. |
| Param name | Description |
|---|---|
|
id required |
Template ID. Validations:
|
| Code | Description |
|---|---|
| 401 | Unauthorized |
| 403 | Forbidden |
| 422 | Unprocessable Project Template |
| 404 | Template Not Found. |
| Param name | Description |
|---|---|
|
id required |
Template Id Validations:
|
|
project_id optional |
Project Id Validations:
|
|
domain_id optional |
Domain Id Validations:
|
| Code | Description |
|---|---|
| 401 | Unauthorized |
| 403 | Forbidden |
| 422 | Unprocessable Project Template |
| 404 | Template Not Found. |
| 422 | Unprocessable Project Template |
DELETE /api/project_templates/59c241f9a83dc1219d4f4e7b 204
| Param name | Description |
|---|---|
|
id required |
Template ID. Validations:
|
| Code | Description |
|---|---|
| 401 | Unauthorized |
| 403 | Forbidden |
| Param name | Description |
|---|---|
|
term required |
keyword to be searched Validations:
|
|
mode optional |
mode to retrieve templates from: account or library Validations:
|
| Code | Description |
|---|---|
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Template Not Found. |
| 422 | Unprocessable Account |
| 422 | Unprocessable Project Template |
| Param name | Description |
|---|---|
|
id required |
Template ID. Validations:
|
| Code | Description |
|---|---|
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Template Not Found. |
| 422 | Unprocessable Account |
| 422 | Unprocessable Project Template |
| Param name | Description |
|---|---|
|
id required |
Template ID. Validations:
|
| Code | Description |
|---|---|
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Template Not Found. |
| Param name | Description |
|---|---|
|
content_order_id required |
Content Order Id Validations:
|
| Code | Description |
|---|---|
| 401 | Unauthorized |
| 403 | Forbidden |
| 422 | Unprocessable entry |
| Param name | Description |
|---|---|
|
file optional |
File that contains prices Validations:
|
| Code | Description |
|---|---|
| 401 | Unauthorized |
| 403 | Forbidden |
| Code | Description |
|---|---|
| 401 | Unauthorized |
| 403 | Forbidden |
| 422 | Unprocessable entry |
| Param name | Description |
|---|---|
|
file optional |
File that contains json data Validations:
|
| Code | Description |
|---|---|
| 401 | Unauthorized |
| 403 | Forbidden |
| Code | Description |
|---|---|
| 401 | Unauthorized |
| 403 | Forbidden |
| Param name | Description |
|---|---|
|
html_type required |
html type of the instruction Validations:
|
|
language required |
language of the instruction Validations:
|
|
instructions required |
Instructions array of text Validations:
|
| Code | Description |
|---|---|
| 401 | Unauthorized |
| 403 | Forbidden |
| Param name | Description |
|---|---|
|
details required |
details of the template Validations:
|
|
template required |
template to be validate Validations:
|
| Code | Description |
|---|---|
| 401 | Unauthorized |
| 403 | Forbidden |
| Param name | Description |
|---|---|
|
name required |
Template name Validations:
|
|
order_type required |
Template order type Validations:
|
|
language required |
Template language Validations:
|
|
genre required |
Template genre Validations:
|
|
html_text required |
html text to parse into template Validations:
|
| Code | Description |
|---|---|
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Template Not Found. |
| Param name | Description |
|---|---|
|
domain_id required |
Domain Id Validations:
|