// Updates the style sheet for an Assistant identified by &#x60;assistant_sid&#x60;.
Updates the style sheet for an Assistant identified by `assistant_sid`.
// Updates the style sheet for an Assistant identified by &#x60 ; assistant_sid&#x60 ; .
func (c *DefaultApiService) UpdateStyleSheet(AssistantSid string, params *UpdateStyleSheetParams) (*AutopilotV1AssistantStyleSheet, error) {
	path := "/v1/Assistants/{AssistantSid}/StyleSheet"
	path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1)
	data := url.Values{}
	headers := make(map[string]interface{})
	if params != nil && params.StyleSheet != nil {
		v, err := json.Marshal(params.StyleSheet)
		if err != nil {
			return nil, err
		}
		data.Set("StyleSheet", string(v))
	}
	resp, err := c.requestHandler.Post(c.baseURL+path, data, headers)
	if err != nil {
		return nil, err
	}
	defer resp.Body.Close()
	ps := &AutopilotV1AssistantStyleSheet{}
	if err := json.NewDecoder(resp.Body).Decode(ps); err != nil {
		return nil, err
	}
	return ps, err
}
func ( c * DefaultApiService ) UpdateStyleSheet ( AssistantSid string , params * UpdateStyleSheetParams ) ( * AutopilotV1AssistantStyleSheet , error ) { path := " " path = strings . Replace ( path , " " + " " + " " , AssistantSid , - 1 ) data := url . Values { } headers := make ( map [ string ] interface { } ) if params != nil && params . StyleSheet != nil { v , err := json . Marshal ( params . StyleSheet ) if err != nil { return nil , err } data . Set ( " " , string ( v ) ) } resp , err := c . requestHandler . Post ( c . baseURL + path , data , headers ) if err != nil { return nil , err } defer resp . Body . Close ( ) ps := & AutopilotV1AssistantStyleSheet { } if err := json . NewDecoder ( resp . Body ) . Decode ( ps ) ; err != nil { return nil , err } return ps , err }
Updates the style sheet for an Assistant identified by `assistant_sid`.
Updates the style sheet for an Assistant identified by ` assistant_sid ` .