Gamma API

Save my table preferences

PUT
/api/account/table-preferences/{table}/{scopeId}

Replaces what was saved for the table and scope.

Who may call it: Any signed-in user, for their own account. API keys: no.

Authorization

session
cookiegamma.session_token<token>

The session cookie a sign-in sets. Over HTTPS its name carries the __Secure- prefix. Browsers send it on their own; other clients keep it from the sign-in response.

Path Parameters

table*string

Which table. projects is where each project opens and lists the rows per page and viewer the model viewer's switches, all scoped all; home-projects is scoped all too.

Value in"issues""forms""models""project-members""organization-members""home-projects""projects""lists""viewer"
scopeId*string

The project's id, the organization's for organization-members, or all.

Length1 <= length <= 64

Request Body

application/json
  1. body
state*

Shaped by the web app per table; at most 16,000 characters as JSON.

Response Body

OK.

application/json
  1. response
state*unknown

The saved filters and columns, an object shaped by the web app per table. Null when nothing is saved: the table's defaults.

Example Request
curl -X PUT 'http://localhost:3000/api/account/table-preferences/issues/string' \  -H 'Content-Type: application/json' \  -d '{  "state": {    "property1": null,    "property2": null  }}'
Example Response
{  "state": null}