You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*[getWorkspaceDocuments](docs/sdks/workspacedocuments/README.md#getworkspacedocuments) - Get documents in the workspace accessible to the calling user
@@ -324,6 +329,7 @@ var res = sdk.auth().getUserInfo().call();
324
329
325
330
*[getWorkspaces](docs/sdks/workspaces2/README.md#getworkspaces) - Gets workspaces available to the calling user
326
331
*[createWorkspace](docs/sdks/workspaces2/README.md#createworkspace) - Creates a new workspace
332
+
*[updateWorkspace](docs/sdks/workspaces2/README.md#updateworkspace) - Updates an existing workspace
327
333
*[getWorkspace](docs/sdks/workspaces2/README.md#getworkspace) - Returns details about the workspace
328
334
*[getWorkspaceAssignableRoles](docs/sdks/workspaces2/README.md#getworkspaceassignableroles) - Returns the roles the caller can assign to workspace users
329
335
*[createWorkspaceEnvelope](docs/sdks/workspaces2/README.md#createworkspaceenvelope) - Creates an envelope with the given documents. Returns the ID of the created envelope
@@ -461,15 +467,19 @@ public class Application {
461
467
462
468
Handling errors in this SDK should largely match your expectations. All operations return a response object or raise an exception.
463
469
464
-
By default, an API error will throw a `models/errors/APIException` exception. When custom error responses are specified for an operation, the SDK may also throw their associated exception. You can refer to respective *Errors* tables in SDK docs for more details on possible exception types for each operation. For example, the `getTokenFromConfidentialAuthCode` method throws the following exceptions:
|`body()`|`byte[]`| HTTP body as a byte array. Can be empty array if no body is returned. |
479
+
|`bodyAsString()`|`String`| HTTP body as a UTF-8 string. Can be empty string if no body is returned. |
480
+
|`rawResponse()`|`HttpResponse<?>`| Raw HTTP response (body already read and not available for re-read) |
472
481
482
+
### Example
473
483
```java
474
484
packagehello.world;
475
485
@@ -505,6 +515,29 @@ public class Application {
505
515
}
506
516
}
507
517
```
518
+
519
+
### Error Classes
520
+
**Primary error:**
521
+
*[`IamClientError`](./src/main/java/models/errors/IamClientError.java): The base class for HTTP error responses.
522
+
523
+
<details><summary>Less common errors (9)</summary>
524
+
525
+
<br />
526
+
527
+
**Network errors:**
528
+
*`java.io.IOException` (always wrapped by `java.io.UncheckedIOException`). Commonly encountered subclasses of
529
+
`IOException` include `java.net.ConnectException`, `java.net.SocketTimeoutException`, `EOFException` (there are
530
+
many more subclasses in the JDK platform).
531
+
532
+
**Inherit from [`IamClientError`](./src/main/java/models/errors/IamClientError.java)**:
533
+
*[`com.docusign.iam.sdk.models.errors.ErrorDetails`](./src/main/java/models/errors/com.docusign.iam.sdk.models.errors.ErrorDetails.java): The error response object for the Workspaces API. Applicable to 26 of 44 methods.*
534
+
*[`com.docusign.iam.sdk.models.errors.Error`](./src/main/java/models/errors/com.docusign.iam.sdk.models.errors.Error.java): Bad Request - The request could not be understood or was missing required parameters. Applicable to 11 of 44 methods.*
535
+
*[`com.docusign.iam.sdk.models.errors.OAuthErrorResponse`](./src/main/java/models/errors/com.docusign.iam.sdk.models.errors.OAuthErrorResponse.java): Status code `400`. Applicable to 5 of 44 methods.*
536
+
537
+
538
+
</details>
539
+
540
+
\* Check [the method documentation](#available-resources-and-operations) to see if the error is applicable.
|`brandId`|*JsonNullable\<String>*|:heavy_minus_sign:| A GUID value that identifies a brand. For more information, see <ahref="https://developers.docusign.com/docs/esign-rest-api/esign101/concepts/branding/">Branding</a> |
0 commit comments