Assigns a report to a layer of a project. The report is added at the end of the layer's reports.
Required role: ORG_EDITOR, and the current user must have the MODIFY permission on the project.
Fields
| Field | Required | Description |
|---|---|---|
reportId | Yes | The id of a report of the layer's data source. |
Response
201 with the report id in result. Its URL is also in the Location header.
When it fails
400 if reportId is missing or empty, if the layer isn't a vector layer, if the report isn't a report of the layer's data source in your organization, or if the report is already assigned to the layer.
Report assignments
Reports are created on a data source (POST .../datasources/{datasource}/reports). Assigning a report to a layer makes it available on the layer's features in the project. A layer can have several reports, in a display order.
- Only vector layers (
VECTOR,OGC_API_FEATURES) can have reports. - The report must be a report of the layer's data source, owned by your organization. The reports of a data source shared by another organization can't be assigned.
- Deleting the report or the layer removes the assignment. Copying a layer (
"action": "clone") copies its assignments, in the same order. - A referenced layer has its own assignments: it doesn't use those 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… | |||