Resources
Create a link resource
A link on the shelf, published straight away unless you say otherwise. File uploads happen in the dashboard.
Scope: write
post/v1/resources
Request
- Base URL: https://api.affiliaterail.com
- URL: https://api.affiliaterail.com/v1/resources
- Auth: HTTP bearer
Request body
Example request
{
"program_id": "prg_7uSyy9FqVLCFWrdPeZaK",
"group_ids": [
"grp_7uSyy9FqVLCFWrdPeZaK"
],
"tag_ids": [
"tag_7uSyy9FqVLCFWrdPeZaK"
]
}Response
The new resource
Example response
{
"id": "res_7uSyy9FqVLCFWrdPeZaK",
"program_id": "prg_7uSyy9FqVLCFWrdPeZaK",
"group_ids": [
"grp_7uSyy9FqVLCFWrdPeZaK"
],
"tag_ids": [
"tag_7uSyy9FqVLCFWrdPeZaK"
],
"published_at": "2026-08-21T10:15:30.000Z",
"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.