Datasets

Replace a dataset table promotion policy

Validates and stores the complete promotion policy on the table. Newly included tag columns, and the columns of exact attribute includes the attribute cap has room for, are added synchronously before the request returns, in the same commit as the policy. Send back the revision the policy was read at to be refused rather than overwrite a change made since; omit it to replace whatever is stored.

put/v1/datasets/{id}/tables/{tableKey}/promotion

Request

  • Base URL
    https://docs.grepr.ai (the document declares no server; this is the origin it was published from)
  • Auth
    • API key in header GREPR-API-KEY
    • or OpenID Connect (https://grepr-prod.us.auth0.com/.well-known/openid-configuration)

Path parameters

idstring required
tableKeystring required

Request body

columnRemovalDelaystring ISO-8601

How long after a path or key is excluded its index columns are removed from the table, as an ISO-8601 duration. Defaults to 6 hours when absent.

revisioninteger

Which store of the table's policy this is, assigned by the server: 0 when the table has none. Echo it on a PUT to be refused with 409 if the policy changed since it was read; omit it to replace whatever is stored.

vinteger required

Promotion policy document version.

Example request

{
  "columnRemovalDelay": "PT20.345S"
}

Response

The persisted promotion policy.

columnRemovalDelaystring ISO-8601

How long after a path or key is excluded its index columns are removed from the table, as an ISO-8601 duration. Defaults to 6 hours when absent.

revisioninteger

Which store of the table's policy this is, assigned by the server: 0 when the table has none. Echo it on a PUT to be refused with 409 if the policy changed since it was read; omit it to replace whatever is stored.

vinteger required

Promotion policy document version.

Example response

{
  "columnRemovalDelay": "PT20.345S"
}

Changes

No recorded changes to this operation across all 1 revision of this API.