media.go
changeset 238 1c0042e76902
parent 216 403ce36a94ab
child 247 17e32e951670
--- a/media.go	Thu Sep 06 00:34:44 2018 +0200
+++ b/media.go	Thu Sep 06 01:07:40 2018 +0200
@@ -101,7 +101,7 @@
 
 	endPoint := "media/" + strconv.FormatInt(mediaID, 10)
 	var attachment Attachment
-	if err := mc.apiCall(endPoint, rest.Put, params, nil, nil, &attachment); err != nil {
+	if err := mc.apiCall("v1/"+endPoint, rest.Put, params, nil, nil, &attachment); err != nil {
 		return nil, err
 	}
 	return &attachment, nil