非実行ロール・マイニング・タスクの更新
put
/oiri/api/v1/tasks/{taskId}
タスクの名前、説明、フィルタおよび構成パラメータの変更を許可します。
リクエスト
パス・パラメータ
サポートされているメディア・タイプ
- application/json
レスポンス
サポートされているメディア・タイプ
- application/json
200レスポンス
OK
ルート・スキーマ: JobDetails
型:
ソースを表示
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
例
次の例は、非実行ロール・マイニング・タスクを更新する方法を示しています。
curl -X PUT\ -H "Accept: application/json"\ -H "Content-Type: application/json"\ -H "Authorization: Bearer $token"\ "http://localhost:port/oiri/api/v1/tasks/2" -d
リクエスト本文の例
JSON形式のリクエスト本文の例を次に示します。
{
"name":"SampleTask2",
"description":"SampleTask2",
"criteria":
[{"type":"user",
"filter":"organization in (\"StarOrg1\",\"MyOrg1\")"}],
"candidateRoleCountIndicator":3
}
レスポンス本文の例
JSON形式のレスポンス本文の例を次に示します。
{
"id": "2",
"sourceId": null,
"sourceName": null,
"name": "SampleTask2",
"description": "SampleTask2",
"type": "ROLE_MINING",
"status": "CREATED",
"message": null,
"createdDate": "2021-04-22T07:12:31.436679Z",
"createdBy": "RFROST",
"lastUpdatedDate": "2021-04-22T12:38:10.713501Z",
"startedDate": null,
"finishedData": null,
"input": {
"name": "SampleTask2",
"description": "SampleTask2",
"candidateRolePrefix": "",
"criteria": [
{
"type": "user",
"filter": "organization in (\"StarOrg1\",\"MyOrg1\")"
}
],
"candidateRoleCountIndicator": 3
},
"output": null
}