Create Discovery Criteria
POST/appid/api/v1/app/criteria
Create a new custom discovery criteria.
Note: You need
application
feature withCreate or Update
permission to access this endpoint. Verify if your permission group includes this feature using the Get Permission Group by ID endpoint. You can also check this in the Prisma Cloud console by ensuring that Application Inventory > Applications is enabled.
Request
Query Parameters
create_definition boolean
boolean value indicating if definition has to be created
- application/json
Body
required
name stringrequired
app objectrequired
property name* object
metadata objectrequired
property name* object
Responses
- 200
- 400
- 401
- 403
- 413
Successful operation
- application/json
- Schema
- Example (from schema)
Schema
object
{}
Bad Request - request body contains a query that is not grammatically valid
- application/json
- Schema
- Example (from schema)
Schema
error object
code stringrequired
message stringrequired
{
"error": {
"code": "string",
"message": "string"
}
}
Unauthorized - user cannot be authenticated to service the request
- application/json
- Schema
- Example (from schema)
Schema
error object
code stringrequired
message stringrequired
{
"error": {
"code": "string",
"message": "string"
}
}
Forbidden - user is not authorized, or does not have the correct permissions, to make the call
- application/json
- Schema
- Example (from schema)
Schema
error object
code stringrequired
message stringrequired
{
"error": {
"code": "string",
"message": "string"
}
}
Payload Too Large
- */*
- Schema
- Example (from schema)
Schema
object
{}
Loading...