PUT /api/1/medialink/{id}
This endpoint will update an existing media URL link. Note, this is a "x-www-form-urlencoded" post.
Parameters
Name | Parameter Type |
Allow Multiple |
Required/ Optional |
Data Type | Description |
---|---|---|---|---|---|
Authorization: | Header | False | Required | String (Bearer {access token}) | Pass the authentication token that was granted when you authorized access. |
id | Path | False | Required | String | The id value for the media link to update. |
name | Form | False | Optional | String | Name of the media link. Both this field and the url field cannot be null. |
url | Form | False | Optional | String | The target URL for the media object. Both this field and the name field cannot be null. |
Response
{ "status": "success", "message": "MediaLink updated" }
Code Examples
cURL
curl -X PUT -H "Authorization: Bearer b283768db7f2fadf5fd8fb8a2f8fd2e" -H "Cache-Control: no-cache" -H "Content-Type: application/x-www-form-urlencoded" -d 'url=http%3A%2F%2Fact-on.net&name=anything' https://restapi.actonsoftware.com/api/1/medialink/u-0002