Returns the form assigned to a layer of a project: its name, formSchema (JSON Schema), uiSchema (JSON Forms UI schema with translations) and tags, as GET .../datasources/{datasource}/forms/{form} returns it.
Required role: ORG_VIEWER, and the current user must have the VIEW permission on the project.
404 if the layer has no form.
Locale (locale)
locale)Without locale, uiSchema.translations has all the locales. With locale (en, fr, es), it only keeps that locale. A code that isn't a known language returns 400.
Form assignment
Forms are created on a data source (POST .../datasources/{datasource}/forms). Assigning a form to a layer makes it the form used to edit the layer's features in the project. A layer has at most one form.
- Only vector layers (
VECTOR,OGC_API_FEATURES) can have a form. - The form must be a form of the layer's data source, owned by your organization. The forms of a data source shared by another organization can't be assigned.
- The id of the assigned form is also the
formIdof the layer (GET .../layers/{layer}). - Deleting the form removes the assignment: the layer then has no form. Copying a layer (
"action": "clone") copies its form. - A referenced layer has its own form: it doesn't use the form of its source layer.
Organization
organization must be the organization of the access token, and the project must belong to it; otherwise the request returns 404.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||