orgsClientsSDK := client.OrgsClientsSDK()
OrgsClientsSDK
Update SDK Client
UpdateSdkClient(
ctx context.Context,
orgId uuid.UUID,
sdkclientId uuid.UUID,
body *models.NameString) (
http.Response,
error)
Parameter | Type | Tags | Description |
---|---|---|---|
orgId |
uuid.UUID |
Template, Required | - |
sdkclientId |
uuid.UUID |
Template, Required | - |
body |
*models.NameString |
Body, Optional | Request Body |
``
ctx := context.Background()
orgId := uuid.MustParse("000000ab-00ab-00ab-00ab-0000000000ab")
sdkclientId := uuid.MustParse("000000ab-00ab-00ab-00ab-0000000000ab")
body := models.NameString{
Name: models.ToPointer("John Smith"),
}
resp, err := orgsClientsSDK.UpdateSdkClient(ctx, orgId, sdkclientId, &body)
if err != nil {
log.Fatalln(err)
} else {
fmt.Println(resp.StatusCode)
}
HTTP Status Code | Error Description | Exception Class |
---|---|---|
400 | Bad Syntax | ResponseHttp400Exception |
401 | Unauthorized | ResponseHttp401ErrorException |
403 | Permission Denied | ResponseHttp403ErrorException |
404 | Not found. The API endpoint doesn’t exist or resource doesn’ t exist | ResponseHttp404Exception |
429 | Too Many Request. The API Token used for the request reached the 5000 API Calls per hour threshold | ResponseHttp429ErrorException |