Skip to content

Latest commit

 

History

History
73 lines (44 loc) · 1.71 KB

ActivationCodeAPI.md

File metadata and controls

73 lines (44 loc) · 1.71 KB

\ActivationCodeAPI

All URIs are relative to /api

Method HTTP request Description
V1ActivationCodePut Put /v1/activation-code Updates Activation Code

V1ActivationCodePut

V1ActivationCodePut(ctx).ActivationCode(activationCode).Execute()

Updates Activation Code

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/yohan460/go-jamf-api/api"
)

func main() {
	activationCode := *openapiclient.NewActivationCode("A1A1-B2B2-C3C3-D4D4-E5E5-F6F6-G7G7-H8H8") // ActivationCode |  (optional)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	r, err := apiClient.ActivationCodeAPI.V1ActivationCodePut(context.Background()).ActivationCode(activationCode).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ActivationCodeAPI.V1ActivationCodePut``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiV1ActivationCodePutRequest struct via the builder pattern

Name Type Description Notes
activationCode ActivationCode

Return type

(empty response body)

Authorization

Bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]