riskSetReference method
Writes your organisation's own allow and deny entries over a set.
Writes your organisation's own allow and deny entries over a set. Idempotent on the key: writing the same entry twice is one entry, and writing it again replaces the verdict and the note. The whole batch is one transaction, so a batch that would cross the per-set bound writes nothing rather than half of itself — a half-applied deny list is worse than a refused one, because nobody can tell which half applied. Your entries are held in your organisation's own store and are never visible to another organisation, and they never change what any other organisation sees. The shared baseline is not writable from here at all.
Parameters:
-
String set_ (required):
-
SetReferenceIn setReferenceIn (required):
Implementation
Future<SetReferenceOut?> riskSetReference(String set_, SetReferenceIn setReferenceIn,) async {
final response = await riskSetReferenceWithHttpInfo(set_, setReferenceIn,);
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
// When a remote server returns no body with a status of 204, we shall not decode it.
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
// FormatException when trying to decode an empty string.
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'SetReferenceOut',) as SetReferenceOut;
}
return null;
}