# 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

  • idintegeroptional-
  • descriptionstringoptional-
  • createdByobjectoptional-
    • idintegeroptional-
    • namestringoptional-
  • affectedObjectstringoptional-
  • changesarrayoptional-
    • typestringoptional-
  • statestringoptional[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

  • idintegerpath-

# Endpoint

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

# Response 200

  • statusCodeintegeroptional-
  • idintegeroptional-
  • startedBystringoptional-
  • startedAtintegeroptional-
  • donebooleanoptional-
  • namestringoptional-
  • statestringoptional[WAITING, RUNNING, FINISHED, FAILED, CANCELED]
  • objectstringoptional-
  • outputstringoptional-

# 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

  • idintegerpath-

# Endpoint

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