- Overview
- Reference
- API Structure
- Public API
- Introduction
- Loyalty Club
- Member
- Offers
- Rewards
- Games
- CMS Content
- Management API
- Introduction
- Core
- Applications
- Privacy Policy
- Cookie Policy
- Terms
- Domains
- Domain Email Configs
- Domain Web Configs
- TLS Certificates
- Links
- Fonts
- Subunits
- Subunits Scopes
- SMS Sender Identities
- Contacts
- Translations
- Promotions Policy
- Tracker
- Social Logins
- Billing
- Members
- Listing Members
- Member Profile
- Imports
- Groups
- Programs
- Benefits
- Cars
- Webhooks
- Misc
- Receipts
- Stores
- Offers
- Rewards
- Triggerer
- CMS
- Introduction
- Pages
- Components
- Website
- Website Domains
- Venue Info
- Landing Pages
- Landing Page Templates
- Articles
- Events
- Events Groups
- Job Postings
- Press Releases
- Tags
- Service Messages
- Content Prototypes
- ContentPrototype Model
- List Content Prototypes
- Show Content Prototype
- Create Content Prototype
- Update Content Prototype
- Destroy Content Prototype
- List Organization Content Prototypes
- Show Organization Content Prototype
- Create Organization Content Prototype
- Update Organization Content Prototype
- Destroy Organization Content Prototype
- Mixed Content
- Attachments
- Events
- Games
- Scraper
- Files
- Receipts
- Users API
- Operations API
- Introduction
- Manager API
- Introduction
- Settings
- ABM Links
- Members
- Issues
- Articles
- Articles Categories
- Documents
- Resource Types
- Resources
- Revenue Reporting
- Alerts
- Alert Templates
- Footfall Reporting
- Tenant API
- Messaging API
- Data API
- ML API
- Introduction
- Predict Sending KPI v1
- Explain Sending KPI Prediction v1
- Predict Sending KPI In Date Range v1
- Predict Sending Popularity v2
- Predict Sending Text Popularity v2
- Predict Sending Time Series Popularity v2
- Explain Sending Popularity Prediction v2
- Explain Sending Text Popularity Prediction v2
- Explain Sending Time Series Popularity Prediction v2
- Recommend sending time v2
- Generate Image
- Generate Text
- Generate Sending Text
- (Draft) Reporting API
- Other
Introduction
Resource model#
As an admin, one can list, accept and reject resources submitted by users.
Example#
{
"id": 15,
"resource_type": "Some resource type",
"store_id": 3,
"member_id": 33,
"user_id": "some-user-uuid",
"name": "a very important document",
"marketing_usable": true,
"file_url": "https://some.file/url",
"state": "accepted",
"properties": {
"campaign_name": ["November", "October"],
"used_so_far": false,
"author_count": 3
},
"campaign_type": "some campaign type",
"notes": "some notes about the resource",
"created_at": "2020-12-30T17:12:46.435Z",
"updated_at": "2020-12-30T17:12:50.235Z",
}
Definition#
Key | Type | Optional | Description |
---|---|---|---|
id | integer | no | |
resource_type | string | no | name of the ResourceType the resource is assigned to |
store_id | integer | no | .id of the Store the resource is assigned to |
member_id | integer | no | .member_id of the User the resource has been created by |
user_id | string | no | uuid of the User the resource has been created by |
name | string | no | name of the resource |
marketing_usable | boolean | no | whether the resource will be allowed to be used for marketing purposes |
file_url | string | no | URL of the file where the resource is located at |
state | string | no | current state of the resource (could be pending (the default one), accepted or rejected ) |
properties | object | yes | custom attributes of the resource |
campaign_type | string | yes | campaign type of the resource |
notes | string | yes | notes about the resource - used to provide a reason for its acceptance/rejection/resubmission |
created_at | datetime | no | time of creation |
updated_at | datetime | no | time of last update |
Modified at 2024-04-22 22:13:55