Variables API

Routes to manage project variables.

Routes to manage project variables.

List variables

GET /api/v1/variables

Answer: 200. Fields: items.

Create a variable

POST /api/v1/variables

This route needs the admin role.

Body

Name Type Required Notes
key string Yes Maximum length: 64.
type string, number, boolean, json Yes
value any Yes
description string No Maximum length: 500.

Answer: 201. Fields: key, type, value, description, updatedAt.

Change a variable

PATCH /api/v1/variables/{key}

This route needs the admin role.

Path parameters

Name Type Required Notes
key string Yes

Body

Name Type Required Notes
type string, number, boolean, json Yes
value any Yes
description string No Maximum length: 500.

Answer: 200. Fields: key, type, value, description, updatedAt.

Delete a variable

DELETE /api/v1/variables/{key}

This route needs the admin role.

Path parameters

Name Type Required Notes
key string Yes

Answer: 200. Fields: deleted.

Change this page on GitHub