GET /api/templates/1007981895/foreign_input_sets
200
{
"total": 1,
"subtotal": 1,
"page": 1,
"per_page": 20,
"search": null,
"sort": {
"by": null,
"order": null
},
"results": [
{
"template_id": 1007981895,
"target_template_name": "Job template 268",
"include_all": true,
"include": null,
"exclude": null,
"id": 19,
"target_template_id": 1007981896
}
]
}
| Param name | Description |
|---|---|
|
location_id
optional |
Set the current location context for the request Validations:
|
|
organization_id
optional |
Set the current organization context for the request Validations:
|
|
template_id
required |
Validations:
|
|
search
optional |
filter results Validations:
|
|
order
optional |
Sort and order by a searchable field, e.g. '<field> DESC' Validations:
|
|
page
optional |
Page number, starting at 1 Validations:
|
|
per_page
optional |
Number of results per page to return, 'all' to return all results Validations:
|
GET /api/templates/1007981901-Job%20template%20273/foreign_input_sets/21
200
{
"template_id": 1007981901,
"target_template_name": "Job template 274",
"include_all": true,
"include": null,
"exclude": null,
"id": 21,
"target_template_id": 1007981902
}
| Param name | Description |
|---|---|
|
location_id
optional |
Set the current location context for the request Validations:
|
|
organization_id
optional |
Set the current organization context for the request Validations:
|
|
template_id
required |
Validations:
|
|
id
required |
Validations:
|
POST /api/templates/1007981907-Job%20template%20279/foreign_input_sets
{
"foreign_input_set": {
"target_template_id": 1007981909
}
}
201
{
"template_id": 1007981907,
"target_template_name": "Job template 281",
"include_all": true,
"include": null,
"exclude": null,
"id": 24,
"target_template_id": 1007981909
}
| Param name | Description |
|---|---|
|
location_id
optional |
Set the current location context for the request Validations:
|
|
organization_id
optional |
Set the current organization context for the request Validations:
|
|
template_id
required |
Validations:
|
|
foreign_input_set
required |
Validations:
|
|
foreign_input_set[target_template_id]
required |
Target template ID Validations:
|
|
foreign_input_set[include_all]
optional , nil allowed |
Include all inputs from the foreign template Validations:
|
|
foreign_input_set[include]
optional , nil allowed |
A comma separated list of input names to be included from the foreign template. Validations:
|
|
foreign_input_set[exclude]
optional , nil allowed |
A comma separated list of input names to be included from the foreign template. Validations:
|
|
foreign_input_set[description]
optional , nil allowed |
Input set description Validations:
|
DELETE /api/templates/1007981904-Job%20template%20276/foreign_input_sets/22
{
"foreign_input_set": {}
}
200
{
"id": 22,
"template_id": 1007981904,
"target_template_id": 1007981905,
"include_all": true,
"include": null,
"exclude": null
}
| Param name | Description |
|---|---|
|
location_id
optional |
Set the current location context for the request Validations:
|
|
organization_id
optional |
Set the current organization context for the request Validations:
|
|
template_id
required |
Validations:
|
|
id
required |
Validations:
|
PUT /api/templates/1007981892-Job%20template%20264/foreign_input_sets/18
{
"foreign_input_set": {
"include_all": false
}
}
200
{
"include_all": false,
"id": 18,
"template_id": 1007981892,
"target_template_id": 1007981893,
"include": null,
"exclude": null
}
| Param name | Description |
|---|---|
|
location_id
optional |
Set the current location context for the request Validations:
|
|
organization_id
optional |
Set the current organization context for the request Validations:
|
|
template_id
required |
Validations:
|
|
id
required |
Validations:
|
|
foreign_input_set
required |
Validations:
|
|
foreign_input_set[target_template_id]
optional |
Target template ID Validations:
|
|
foreign_input_set[include_all]
optional , nil allowed |
Include all inputs from the foreign template Validations:
|
|
foreign_input_set[include]
optional , nil allowed |
A comma separated list of input names to be included from the foreign template. Validations:
|
|
foreign_input_set[exclude]
optional , nil allowed |
A comma separated list of input names to be included from the foreign template. Validations:
|
|
foreign_input_set[description]
optional , nil allowed |
Input set description Validations:
|