Retrieves change request configuration for a project
GET <your-unleash-url>/api/admin/projects/:projectId/change-requests/config
Authorization
name: Authorizationtype: apiKeyin: header
Given a projectId, this endpoint will retrieve change request configuration for the project
Request
Path Parameters
- projectId string required
Responses
- 200
changeRequestConfigSchema
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- environment string requiredThe environment that this configuration applies to. 
- type string requiredThe type of the environment listed in environment.
- changeRequestEnabled boolean requiredtrueif this environment has change requests enabled, otherwisefalse.
- requiredApprovals number nullable requiredThe number of approvals that are required for a change request to be fully approved and ready to be applied in this environment. 
- ]
[
  {
    "environment": "my-dev-environment",
    "type": "development",
    "changeRequestEnabled": true,
    "requiredApprovals": 2
  }
]
Authorization
name: Authorizationtype: apiKeyin: header
Request
Request
curl / cURL
curl -L -X GET '<your-unleash-url>/api/admin/projects/:projectId/change-requests/config' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
python / requests
curl -L -X GET '<your-unleash-url>/api/admin/projects/:projectId/change-requests/config' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
go / native
curl -L -X GET '<your-unleash-url>/api/admin/projects/:projectId/change-requests/config' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
nodejs / axios
curl -L -X GET '<your-unleash-url>/api/admin/projects/:projectId/change-requests/config' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
ruby / Net::HTTP
curl -L -X GET '<your-unleash-url>/api/admin/projects/:projectId/change-requests/config' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
csharp / RestSharp
curl -L -X GET '<your-unleash-url>/api/admin/projects/:projectId/change-requests/config' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
php / cURL
curl -L -X GET '<your-unleash-url>/api/admin/projects/:projectId/change-requests/config' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
java / OkHttp
curl -L -X GET '<your-unleash-url>/api/admin/projects/:projectId/change-requests/config' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
powershell / RestMethod
curl -L -X GET '<your-unleash-url>/api/admin/projects/:projectId/change-requests/config' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'