All URIs are relative to http://localhost:8989
Method | HTTP request | Description |
---|---|---|
CreateCustomFormat | Post /api/v3/customformat | |
DeleteCustomFormat | Delete /api/v3/customformat/{id} | |
DeleteCustomFormatBulk | Delete /api/v3/customformat/bulk | |
GetCustomFormatById | Get /api/v3/customformat/{id} | |
ListCustomFormat | Get /api/v3/customformat | |
ListCustomFormatSchema | Get /api/v3/customformat/schema | |
PutCustomFormatBulk | Put /api/v3/customformat/bulk | |
UpdateCustomFormat | Put /api/v3/customformat/{id} |
CustomFormatResource CreateCustomFormat(ctx).CustomFormatResource(customFormatResource).Execute()
package main
import (
"context"
"fmt"
"os"
sonarrClient "github.com/devopsarr/sonarr-go/sonarr"
)
func main() {
customFormatResource := *sonarrClient.NewCustomFormatResource() // CustomFormatResource | (optional)
configuration := sonarrClient.NewConfiguration()
apiClient := sonarrClient.NewAPIClient(configuration)
resp, r, err := apiClient.CustomFormatAPI.CreateCustomFormat(context.Background()).CustomFormatResource(customFormatResource).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CustomFormatAPI.CreateCustomFormat``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateCustomFormat`: CustomFormatResource
fmt.Fprintf(os.Stdout, "Response from `CustomFormatAPI.CreateCustomFormat`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiCreateCustomFormatRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
customFormatResource | CustomFormatResource |
- Content-Type: application/json
- Accept: text/plain, application/json, text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteCustomFormat(ctx, id).Execute()
package main
import (
"context"
"fmt"
"os"
sonarrClient "github.com/devopsarr/sonarr-go/sonarr"
)
func main() {
id := int32(56) // int32 |
configuration := sonarrClient.NewConfiguration()
apiClient := sonarrClient.NewAPIClient(configuration)
r, err := apiClient.CustomFormatAPI.DeleteCustomFormat(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CustomFormatAPI.DeleteCustomFormat``: %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 | int32 |
Other parameters are passed through a pointer to a apiDeleteCustomFormatRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteCustomFormatBulk(ctx).CustomFormatBulkResource(customFormatBulkResource).Execute()
package main
import (
"context"
"fmt"
"os"
sonarrClient "github.com/devopsarr/sonarr-go/sonarr"
)
func main() {
customFormatBulkResource := *sonarrClient.NewCustomFormatBulkResource() // CustomFormatBulkResource | (optional)
configuration := sonarrClient.NewConfiguration()
apiClient := sonarrClient.NewAPIClient(configuration)
r, err := apiClient.CustomFormatAPI.DeleteCustomFormatBulk(context.Background()).CustomFormatBulkResource(customFormatBulkResource).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CustomFormatAPI.DeleteCustomFormatBulk``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Other parameters are passed through a pointer to a apiDeleteCustomFormatBulkRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
customFormatBulkResource | CustomFormatBulkResource |
(empty response body)
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CustomFormatResource GetCustomFormatById(ctx, id).Execute()
package main
import (
"context"
"fmt"
"os"
sonarrClient "github.com/devopsarr/sonarr-go/sonarr"
)
func main() {
id := int32(56) // int32 |
configuration := sonarrClient.NewConfiguration()
apiClient := sonarrClient.NewAPIClient(configuration)
resp, r, err := apiClient.CustomFormatAPI.GetCustomFormatById(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CustomFormatAPI.GetCustomFormatById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetCustomFormatById`: CustomFormatResource
fmt.Fprintf(os.Stdout, "Response from `CustomFormatAPI.GetCustomFormatById`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | int32 |
Other parameters are passed through a pointer to a apiGetCustomFormatByIdRequest 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]
[]CustomFormatResource ListCustomFormat(ctx).Execute()
package main
import (
"context"
"fmt"
"os"
sonarrClient "github.com/devopsarr/sonarr-go/sonarr"
)
func main() {
configuration := sonarrClient.NewConfiguration()
apiClient := sonarrClient.NewAPIClient(configuration)
resp, r, err := apiClient.CustomFormatAPI.ListCustomFormat(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CustomFormatAPI.ListCustomFormat``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListCustomFormat`: []CustomFormatResource
fmt.Fprintf(os.Stdout, "Response from `CustomFormatAPI.ListCustomFormat`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiListCustomFormatRequest 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]
[]CustomFormatSpecificationSchema ListCustomFormatSchema(ctx).Execute()
package main
import (
"context"
"fmt"
"os"
sonarrClient "github.com/devopsarr/sonarr-go/sonarr"
)
func main() {
configuration := sonarrClient.NewConfiguration()
apiClient := sonarrClient.NewAPIClient(configuration)
resp, r, err := apiClient.CustomFormatAPI.ListCustomFormatSchema(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CustomFormatAPI.ListCustomFormatSchema``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListCustomFormatSchema`: []CustomFormatSpecificationSchema
fmt.Fprintf(os.Stdout, "Response from `CustomFormatAPI.ListCustomFormatSchema`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiListCustomFormatSchemaRequest struct via the builder pattern
[]CustomFormatSpecificationSchema
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CustomFormatResource PutCustomFormatBulk(ctx).CustomFormatBulkResource(customFormatBulkResource).Execute()
package main
import (
"context"
"fmt"
"os"
sonarrClient "github.com/devopsarr/sonarr-go/sonarr"
)
func main() {
customFormatBulkResource := *sonarrClient.NewCustomFormatBulkResource() // CustomFormatBulkResource | (optional)
configuration := sonarrClient.NewConfiguration()
apiClient := sonarrClient.NewAPIClient(configuration)
resp, r, err := apiClient.CustomFormatAPI.PutCustomFormatBulk(context.Background()).CustomFormatBulkResource(customFormatBulkResource).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CustomFormatAPI.PutCustomFormatBulk``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `PutCustomFormatBulk`: CustomFormatResource
fmt.Fprintf(os.Stdout, "Response from `CustomFormatAPI.PutCustomFormatBulk`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiPutCustomFormatBulkRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
customFormatBulkResource | CustomFormatBulkResource |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CustomFormatResource UpdateCustomFormat(ctx, id).CustomFormatResource(customFormatResource).Execute()
package main
import (
"context"
"fmt"
"os"
sonarrClient "github.com/devopsarr/sonarr-go/sonarr"
)
func main() {
id := "id_example" // string |
customFormatResource := *sonarrClient.NewCustomFormatResource() // CustomFormatResource | (optional)
configuration := sonarrClient.NewConfiguration()
apiClient := sonarrClient.NewAPIClient(configuration)
resp, r, err := apiClient.CustomFormatAPI.UpdateCustomFormat(context.Background(), id).CustomFormatResource(customFormatResource).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CustomFormatAPI.UpdateCustomFormat``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateCustomFormat`: CustomFormatResource
fmt.Fprintf(os.Stdout, "Response from `CustomFormatAPI.UpdateCustomFormat`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string |
Other parameters are passed through a pointer to a apiUpdateCustomFormatRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
customFormatResource | CustomFormatResource | |
- Content-Type: application/json
- Accept: text/plain, application/json, text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]