IndicatorConfidence¶
Summary¶
Resource |
Operation |
Description |
---|---|---|
IndicatorConfidence |
Creates a new indicator confidence. |
|
GET /api/indicators/confidence/(int:indicator_confidence_id) |
Gets a single indicator confidence given its ID. |
|
Gets a list of all the indicator confidences. |
||
PUT /api/indicators/confidence/(int:indicator_confidence_id) |
Updates an existing indicator confidence. |
|
DELETE /api/indicators/confidence/(int:indicator_confidence_id) |
Deletes an indicator confidence. |
Create¶
JSON Schema
Required parameters are in bold.
type |
object |
|
properties |
||
|
type |
string |
maxLength |
255 |
|
minLength |
1 |
|
additionalProperties |
False |
-
POST
/api/indicators/confidence
¶ Creates a new indicator confidence.
Example request:
POST /indicators/confidence HTTP/1.1 Host: 127.0.0.1 Content-Type: application/json { "value": "LOW" }
Example response:
HTTP/1.1 201 Created Content-Type: application/json { "id": 1, "value": "LOW" }
- Request Headers
Authorization – Optional Apikey value
- Response Headers
Content-Type – application/json
- Status Codes
201 Created – Indicator confidence created
400 Bad Request – JSON does not match the schema
401 Unauthorized – Invalid role to perform this action
409 Conflict – Indicator confidence already exists
Read Single¶
-
GET
/api/indicators/confidence/
(int: indicator_confidence_id)¶ Gets a single indicator confidence given its ID.
Example request:
GET /indicators/confidence/1 HTTP/1.1 Host: 127.0.0.1 Accept: application/json
Example response:
HTTP/1.1 200 OK Content-Type: application/json { "id": 1, "value": "LOW" }
- Request Headers
Authorization – Optional Apikey value
- Response Headers
Content-Type – application/json
- Status Codes
200 OK – Indicator confidence found
401 Unauthorized – Invalid role to perform this action
404 Not Found – Indicator confidence ID not found
Read Multiple¶
-
GET
/api/indicators/confidence
¶ Gets a list of all the indicator confidences.
Example request:
GET /indicators/confidence HTTP/1.1 Host: 127.0.0.1 Accept: application/json
Example response:
HTTP/1.1 200 OK Content-Type: application/json [ { "id": 1, "value": "LOW" }, { "id": 2, "value": "HIGH" } ]
- Request Headers
Authorization – Optional Apikey value
- Response Headers
Content-Type – application/json
- Status Codes
200 OK – Indicator confidences found
401 Unauthorized – Invalid role to perform this action
Update¶
JSON Schema
Required parameters are in bold.
type |
object |
|
properties |
||
|
type |
string |
maxLength |
255 |
|
minLength |
1 |
|
additionalProperties |
False |
-
PUT
/api/indicators/confidence/
(int: indicator_confidence_id)¶ Updates an existing indicator confidence.
Example request:
PUT /indicators/confidence/1 HTTP/1.1 Host: 127.0.0.1 Content-Type: application/json { "value": "HIGH", }
Example response:
HTTP/1.1 200 OK Content-Type: application/json { "id": 1, "value": "HIGH" }
- Request Headers
Authorization – Optional Apikey value
- Response Headers
Content-Type – application/json
- Status Codes
200 OK – Indicator confidence updated
400 Bad Request – JSON does not match the schema
401 Unauthorized – Invalid role to perform this action
404 Not Found – Indicator confidence ID not found
409 Conflict – Indicator confidence already exists
Delete¶
-
DELETE
/api/indicators/confidence/
(int: indicator_confidence_id)¶ Deletes an indicator confidence.
Example request:
DELETE /indicators/confidence/1 HTTP/1.1 Host: 127.0.0.1
Example response:
HTTP/1.1 204 No Content
- Request Headers
Authorization – Optional Apikey value
- Status Codes
204 No Content – Indicator confidence deleted
401 Unauthorized – Invalid role to perform this action
404 Not Found – Indicator confidence ID not found
409 Conflict – Unable to delete indicator confidence due to foreign key constraints