Sponsor banner ads
Sponsor banner ads: available fields, filters, associations, and API operations.
Path: events/{event_id}/sponsor-banner-ads
Methods: GET collection/record, POST, PATCH. There is no DELETE operation; use archived on PATCH.
GET
- Fields:
event-id,sponsor-id,title,position,image-url,display-count,archived-at,created-at,updated-at,clicks-count,clicks-by-day. - Filters:
sponsor_id,active. - Association:
sponsor, linkage only. - Row restriction: by the
sponsorassociation.
GET .../sponsor-banner-ads?sponsor_id=103705&active=true
POST requires sponsor_id; it also accepts title, position, and image.
{
"sponsor_id": 103705,
"title": "Example Ltd",
"position": 1,
"image": "data:image/png;base64,..."
}
PATCH accepts title, position, image, and archived. An empty image value removes the image. Sponsor restrictions apply to reads and writes.