Adds a table to a project, on a tabular data source.
Required role: ORG_EDITOR, and the current user must have the MODIFY permission on the project and the VIEW permission on the data source.
Fields
| Field | Required | Description |
|---|---|---|
dataSourceId | Yes | A tabular data source. It can be a data source shared with your organization. |
name | Yes | Display name by locale. Must have a text in the project's default language; texts can't be empty. Only en, fr and es are kept; each text is limited to 2048 characters. |
description | No | Description by locale, limited to 2048 characters per text. |
attributes | No | Display settings of the data source attributes (name, visible, title). The table always gets all the attributes of the data source; this only changes the ones you list. Each name must exist in the data source. A title changes the data source attribute's title, for every layer and table that uses it. Can't be []. |
listed | No | Default true. |
allowClientSideEditing | No | Default false. |
baseFilter | No | A CQL2-JSON filter applied to the data source, checked against the data. |
tags | No | Tag names to add to the table. Empty names are ignored. |
HTML markup is removed from name, description and tags.
Data source permissions
The principals with a permission on the project get, inherited from the project, VIEW and EXTRACT_ROW on the table's data source.
Response
201 with the id of the new table in result. Its URL is also in the Location header.
What a table is
A table (table dataset) shows the rows of a tabular data source in a project, like a layer shows the features of a spatial data source. It has a name, a description, the display settings of the data source's attributes, an optional base filter, dynamic filters and reports.
Organization and project
organization must be the organization of the access token, and the project must belong to it. The table must belong to the project; otherwise the request returns 404.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||