Updates a single In-House library rule
SCA API 2.0
//
Apply In-House Rules
Mend SCA API (2.0)
Mend's enhanced SCA API enables automation of workflows in a REST compliant format. The API features:
- Access for any user with Mend credentials, via a user key available in the user's profile page in the Mend App.
- Improved security with a JWT token per organization, which expires every 30 minutes.
- Added scalability with support for pagination, filtering and sorting search results.
- Broader functionality available programmatically.
- New standard API documentation for easy navigation and search.
If you have a dedicated instance of Mend, contact your Mend representative to access this API on your instance.
Path
Bodyapplication/jsonrequiredorg UUID (by running Entities - Organization > Get User Organizations) or API Key (from the Mend SCA App: Integrate tab > API Key).
- Generated server urlhttps://api-saas.mend.io/api/v2.0/orgs/{orgToken}/settings/inHouse/{ruleUuid}
- Payload
- cURL
- JS
- Go
- Ruby
- Java 8
application/json
{ "type": "NAME", "regex": "*aa*", "description": "description for InHouse rule", "empty": true }
Response
application/json
{ "additionalData": { "warningMessage": "item already exists" }, "supportToken": "1171c60d", "retVal": { "uuid": "string", "type": "NAME", "regex": ".*a*", "description": "string", "createdAt": "2019-08-24T14:15:22Z", "createdBy": "string", "empty": true } }
- Generated server urlhttps://api-saas.mend.io/api/v2.0/orgs/{orgToken}/settings/inHouse/{ruleUuid}
- Payload
- cURL
- JS
- Go
- Ruby
- Java 8
No request payloadResponse
application/json
{ "supportToken": "1171c60d", "retVal": { "message": "Success!" } }
Bodyapplication/jsonrequiredArray []
Enum"NAME""LIBRARY_COORDINATES""ARTIFACT_ID"
Example: "NAME"
- Generated server urlhttps://api-saas.mend.io/api/v2.0/orgs/{orgToken}/settings/inHouse/rules
- Payload
- cURL
- JS
- Go
- Ruby
- Java 8
application/json
[ { "uuid": "123e4567-e89b-12d3-a456-426655440000", "type": "NAME", "regex": "*aa*", "description": "description for white list", "empty": true } ]
Response
application/json
{ "supportToken": "1171c60d", "retVal": { "message": "Success!" } }
Bodyapplication/jsonrequiredArray []
Enum"NAME""LIBRARY_COORDINATES""ARTIFACT_ID"
Example: "NAME"
- Generated server urlhttps://api-saas.mend.io/api/v2.0/orgs/{orgToken}/settings/inHouse/rules
- Payload
- cURL
- JS
- Go
- Ruby
- Java 8
application/json
[ { "type": "NAME", "regex": "*aa*", "description": "description for inHouse rule", "empty": true } ]
Response
application/json
{ "additionalData": { "warningMessage": "item already exists" }, "supportToken": "1171c60d", "retVal": [ { … } ] }
- Generated server urlhttps://api-saas.mend.io/api/v2.0/orgs/{orgToken}/settings/inHouse/rules
- Payload
- cURL
- JS
- Go
- Ruby
- Java 8
application/json
[ { "uuid": "123e4567-e89b-12d3-a456-426655440000", "empty": true } ]
Response
application/json
{ "supportToken": "1171c60d", "retVal": { "message": "Success!" } }
- Generated server urlhttps://api-saas.mend.io/api/v2.0/orgs/{orgToken}/settings/inHouse/apply
- Payload
- cURL
- JS
- Go
- Ruby
- Java 8
No request payloadResponse
application/json
{ "supportToken": "1171c60d", "retVal": { "message": "Success!" } }
- Generated server urlhttps://api-saas.mend.io/api/v2.0/orgs/{orgToken}/settings/inHouse
- Payload
- cURL
- JS
- Go
- Ruby
- Java 8
No request payloadOK
- totalItems: The total count of data points returned in an API response.
- isLastPage: Defines whether the current page represents the conclusion of the API response. When “true”, this signifies you are viewing the last page of the API response. When “false”, this indicates there are further pages remaining.
Example: {"totalItems":"422","isLastPage":"true"}
Response
application/json
{ "additionalData": { "totalItems": "422", "isLastPage": "true" }, "supportToken": "1171c60d", "retVal": { "rules": [ … ], "active": true } }
- Generated server urlhttps://api-saas.mend.io/api/v2.0/orgs/{orgToken}/settings/inHouse
- Payload
- cURL
- JS
- Go
- Ruby
- Java 8
application/json
{ "type": "NAME", "regex": "*aa*", "description": "description for inHouse rule", "empty": true }
Response
application/json
{ "additionalData": { "warningMessage": "item already exists" }, "supportToken": "1171c60d", "retVal": { "uuid": "string", "type": "NAME", "regex": ".*a*", "description": "string", "createdAt": "2019-08-24T14:15:22Z", "createdBy": "string", "empty": true } }