All URIs are relative to https://subdomain.okta.com
Method | HTTP request | Description |
---|---|---|
CreateUISchema | Post /api/v1/meta/uischemas | Create a UI Schema |
DeleteUISchemas | Delete /api/v1/meta/uischemas/{id} | Delete a UI Schema |
GetUISchema | Get /api/v1/meta/uischemas/{id} | Retrieve a UI Schema |
ListUISchemas | Get /api/v1/meta/uischemas | List all UI Schemas |
ReplaceUISchemas | Put /api/v1/meta/uischemas/{id} | Replace a UI Schema |
UISchemasResponseObject CreateUISchema(ctx).Uischemabody(uischemabody).Execute()
Create a UI Schema
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/lukas-hetzenecker/okta-sdk-golang"
)
func main() {
uischemabody := *openapiclient.NewCreateUISchema() // CreateUISchema |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UISchemaAPI.CreateUISchema(context.Background()).Uischemabody(uischemabody).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UISchemaAPI.CreateUISchema``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateUISchema`: UISchemasResponseObject
fmt.Fprintf(os.Stdout, "Response from `UISchemaAPI.CreateUISchema`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiCreateUISchemaRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
uischemabody | CreateUISchema |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteUISchemas(ctx, id).Execute()
Delete a UI Schema
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/lukas-hetzenecker/okta-sdk-golang"
)
func main() {
id := "uis4a7liocgcRgcxZ0g7" // string | The unique ID of the UI Schema
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.UISchemaAPI.DeleteUISchemas(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UISchemaAPI.DeleteUISchemas``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | The unique ID of the UI Schema |
Other parameters are passed through a pointer to a apiDeleteUISchemasRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UISchemasResponseObject GetUISchema(ctx, id).Execute()
Retrieve a UI Schema
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/lukas-hetzenecker/okta-sdk-golang"
)
func main() {
id := "uis4a7liocgcRgcxZ0g7" // string | The unique ID of the UI Schema
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UISchemaAPI.GetUISchema(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UISchemaAPI.GetUISchema``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetUISchema`: UISchemasResponseObject
fmt.Fprintf(os.Stdout, "Response from `UISchemaAPI.GetUISchema`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | The unique ID of the UI Schema |
Other parameters are passed through a pointer to a apiGetUISchemaRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]UISchemasResponseObject ListUISchemas(ctx).Execute()
List all UI Schemas
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/lukas-hetzenecker/okta-sdk-golang"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UISchemaAPI.ListUISchemas(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UISchemaAPI.ListUISchemas``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListUISchemas`: []UISchemasResponseObject
fmt.Fprintf(os.Stdout, "Response from `UISchemaAPI.ListUISchemas`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiListUISchemasRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UISchemasResponseObject ReplaceUISchemas(ctx, id).UpdateUISchemaBody(updateUISchemaBody).Execute()
Replace a UI Schema
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/lukas-hetzenecker/okta-sdk-golang"
)
func main() {
id := "uis4a7liocgcRgcxZ0g7" // string | The unique ID of the UI Schema
updateUISchemaBody := *openapiclient.NewUpdateUISchema() // UpdateUISchema |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UISchemaAPI.ReplaceUISchemas(context.Background(), id).UpdateUISchemaBody(updateUISchemaBody).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UISchemaAPI.ReplaceUISchemas``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ReplaceUISchemas`: UISchemasResponseObject
fmt.Fprintf(os.Stdout, "Response from `UISchemaAPI.ReplaceUISchemas`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | The unique ID of the UI Schema |
Other parameters are passed through a pointer to a apiReplaceUISchemasRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
updateUISchemaBody | UpdateUISchema | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]