code: func (c *Client) PutResource(resource *ct.Resource) error {
  	if resource.ID == "" || resource.ProviderID == "" {
  		return errors.New("controller: missing id and/or provider id")
  	}
  	return c.Put(fmt.Sprintf("/providers/%s/resources/%s", resource.ProviderID, resource.ID), resource, resource)
  }
docs: // PutResource updates a resource.