All URIs are relative to /api
Method | HTTP request | Description |
---|---|---|
SelfServiceBrandingImagesPost | Post /self-service/branding/images | Upload an image |
BrandingImageUrl SelfServiceBrandingImagesPost(ctx).File(file).Execute()
Upload an image
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
file := os.NewFile(1234, "some_file") // *os.File | The file to upload
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SelfServiceBrandingPreviewApi.SelfServiceBrandingImagesPost(context.Background()).File(file).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SelfServiceBrandingPreviewApi.SelfServiceBrandingImagesPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SelfServiceBrandingImagesPost`: BrandingImageUrl
fmt.Fprintf(os.Stdout, "Response from `SelfServiceBrandingPreviewApi.SelfServiceBrandingImagesPost`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSelfServiceBrandingImagesPostRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
file | *os.File | The file to upload |
- Content-Type: multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]