code: func (s *AuthorizationService) SetAuthorizationStatus(ctx context.Context, id platform.ID, status platform.Status) error {
  	u, err := newURL(s.Addr, authorizationIDPath(id))
  	if err != nil {
  		return err
  	}
  
  	b, err := json.Marshal(setAuthorizationStatusRequest{
  		Status: status,
  	})
  	if err != nil {
  		return err
  	}
  
  	req, err := http.NewRequest("PATCH", u.String(), bytes.NewReader(b))
  	if err != nil {
  		return err
  	}
  
  	req.Header.Set("Content-Type", "application/json")
  	SetToken(s.Token, req)
  
  	hc := newClient(u.Scheme, s.InsecureSkipVerify)
  
  	resp, err := hc.Do(req)
  	if err != nil {
  		return err
  	}
  
  	if err := CheckError(resp, true); err != nil {
  		return err
  	}
  
  	return nil
  }
docs: // SetAuthorizationStatus updates an authorization's status.