Links
Update a link
Changing the destination never rewrites the tracking value: published links keep working.
Scope: partners:write (or write)
post/v1/links/{id}
Request
- Base URL: https://api.affiliaterail.com
- URL: https://api.affiliaterail.com/v1/links/{id}
- Auth: HTTP bearer
Path parameters
idstring required
Prefixed id (lnk_…)
Example:lnk_7uSyy9FqVLCFWrdPeZaK
Request body
Response
The updated link
Example response
{
"id": "lnk_7uSyy9FqVLCFWrdPeZaK",
"partner_id": "part_7uSyy9FqVLCFWrdPeZaK",
"created_at": "2026-08-21T10:15:30.000Z",
"updated_at": "2026-08-21T10:15:30.000Z"
}Changes
No recorded changes to this operation across all 1 revision of this API.