Create Role Mining Task
post
                    /oiri/api/v1/tasks
Save for Later :- A job will be created with Status = CREATED, sourceID and sourceName as null
                Request
There are no request parameters for this operation.
Supported Media Types
                      - application/json
 
Response
Supported Media Types
                - application/json
 
200 Response
OK
                
                
                    Root Schema : JobDetails
    
    	Type: 
    	
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            createdBy(optional): 
            string
            
 - 
            createdDate(optional): 
            string
            
 - 
            description(optional): 
            string
            
 - 
            finishedData(optional): 
            string
            
 - 
            id(optional): 
            string
            
 - 
            input(optional): 
            object  input
            
            
 - 
            lastUpdatedDate(optional): 
            string
            
 - 
            message(optional): 
            string
            
 - 
            name(optional): 
            string
            
 - 
            output(optional): 
            string
            
 - 
            sourceId(optional): 
            string
            
 - 
            sourceName(optional): 
            string
            
 - 
            startedDate(optional): 
            string
            
 - 
            status(optional): 
            string
            
 - 
            type(optional): 
            string
            
 
Examples
The following example shows how to create a role mining task.
curl -X POST\ -H "Accept: application/json"\ -H "Content-Type: application/json"\ -H "Authorization: Bearer $token"\ "http://localhost:port/oiri/api/v1/tasks" -d
Example of the Request Body
The following is an example of the request body in JSON format.
{
 name: "SampleTask2",
 description: "SampleTask2 desc",
 criteria: [{type: "user", filter: "organization in (\"VisCertOrg\")"}],
 candidateRoleCountIndicator: 3,
 candidateRolePrefix: "cr"
}
 Example of the Response Body
The following is an example of the response body in JSON format.
{
"id": "2",
"sourceId": null,
"sourceName": null,
"name": "SampleTask2",
"description": "SampleTask2 desc",
"type": "ROLE_MINING",
"status": "CREATED",
"message": null,
"createdDate": "2021-04-22T07:12:31.436679Z",
"createdBy": "RFROST",
"lastUpdatedDate": "2021-04-22T07:12:31.436679Z",
"startedDate": null,
"finishedData": null,
"input": {
"name": "SampleTask2",
"description": "SampleTask2",
"candidateRolePrefix": "cr",
"criteria": [
{
"type": "user",
"filter": "organization in (\"VisCertOrg\")"
}
],
"candidateRoleCountIndicator": 3
},
"output": null
}