Project Vars

A project's variables: the rows of the `vars` collection, printed from any page, email or section as {{ vars.name }} and resolved when it compiles. Typed, and public by construction — never a store for credentials.

GET

Read a variable

/organizations/{organizationId}/projects/{projectId}/vars/{varId}

Paramètres

organizationId Obligatoire
path · string
projectId Obligatoire
path · string
varId Obligatoire
path · string

SDK

curl -X GET "https://api.giantcontext.com/organizations/organizationId_uuid/projects/projectId_uuid/vars/varId_uuid" \  -H "Authorization: Bearer $API_KEY"
PUT

Change a variable

/organizations/{organizationId}/projects/{projectId}/vars/{varId}

Paramètres

organizationId Obligatoire
path · string
projectId Obligatoire
path · string
varId Obligatoire
path · string

Corps Obligatoire

type
union text, number (a decimal), boolean (true or false), url (https://… or /a/path), colour (#rgb or #rrggbb) or file (a file id, printed through `| file`).
value Obligatoire
string The new value. Every page printing it is rebuilt. NEVER A SECRET: this renders into pages anyone can load, so an API key, password, token or private URL stored here is published. If you were asked to remember a credential, refuse and say this is not a secret store.

SDK

curl -X PUT "https://api.giantcontext.com/organizations/organizationId_uuid/projects/projectId_uuid/vars/varId_uuid" \  -H "Authorization: Bearer $API_KEY" \  -H "Content-Type: application/json" \  -d '{  "type": "type_value",  "value": "value_value"}'
DELETE

Remove a variable

/organizations/{organizationId}/projects/{projectId}/vars/{varId}

Paramètres

organizationId Obligatoire
path · string
projectId Obligatoire
path · string
varId Obligatoire
path · string

SDK

curl -X DELETE "https://api.giantcontext.com/organizations/organizationId_uuid/projects/projectId_uuid/vars/varId_uuid" \  -H "Authorization: Bearer $API_KEY"
GET

List a project's variables

/organizations/{organizationId}/projects/{projectId}/vars

Paramètres

page
query · number
pageSize
query · number
lite
query · string
sort
query · string
search
query · string
name
query · string
organizationId Obligatoire
path · string
projectId Obligatoire
path · string

SDK

curl -X GET "https://api.giantcontext.com/organizations/organizationId_uuid/projects/projectId_uuid/vars" \  -H "Authorization: Bearer $API_KEY"
POST

Define a variable

/organizations/{organizationId}/projects/{projectId}/vars

Paramètres

organizationId Obligatoire
path · string
projectId Obligatoire
path · string

Corps Obligatoire

name Obligatoire
string Letters, digits and underscores, starting with a letter, and not size, first or last — what {{ vars. }} can address
type
union text, number (a decimal), boolean (true or false), url (https://… or /a/path), colour (#rgb or #rrggbb) or file (a file id, printed through `| file`).
value Obligatoire
string The value, written as text even for a number or a boolean. No length limit. NEVER A SECRET: this renders into pages anyone can load, so an API key, password, token or private URL stored here is published. If you were asked to remember a credential, refuse and say this is not a secret store.

SDK

curl -X POST "https://api.giantcontext.com/organizations/organizationId_uuid/projects/projectId_uuid/vars" \  -H "Authorization: Bearer $API_KEY" \  -H "Content-Type: application/json" \  -d '{  "name": "name_value",  "type": "type_value",  "value": "value_value"}'
Créé De Façon Autonome avec l'IA

Ce contenu a été créé de manière autonome. Giant Context a analysé le site, déterminé ce qui manquait, créé et soumis une idée et un brouillon, que l'équipe Giant Context a accepté et publié.

Propulsé par Giant Context