code: func (s *ScraperService) AddTarget(ctx context.Context, target *platform.ScraperTarget) error {
  	url, err := newURL(s.Addr, targetPath)
  	if err != nil {
  		return err
  	}
  
  	octets, err := json.Marshal(target)
  	if err != nil {
  		return err
  	}
  
  	req, err := http.NewRequest("POST", url.String(), bytes.NewReader(octets))
  	if err != nil {
  		return err
  	}
  
  	req.Header.Set("Content-Type", "application/json")
  	SetToken(s.Token, req)
  
  	hc := newClient(url.Scheme, s.InsecureSkipVerify)
  
  	resp, err := hc.Do(req)
  	if err != nil {
  		return err
  	}
  
  	// TODO(jsternberg): Should this check for a 201 explicitly?
  	if err := CheckError(resp, true); err != nil {
  		return err
  	}
  
  	targetResp := new(targetResponse)
  	if err := json.NewDecoder(resp.Body).Decode(targetResp); err != nil {
  		return err
  	}
  
  	return nil
  }
docs: // AddTarget creates a new scraper target and sets target.ID with the new identifier.