Browse the tools
Templates
A template is the shape of a contact’s page: its pages, sections and fields. It changes through a draft and is published in versions.
Tools
List the templates of the account, the structures its records are described by.
-
pageintegeroptional - The page to read, starting at 1.
-
per_pageintegeroptional - How many templates a page holds: 25 unless asked, 100 at most.
Read one template of the account: its name, what it describes, whether it is active and which version is published.
-
templatestringrequired - The id of the template, as list-templates gives it.
List the versions of one template, so a caller can tell a draft from what is published.
-
templatestringrequired - The id of the template, as list-templates gives it.
-
pageintegeroptional - The page to read, starting at 1.
-
per_pageintegeroptional - How many versions a page holds: 25 unless asked, 100 at most.
Read one version of a template with its pages, the sections on each page and the fields of each section. The section and field ids the other template tools take come from here.
-
templatestringrequired - The id of the template, as list-templates gives it.
-
versionintegerrequired - The version number, as list-template-versions gives it.
Count the records of one kind in a vault (people, or one entity type such as Animals): how many there are, how many are archived, which templates and versions they use, and how many sit on an older version of their template. Archived records are counted apart and nowhere else.
-
vaultstringrequired - The id of the vault, as list-vaults gives it.
-
record_kindstringrequired - `contacts` for people, or the id of an entity type, as list-entity-types gives it.
Say, for one template of a kind of record in a vault, how many records fill in each field, against how many records are offered the field. A record counts once per field, values set aside by a change of template do not count, and partial contacts are left out.
-
vaultstringrequired - The id of the vault, as list-vaults gives it.
-
record_kindstringrequired - `contacts` for people, or the id of an entity type, as list-entity-types gives it.
-
templatestringrequired - The id of the template, as get-record-statistics gives it.
-
versionintegeroptional - One version number of that template. Leave it out to count every version.
-
orderstringoptional -
`lowest` puts the least filled fields first, `form` keeps the order of the form. Defaults to `lowest`.
One of:
lowest,form
Say what moving every non-archived record of one template onto another would do, without changing anything: how many records can move, how many would have values set aside or brought back, which fields and reminders are touched, and which records another running change already holds. Use the same template for from and to to update records on older versions to the published one. Call it before change-template-of-records and tell the person what it says.
-
vaultstringrequired - The id of the vault, as list-vaults gives it.
-
record_kindstringrequired - `contacts` for people, or the id of an entity type, as list-entity-types gives it.
-
fromstringrequired - The id of the template the records leave, as get-record-statistics gives it.
-
versionintegeroptional - Take only the records on this version of the source template. Leave it out to take every version.
-
tostringrequired - The id of the template the records move onto, at its published version, as get-record-statistics gives it.
Move every non-archived record of one template in a vault onto another template, or onto the published version of the same one. Values with no matching field are set aside, not deleted, and reminders on them pause; each record keeps a version history entry it can be reverted from. The move runs in the background: the answer is the change with its status, and get-template-change says how far it is. Preview it with preview-template-change first and show the result to the person before calling this.
-
vaultstringrequired - The id of the vault, as list-vaults gives it.
-
record_kindstringrequired - `contacts` for people, or the id of an entity type, as list-entity-types gives it.
-
fromstringrequired - The id of the template the records leave, as get-record-statistics gives it.
-
versionintegeroptional - Take only the records on this version of the source template. Leave it out to take every version.
-
tostringrequired - The id of the template the records move onto, at its published version, as get-record-statistics gives it.
Say how far a change of template started with change-template-of-records is, and once it has finished, how many records moved, were skipped or failed, with the reason for each record that did not move.
-
vaultstringrequired - The id of the vault, as list-vaults gives it.
-
template_changestringrequired - The id of the change, as change-template-of-records gives it.
List the value lists of the account, the named sets of choices a template field can offer, such as genders or phone labels, each with its choices in order. The id of a list is what create-template-field and update-template-field take as value_list_id.
-
pageintegeroptional - The page to read, starting at 1.
-
per_pageintegeroptional - How many lists a page holds: 25 unless asked, 100 at most.
Create a value list: a named set of choices a template field can offer, such as the suppliers of a business. It starts empty. The change is written to the account log.
-
namestringrequired - The name of the list, up to 255 characters.
Rename a value list. The change is written to the account log.
-
value_listintegerrequired - The id of the value list, as list-value-lists gives it.
-
namestringrequired - The new name of the list, up to 255 characters.
Delete a value list and the values it holds. A list the application itself reads, such as genders or phone labels, stays. The change is written to the account log.
-
value_listintegerrequired - The id of the value list, as list-value-lists gives it.
Add a value at the end of a value list. A list that takes no choices of its own refuses it. The change is written to the account log.
-
value_listintegerrequired - The id of the value list, as list-value-lists gives it.
-
labelstringoptional - The wording of the value, up to 255 characters. Required, except on the countries list, where country_code may stand in its place.
-
country_codestringoptional - On the countries list only: a two letter country code, as list-countries gives it. Refused on any other list.
Rename a value of a value list. Everything that already has it shows the new wording. The change is written to the account log.
-
value_listintegerrequired - The id of the value list, as list-value-lists gives it.
-
value_list_itemintegerrequired - The id of the value, as list-value-lists gives it among the items of its list.
-
labelstringoptional - The wording of the value, up to 255 characters. Required, except on the countries list, where country_code may stand in its place.
-
country_codestringoptional - On the countries list only: a two letter country code, as list-countries gives it. Refused on any other list.
Delete a value of a value list, which is only allowed while nothing uses it; otherwise stop offering it with set-value-list-item-activation. The change is written to the account log.
-
value_listintegerrequired - The id of the value list, as list-value-lists gives it.
-
value_list_itemintegerrequired - The id of the value, as list-value-lists gives it among the items of its list.
Stop offering a value of a value list, or offer it again. Everything that already has it keeps it. The change is written to the account log.
-
value_listintegerrequired - The id of the value list, as list-value-lists gives it.
-
value_list_itemintegerrequired - The id of the value, as list-value-lists gives it among the items of its list.
-
is_activebooleanrequired - True to offer the value, false to stop offering it.
Move a value of a value list to another place in its list, the first being 1. The change is written to the account log.
-
value_listintegerrequired - The id of the value list, as list-value-lists gives it.
-
value_list_itemintegerrequired - The id of the value, as list-value-lists gives it among the items of its list.
-
positionintegerrequired - The place to move it to, the first being 1.
List every country with its two letter code and its name in the language of the request, the favourites of the account first. The code is what update-contact-section takes as the country of an address.
This tool takes no parameters. Your assistant calls it as it is.
Create a template for contacts, for a kind of entity or for life events. It starts with a first draft. The change is written to the account log.
-
namestringrequired - The name of the template.
-
applies_tostringrequired -
What the template describes.
One of:
contact,entity,life_event -
descriptionstringoptional - A sentence saying what the template is for.
-
entity_type_idstringoptional - The id of the kind of entity the template describes, as list-entity-types gives it. Required when applies_to is entity.
Rename a template or change its description. The change is written to the account log.
-
templatestringrequired - The id of the template, as list-templates gives it.
-
namestringoptional - The new name.
-
descriptionstringoptional - The new description.
Copy a template into a new one, as a starting point. The change is written to the account log.
-
templatestringrequired - The id of the template, as list-templates gives it.
-
namestringoptional - The name of the copy. Made from the name of the original when left out.
-
slugstringoptional - The short name of the copy. Made from the name of the copy when left out.
Switch a template on, so it is offered for new records, or off. The change is written to the account log.
-
templatestringrequired - The id of the template, as list-templates gives it.
-
is_activebooleanrequired - True to switch the template on, false to switch it off.
Move a template to another place in the list of templates. The change is written to the account log.
-
templatestringrequired - The id of the template, as list-templates gives it.
-
positionintegerrequired - Where the template goes in the list, counting from 1.
Delete a template and all its versions. A template still describing records is refused. The change is written to the account log.
-
templatestringrequired - The id of the template, as list-templates gives it.
Open a draft of a template, the only kind of version whose sections and fields can change. When a draft is already open, it is returned instead of a second one.
-
templatestringrequired - The id of the template, as list-templates gives it.
Publish a draft of a template, so the records it describes start using it. The change is written to the account log.
-
templatestringrequired - The id of the template, as list-templates gives it.
-
versionintegerrequired - The number of the draft to publish, as list-template-versions gives it.
-
change_notestringoptional - What changed. Required from the second published version on.
Delete a draft of a template and every change made in it. A published version cannot be deleted. The change is written to the account log.
-
templatestringrequired - The id of the template, as list-templates gives it.
-
versionintegerrequired - The number of the draft to delete, as list-template-versions gives it.
Add a section to a draft of a template: give name to create a new section, or section_id to place one the account already has. The change is written to the account log.
-
templatestringrequired - The id of the template, as list-templates gives it.
-
versionintegerrequired - The number of the draft, as create-template-draft gives it.
-
namestringoptional - The name of a new section to create. Leave it out when giving section_id.
-
iconstringoptional -
The icon of a new section. Only with name.
One of:
profile,people,note,relationship,family,timeline,calendar,reminder,tasks,memory,journal,file,mail,phone,place,home,briefcase,organization,graduation,health,activity,ball,food,gift,pet,plane,globe,book,music,coin,car,target,tag,heart,star,lock,layers -
colourstringoptional -
The colour of a new section. Only with name.
One of:
#3f5fd0,#4f8a49,#9a6a24,#9a3f2b,#6b4fa8,#2f7f86,#a8447a,#4a4a52 -
section_idstringoptional - The id of a section the account already has, as get-template-version shows it on another template. Leave it out when giving name.
-
section_version_numberintegeroptional - Which version of the section named by section_id to place. Only with section_id. The published one when left out.
-
page_idstringoptional - The id of the page to place the section on, as get-template-version gives it. The first page when left out.
-
title_overridestringoptional - What to head the section with in this template. Its own name when left out.
-
is_collapsed_by_defaultbooleanoptional - Whether the section starts folded shut.
Change what a section is headed in a draft of a template and whether it starts folded shut. The change is written to the account log.
-
templatestringrequired - The id of the template, as list-templates gives it.
-
versionintegerrequired - The number of the draft, as create-template-draft gives it.
-
sectionstringrequired - The id of the section in that version, as get-template-version gives it.
-
title_overridestringoptional - What to head the section with in this template. Null goes back to the name of the section.
-
is_collapsed_by_defaultbooleanoptional - Whether the section starts folded shut.
Remove a section from a draft of a template. The section itself stays in the account for the other templates using it. The change is written to the account log.
-
templatestringrequired - The id of the template, as list-templates gives it.
-
versionintegerrequired - The number of the draft, as create-template-draft gives it.
-
sectionstringrequired - The id of the section in that version, as get-template-version gives it.
Move a section to another place on its page, in a draft of a template. The change is written to the account log.
-
templatestringrequired - The id of the template, as list-templates gives it.
-
versionintegerrequired - The number of the draft, as create-template-draft gives it.
-
sectionstringrequired - The id of the section in that version, as get-template-version gives it.
-
positionintegerrequired - Where the section goes on its page, counting from 1.
Add a field to a section of a draft of a template. A section shared with other templates is drafted first, so its fields may come back with new ids. The change is written to the account log.
-
templatestringrequired - The id of the template, as list-templates gives it.
-
versionintegerrequired - The number of the draft, as create-template-draft gives it.
-
sectionstringrequired - The id of the section in that version, as get-template-version gives it.
-
typestringrequired -
The kind of field.
One of:
text,textarea,number,boolean,url,email,phone,select,multiselect,radio,date,recurring_date,duration,relation,file,image,avatar,address,repeater,divider,heading,help -
labelstringrequired - What the field is called on screen.
-
keystringoptional - A stable machine name for the field. Made from the label when left out.
-
value_list_idintegeroptional - The id of the value list a field offering choices takes them from, as list-value-lists gives it.
-
relation_targetstringoptional -
What a relation field points at.
One of:
contact,entity -
relation_entity_type_idstringoptional - The id of the kind of entity a relation field points at, as list-entity-types gives it.
-
parent_idintegeroptional - The id of the repeater field to put this field inside, as get-template-version gives it.
Change a field of a section in a draft of a template. The field may come back with a new id: use the returned one afterwards. The change is written to the account log.
-
templatestringrequired - The id of the template, as list-templates gives it.
-
versionintegerrequired - The number of the draft, as create-template-draft gives it.
-
sectionstringrequired - The id of the section in that version, as get-template-version gives it.
-
fieldstringrequired - The id of the field, as get-template-version gives it.
-
labelstringoptional - What the field is called on screen.
-
help_textstringoptional - A line explaining the field, shown under it.
-
placeholderstringoptional - The example shown in the empty field.
-
is_requiredbooleanoptional - Whether a record cannot be saved without a value in this field.
-
is_sensitivebooleanoptional - Whether the value is hidden until asked for.
-
is_highlightedbooleanoptional - Whether the field is shown at the top of the record.
-
is_uniquebooleanoptional - Whether two records may not share a value.
-
is_identifyingbooleanoptional - Whether the field helps tell records apart.
-
value_list_idintegeroptional - The id of the value list a field offering choices takes them from, as list-value-lists gives it.
-
default_valueobjectoptional - The value a new record starts with.
-
optionsobjectoptional - Settings of the field type, such as the kinds of file accepted.
-
validationobjectoptional - Limits on the value, such as a minimum or a maximum.
-
repeat_minintegeroptional - The fewest values a repeatable field holds.
-
repeat_maxintegeroptional - The most values a repeatable field holds.
-
repetition_orderstringoptional -
How repeated values are ordered.
One of:
newest_last,newest_first
Delete a field from a section of a draft of a template. The change is written to the account log.
-
templatestringrequired - The id of the template, as list-templates gives it.
-
versionintegerrequired - The number of the draft, as create-template-draft gives it.
-
sectionstringrequired - The id of the section in that version, as get-template-version gives it.
-
fieldstringrequired - The id of the field, as get-template-version gives it.
Move a field to another place in its section, in a draft of a template. The field may come back with a new id: use the returned one afterwards. The change is written to the account log.
-
templatestringrequired - The id of the template, as list-templates gives it.
-
versionintegerrequired - The number of the draft, as create-template-draft gives it.
-
sectionstringrequired - The id of the section in that version, as get-template-version gives it.
-
fieldstringrequired - The id of the field, as get-template-version gives it.
-
positionintegerrequired - Where the field goes in its section, counting from 1.