Create a table

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

FieldRequiredDescription
dataSourceIdYesA tabular data source. It can be a data source shared with your organization.
nameYesDisplay 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.
descriptionNoDescription by locale, limited to 2048 characters per text.
attributesNoDisplay 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 [].
listedNoDefault true.
allowClientSideEditingNoDefault false.
baseFilterNoA CQL2-JSON filter applied to the data source, checked against the data.
tagsNoTag 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.

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

Body Params

Table to create: dataSourceId (a tabular data source) and name

boolean
Defaults to false

Whether the client applications allow editing the rows

attributes
array of objects

Display settings of the data source attributes (name, title, visible). The table gets all the attributes; this only changes the ones listed. A title changes the data source attribute's title. Can't be empty

attributes
baseFilter
object

A CQL2-JSON filter applied to the data source, checked against the data

string
required
length ≥ 1

A tabular data source the current user can view (of your organization or shared with it)

description
object

Description by locale, 2048 characters at most per text. HTML markup is removed

boolean
Defaults to true

Whether the table is listed

name
object
required

Display name by locale. Must have a text in the project's default language; texts can't be empty. 2048 characters at most per text. HTML markup is removed

tags
array of strings

Tag names to add to the table. A tag of your organization with the same name (case-insensitive) is reused; otherwise it is created. Empty names are ignored

tags
Responses

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