patchCaptableClassesByIdWithHttpInfo method
Replaces one share class's terms.
Replaces one share class's terms. It is a full REPLACE and not a merge, despite the PATCH: every field is written as sent, so a field omitted is written empty rather than left alone. Send the whole class. The method is PATCH because the resource is addressed by id, not because the body is partial — and getting that backwards silently blanks terms every later issuance prices against.
Note: This method returns the HTTP Response.
Parameters:
-
String id (required): ID addresses the resource. The URL is the addressing authority — a path segment binds after the body and after the query — so the address decides which row is written whatever a body claims.
-
CaptableShareClassAmend captableShareClassAmend (required):
Implementation
Future<Response> patchCaptableClassesByIdWithHttpInfo(String id, CaptableShareClassAmend captableShareClassAmend,) async {
// ignore: prefer_const_declarations
final path = r'/v1/captable/classes/{id}'
.replaceAll('{id}', id);
// ignore: prefer_final_locals
Object? postBody = captableShareClassAmend;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'PATCH',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}