Assign a report to a layer

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

FieldRequiredDescription
reportIdYesThe 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.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
uuid
required

Id of your organization (must match the access token)

uuid
required

Id of the project

uuid
required

Id of the layer (a layer of the project)

Body Params

The report to assign

uuid
required

Id of the report to assign. It must be a report of the data source of the layer or table.

Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json