CREATE OR UPDATE Target
PATCH/workspaces/:workspaceId/alerting/targets/:targetName
CREATE OR UPDATE Target
Request
Path Parameters
workspaceId uuidrequired
targetName stringrequired
Header Parameters
If-None-Match string
To ensure that no existing target is updated pass If-None-Match header set to "*".
- application/json
Body
type stringrequired
Possible values: [Slack
, AzureServiceBus
, EmailGroup
]
Allowed values: Slack, AzureServiceBus, EmailGroup
properties
object
required
uri urinullable
Applicable to 'Slack' target.
connectionString stringnullable
Applicable to 'ServiceBus' target.
entityPath stringnullable
Applicable to 'ServiceBus' target.
emails string[]nullable
Applicable to 'EmailGroup' target.
Responses
- 200
- 201
- 400
- 503
Target has been updated.
Target has been created.
- application/problem+json
- Schema
- Example (from schema)
Schema
type stringnullable
title stringnullable
status int32nullable
detail stringnullable
instance stringnullable
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string"
}
Target cannot be created because not all required values were provided.
- application/problem+json
- Schema
- Example (from schema)
Schema
type stringnullable
title stringnullable
status int32nullable
detail stringnullable
instance stringnullable
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string"
}
Target cannot be created or updated because conflicting operation is in progress.
- application/problem+json
- Schema
- Example (from schema)
Schema
type stringnullable
title stringnullable
status int32nullable
detail stringnullable
instance stringnullable
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string"
}
Loading...