/organisations/{orgId}/roles/{roleId} (PATCH)
PATCH
/organisations/{orgId}/roles/{roleId}
const url = 'https://kravos-orchestrator.onrender.com/organisations/example/roles/example';const options = { method: 'PATCH', headers: {'Content-Type': 'application/json'}, body: '{"name":"example","overallThreshold":1,"dimensions":[{"name":"example","weight":1,"category":"process","threshold":1}],"ticketIds":["example"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://kravos-orchestrator.onrender.com/organisations/example/roles/example \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "overallThreshold": 1, "dimensions": [ { "name": "example", "weight": 1, "category": "process", "threshold": 1 } ], "ticketIds": [ "example" ] }'Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”orgId
required
string
roleId
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
name
required
string
overallThreshold
required
integer
dimensions
required
Array<object>
object
name
required
string
weight
required
integer
category
required
string
threshold
integer
ticketIds
Array<string>
Responses
Section titled “ Responses ”Default Response