# change-requests

Manage change requests made by users.
Set management node URL:

# GET /change-requests

# Parameters

  • No parameters...

# Endpoint

curl -X GET http://mgmt-node:8080/api/change-requests 

# Response 200

  • idinteger-
  • descriptionstring-
  • createdByobject-
    • idinteger-
    • namestring-
  • affectedObjectstring-
  • changesarray-
    • typestring-
  • statestring[PENDING, APPROVED, REJECTED]

# Example response

[
  {
    "id": 0,
    "description": "string",
    "createdBy": {
      "id": 0,
      "name": "string"
    },
    "affectedObject": "string",
    "changes": [
      {
        "type": "string"
      }
    ],
    "state": "PENDING"
  }
]

# POST /change-requests/{id}/approve

# Parameters

  • idinteger-

# Endpoint

curl -X POST http://mgmt-node:8080/api/change-requests/{id}/approve 

# Response 200

  • statusCodeinteger-
  • idinteger-
  • startedBystring-
  • startedAtinteger-
  • doneboolean-
  • namestring-
  • statestring[WAITING, RUNNING, FINISHED, FAILED, CANCELED]
  • objectstring-
  • outputstring-

# Example response

{
  "statusCode": 0,
  "id": 0,
  "startedBy": "string",
  "startedAt": 0,
  "done": true,
  "name": "string",
  "state": "WAITING",
  "object": "string",
  "output": "string"
}

# POST /change-requests/{id}/reject

# Parameters

  • idinteger-

# Endpoint

curl -X POST http://mgmt-node:8080/api/change-requests/{id}/reject