Create a new exclusion
Relative path: /api/v2/exclusions
Request body
Display Schema instead of an Example or vice-versa
Type |
Required |
Example |
Schema |
|---|---|---|---|
application/json |
Yes |
{
"body": "string",
"autoResolve": true,
"name": "string",
"ruleIds": [
0
],
"ruleUuids": [
"string"
],
"note": "string",
"targetIds": [
0
],
"targetUuids": [
"string"
]
} |
{
"$ref": "ExclusionCreateTargetsRequestSchema",
"body": {
"type": "string",
"format": "xml"
},
"autoResolve": {
"type": "boolean"
},
"name": {
"type": "string"
},
"ruleIds": [
{
"type": "integer"
}
],
"ruleUuids": [
{
"type": "string",
"format": "uuid"
}
],
"note": {
"type": "string"
},
"targetIds": [
{
"type": "integer"
}
],
"targetUuids": [
{
"type": "string"
}
]
} |
Responses
Display Schema+Headers instead of an Example or vice-versa
Code |
Description and Example |
Description, Schema and Headers |
|---|---|---|
201 |
Created
{
"EXCLUSION": {
"body": "string",
"enabled": true,
"id": 0,
"name": "string",
"note": "string",
"ruleIds": [
0
],
"ruleUuids": [
"string"
],
"uuid": "string"
}
}
|
Created
{
"$ref": "ExclusionDetailsResponseSchema",
"EXCLUSION": {
"body": {
"type": "string",
"format": "xml"
},
"enabled": {
"type": "boolean"
},
"id": {
"type": "integer"
},
"name": {
"type": "string"
},
"note": {
"type": "string"
},
"ruleIds": [
{
"type": "integer"
}
],
"ruleUuids": [
{
"type": "string",
"format": "uuid"
}
],
"uuid": {
"type": "string",
"format": "uuid"
}
}
}
{
"Location": {
"$ref": "Location",
"description": "Location of resource",
"schema": {
"$ref": "LocationResponseSchema",
"type": "string",
"example": "https://lab-eei-01.lab.local:443/api/v1/exclusions/5",
"format": "url"
}
},
"X-Security-Token": {
"$ref": "X-Security-Token",
"description": "Authentication token",
"schema": {
"$ref": "AuthenticateTokenResponse",
"type": "string",
"example": "eyJhbGciOi[..]ziJSUGusY5kAI"
}
}
}
|
401 |
Credentials or access token missing or invalid
{
"error": "string"
}
|
Credentials or access token missing or invalid
{
"$ref": "UnauthorizedError",
"error": {
"type": "string"
}
}
|