Issues

Report an issue.

Changed on

The scope, team and site must belong to the operator the issue is created under.<br/><br/>Required scope: alerts:write

post/api/v1/issues

Request

  • Base URL
    https://partner-api.monta.com
  • URL
    https://partner-api.monta.com/api/v1/issues
  • Auth
    HTTP bearer

Request body

operatorIdinteger nullable

Operator to create the issue under. Defaults to your own operator.

typestring required

The issue type token.

teamIdinteger nullable

Team the issue belongs to, if any. Must belong to the same operator.

siteIdinteger nullable

Site the issue belongs to, if any. Must belong to the same operator.

Example request

{
  "type": "cp.offline",
  "scope": {
    "type": "charge-point",
    "id": "42"
  }
}

Response

post-issue 200 response

idstring required

Id of the issue.

operatorIdinteger

Id of the operator this issue belongs to.

typestring required

The issue-type token.

teamIdstring nullable

Id of the team this issue is scoped to, when service-alerts exposes it. Null today.

siteIdstring nullable

Id of the site this issue is scoped to, when service-alerts exposes it. Null today.

status'open' | 'resolved' | 'unknown' required

Current status of the issue.

eventCountinteger

Number of events attached to this issue.

firstEventAtstring date-time nullable

Earliest event on this issue, if any.

lastEventAtstring date-time nullable

Most recent event on this issue, if any.

resolvedAtstring date-time nullable

When this issue was resolved, if it has been.

Example response

{
  "id": "5510",
  "operatorId": 1,
  "type": "charge_point_offline",
  "scope": {
    "type": "charge-point",
    "id": "42"
  },
  "status": "open",
  "eventCount": 14
}

Changes