FormsForm templates
Update a form template
PATCH
Its details only; its contents change by adding a version. 409 when the name is taken.
Who may call it: Anyone on the project whose permission profile allows form-template.update. API keys: yes, given form-template.update for this project.
cookie
gamma.session_token<token>The session cookie a sign-in sets. Over HTTPS its name carries the __Secure- prefix. Browsers send it on their own; other clients keep it from the sign-in response.
projectId*stringThe project's id.
templateId*stringapplication/json- body
name?stringLength
1 <= length <= 200description?|nullfolderId?|nullreviewEnabled?booleanSend submitted forms to review before they are final.
approvers?array<>Who may approve or reject: members and companies on the project. Empty for the organization's owners and admins.
Items
items <= 200archived?booleanAn archived template takes no new forms.
OK.
application/json- response
template*What a project's forms are filled in from.
Example Request
curl -X PATCH 'http://localhost:3000/api/projects/string/form-templates/string' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
{ "template": { "id": "string", "folderId": "string", "name": "string", "description": "string", "kind": "native", "lastVersion": -9007199254740991, "reviewEnabled": true, "approvers": [ { "kind": "member", "id": "string" } ], "archived": true, "formCount": -9007199254740991, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }}