Skip to content

Latest commit

 

History

History
68 lines (48 loc) · 1.86 KB

orgs-clients-sdk.md

File metadata and controls

68 lines (48 loc) · 1.86 KB

Orgs Clients-SDK

orgsClientsSDK := client.OrgsClientsSDK()

Class Name

OrgsClientsSDK

Update Sdk Client

Update SDK Client

UpdateSdkClient(
    ctx context.Context,
    orgId uuid.UUID,
    sdkclientId uuid.UUID,
    body *models.NameString) (
    http.Response,
    error)

Parameters

Parameter Type Tags Description
orgId uuid.UUID Template, Required -
sdkclientId uuid.UUID Template, Required -
body *models.NameString Body, Optional Request Body

Response Type

``

Example Usage

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)
}

Errors

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