Add an item to the Organization Environment
POST
/api/settings/environment
const url = 'https://forge.example.com/api/settings/environment';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"kind":"example","name":"example","zone":"example","appliesWhen":["example"],"appliesWhenNote":"example","note":"example","match":["example"],"elementType":"example","dependencyKind":"example","version":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://forge.example.com/api/settings/environment \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "kind": "example", "name": "example", "zone": "example", "appliesWhen": [ "example" ], "appliesWhenNote": "example", "note": "example", "match": [ "example" ], "elementType": "example", "dependencyKind": "example", "version": 1 }'Checked by the engine’s own check of an environment. For administrators, the central team and assessors.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
kind
required
string
name
required
string
zone
required
null | string
appliesWhen
required
Array<string> | null
appliesWhenNote
required
null | string
note
required
null | string
match
required
Array<string> | null
elementType
required
null | string
dependencyKind
required
null | string
version
required
null | integer | string format: int32
Example generated
{ "kind": "example", "name": "example", "zone": "example", "appliesWhen": [ "example" ], "appliesWhenNote": "example", "note": "example", "match": [ "example" ], "elementType": "example", "dependencyKind": "example", "version": 1}Responses
Section titled “Responses”OK
Media typeapplication/json
object
id
required
string format: uuid
kind
required
string
name
required
string
zone
required
null | string
appliesWhen
required
Array<string>
appliesWhenNote
required
null | string
note
required
null | string
match
required
Array<string>
elementType
required
null | string
dependencyKind
required
null | string
version
required
integer | string format: int32
updatedAt
required
string format: date-time
Example generated
{ "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "kind": "example", "name": "example", "zone": "example", "appliesWhen": [ "example" ], "appliesWhenNote": "example", "note": "example", "match": [ "example" ], "elementType": "example", "dependencyKind": "example", "version": 1, "updatedBy": { "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "displayName": "example" }, "updatedAt": "2026-04-15T12:00:00Z"}default
Section titled “default”A refusal or an error, as a problem document. A model or draft you may not see answers 404, as one that does not exist.
Media typeapplication/problem+json
object
type
string
title
string
status
integer
detail
string
instance
string
Example generated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}