Preview a change of template for many records
Say what moving every non-archived record of one template onto another would do, without changing anything.
Call this before POST /vaults/{vault}/record-kinds/{recordKind}/template-changes and show the result to the person. A value follows the matching field of the new version. A value without one is set aside, never deleted, and comes back if a later template has the field.
A sensitive field is named only to a key holding the sensitive fields scope. Otherwise it is counted in hidden_count.
This endpoint answers GET and QUERY alike, and both return the same answer. GET sends the parameters in the address, QUERY in the request body. How QUERY works.
Parameters
Path parameters go in the address. GET sends the others in the address too, QUERY sends them as JSON in the request body. Anything not listed here is ignored.
The id of the vault.
contacts for people, or the id of an entity type, as GET /entity-types gives it.
The id of the template the records leave, as the statistics give it.
Take only the records on this version of the source template. Leave it out to take every version.
The id of the template the records move onto, at the version it publishes now. Send the same template as from to update records on older versions to the published one.
Returns
What the change would do. Nothing is written. A vault, an entity type or a template of another account answers 404. A destination that describes another kind of record, is turned off or has no published version answers 422 with the reason on to.
What the change would do.
Always template_change_preview.
Everything the preview says.
The id of the template the records leave.
The id of the template they would move onto.
The number of the version they would move onto.
How many records each effect touches.
How many records can move. This is the number the change takes.
How many would have no value set aside or restored.
How many would have values set aside.
How many would have values set aside earlier brought back.
How many reminders would pause.
How many reminders would run again.
The fields whose values would be set aside, most records first.
One field.
What the field is called.
The section it belongs to.
How many records it concerns.
The fields whose values would come back. Same shape as set_aside.
One field.
What the field is called.
The section it belongs to.
How many records it concerns.
The reminders that would pause, grouped by name.
One reminder name.
What the reminder is called.
How many reminders of that name.
The reminders that would run again. Same shape as reminders_paused.
One reminder name.
What the reminder is called.
How many reminders of that name.
The ids of the records another running change already holds. They are left out of every count.
The id of one such record.
How many sensitive fields the lists leave out, because the key does not hold the sensitive fields scope.
Status codes
Every code the API answers with, and what the body holds when it does.
| Code | When | Body |
|---|---|---|
| 422 Unprocessable Content | With QUERY, a parameter was sent both in the address and in the body. | A message, and an errors object naming each parameter sent twice. |
Rate limit
Sixty requests per minute, per user, shared by every key and device. Every answer carries the budget left in X-RateLimit-Remaining.
Keys act as you, with exactly the access you have. Make one per integration so you can revoke it alone.