Update Attachments

Hey,

I've been struggling to use the update attachment endpoint. I'm rather confused about when you use the URL parameter that is optional as I keep getting the following error when using it:

```

{

"errorDescription": "Parameter 'url' value is invalid",
"error": "invalid_parameter"
}
```
 
Could you give me a definition on when I would use the URL parameter and how I can make a successful call using it.
 
 
Here is a sample call I'm making:

```curl -X PUT \
'https://www.wrike.com/api/v4/attachments/idGoesHere?url=https://www.youtube.com/watch?v=gYgveD5B-V0Can' \
-H 'Accept: */*' \
-H 'Accept-Encoding: gzip, deflate' \
-H 'Authorization: Bearer tokenGoesHere' \
-H 'Cache-Control: no-cache' \
-H 'Connection: keep-alive' \
-H 'Content-Length: ' \
-H 'Host: www.wrike.com' \
-H 'Postman-Token: 508f567d-5617-4313-ba6c-17665017f73a,4740c672-1811-42b0-a028-f0a9c21c2572' \
-H 'User-Agent: PostmanRuntime/7.15.2' \
-H 'cache-control: no-cache'
```
0
3 Kommentare
Spot On Innovative Approach Stellar Advice
Avatar

Hi Sam, welcome to the Community and sorry for the long reply here.

I'm raising a Support ticket for you now as I think we need some advanced Support help here. Someone will reach out to you on this.

Please let me know if you have any other questions 🙂

Lisa Community Team at Wrike Become a Wrike expert with Wrike Discover

0
Aktionen für Kommentare Permalink
Spot On Innovative Approach Stellar Advice
Avatar

@Sam Johnson I seem to be having the same issue, can you please share the resolution?

0
Aktionen für Kommentare Permalink
Spot On Innovative Approach Stellar Advice
Avatar
Hugh

Hi Joel Gold

You can use the URL parameter to change the attachment content (instead of X-File-Name or multipart/). File links from the following domains are supported:
zendesk.com
zapier.com
zapier-dev-files.s3.amazonaws.com

Hope this helps! If you have any other questions, let me know 😊

0
Aktionen für Kommentare Permalink

Folllowing List for Post: Update Attachments
[this list is visible for admins and agents only]

Didn’t find what you were looking for? Write new post