Edits the value of a custom attribute for a specified library, attribute, and context.
Mend 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 10 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.
Note: To help you get started with the Mend SCA API 2.0, we recommend reviewing our onboarding guide -> Getting Started with Mend SCA API 2.0. This resource covers initial setup, authentication instructions, and helpful tips to help you successfully begin working with the Mend SCA API 2.0. If you have a dedicated instance of Mend, contact your Mend representative to access this API on your instance.
Path
Bodyapplication/jsonrequiredproduct UUID (by running Entities - Organization > Get Organization Products) or Product Token (from the Mend SCA App: Integrate tab > Product Token).
library UUID (get a project's library by running Library - Project > Get Project Libraries.
- Generated server urlhttps://api-saas.mend.io/api/v2.0/products/{productToken}/libraries/{libraryUuid}/customAttributes/{attributeUuid}/value
- Payload
- cURL
- JS
- Go
- Ruby
- Java 8
application/json
{ "value": "Custom attribute value" }
Response
application/json
{ "supportToken": "1171c60d", "retVal": { "message": "Success!" } }