Create a member group
POST
/v1/groups
const url = 'https://api.varman.io/v1/groups';const options = { method: 'POST', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"name":"Engineering","description":"Everyone who ships code","memberIds":["example"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.varman.io/v1/groups \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "name": "Engineering", "description": "Everyone who ships code", "memberIds": [ "example" ] }'Creates a group (for example Engineering or Contractors) with an optional list of member ids. Group names are unique per organization. Groups decide who must take assigned training.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
name
required
Group name, unique in the organization
string
Example
Engineeringdescription
What the group is for
string
Example
Everyone who ships codememberIds
Member ids (mem_…) to put in the group
Array<string>
Responses
Section titled “Responses”The created group