Mend's enhanced SCA API enables automation of workflows in a REST compliant format. The API features:
If you have a dedicated instance of Mend, contact your Mend representative to access this API on your instance.
https://api-saas.mend.io/api/v2.0/orgs/{orgToken}/users/service/{userUuid}/regenerateUserKey
No request payload
{ "supportToken": "1171c60d", "retVal": { "userUuid": "123e4567-e89b-12d3-a456-426655440000", "userKey": "8d541c7d782e4b7891ebf61e864f76cb9af75f17d4394b109f1155e88f3e86bd", "createdAt": "2019-08-24T14:15:22Z", "lastUsedAt": "2019-08-24T14:15:22Z", "description": "Token A", "expirationDate": "2019-08-24T14:15:22Z" } }
https://api-saas.mend.io/api/v2.0/orgs/{orgToken}/users/service
{ "email": "jon.smith@mail.com" }
{ "supportToken": "1171c60d", "retVal": { "userKeyDTO": { … }, "userInfoDTO": { … } } }
https://api-saas.mend.io/api/v2.0/orgs/{orgToken}/users/invite
{ "email": "jon.smith@mail.com", "accountStatus": "ACTIVE" }
{ "supportToken": "1171c60d", "retVal": { "uuid": "123e4567-e89b-12d3-a456-426655440000", "name": "Jon Smith", "email": "jon.smith@mail.com", "userType": "REGULAR", "accountStatus": "ACTIVE", "existsInOrg": true } }
Filter your search to return items whose property has a specific value. Use the syntax: property:operation:value where a colon (:) separates between property, operation and value.
To combine multiple filters, separate each filter with a semicolon with no space. E.g. property1:operation1:value1;property2:operation2:value2
This endpoint supports filtering on the following properties and its supported operators:
Sort search results alphabetically on an item's property by entering sort= followed by the property name. E.g. enter sort=email to sort alphabetically by their email addresses from a-z ascending.To sort in descending order (z-a), add a minus sign ('-'). E.g. sort=-email.
You can sort by the following properties:
https://api-saas.mend.io/api/v2.0/orgs/{orgToken}/users
No request payload
OK
{ "additionalData": { "totalItems": "422", "isLastPage": "true" }, "supportToken": "1171c60d", "retVal": [ { … } ] }
https://api-saas.mend.io/api/v2.0/orgs/{orgToken}/users
{ "name": "jon", "email": "jon.smith@mail.com" }
{ "supportToken": "1171c60d", "retVal": { "uuid": "123e4567-e89b-12d3-a456-426655440000", "name": "Jon Smith", "email": "jon.smith@mail.com", "userType": "REGULAR", "accountStatus": "ACTIVE" } }
https://api-saas.mend.io/api/v2.0/orgs/{orgToken}/users/service/{userUuid}/userKey
No request payload
{ "supportToken": "1171c60d", "retVal": { "userUuid": "123e4567-e89b-12d3-a456-426655440000", "userKey": "8d541c7d782e4b7891ebf61e864f76cb9af75f17d4394b109f1155e88f3e86bd", "createdAt": "2019-08-24T14:15:22Z", "lastUsedAt": "2019-08-24T14:15:22Z", "description": "Token A", "expirationDate": "2019-08-24T14:15:22Z" } }
https://api-saas.mend.io/api/v2.0/orgs/{orgToken}/users/self
No request payload
{ "supportToken": "1171c60d", "retVal": { "uuid": "123e4567-e89b-12d3-a456-426655440000", "name": "Jon Smith", "email": "jon.smith@mail.com", "userType": "REGULAR", "accountStatus": "ACTIVE", "roles": [ … ], "activationLink": "string", "groupNames": [ … ] } }
https://api-saas.mend.io/api/v2.0/orgs/{orgToken}/users/{userUuid}
No request payload
{ "supportToken": "1171c60d", "retVal": { "message": "Success!" } }