- 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
Create Document
Pending
POST
https://api.mpc.dev.placewise.com/v1/operations/documents
API Permit:Operations:Api:Documents:Create
API Context:Loyalty Club
Authorizations:UserToken
Body Parameters#
Key | Type | Description |
---|---|---|
document.title | string | |
document.description | string | |
document.message_channel | enum: ['sms', 'email', 'push'] | The channel for sending a notification and reminders |
document.recipients | integer[] | IDs of members that should receive the document - max. 1000 |
document.confirmable | boolean | Is document meant to be confirmed by recipients? Default: false |
document.public_access | boolean | Does document have public access Default: false Incompatible with confirmed document & recipient list |
Key | Type | Description |
---|---|---|
document.deadline_at | datetime | Date until the document should be confirmed |
document.first_reminder.days_before_deadline | integer | Number of days before the deadline the first reminder should be sent |
document.second_reminder.days_before_deadline | integer | Number of days before the deadline the second reminder should be sent |
Response Body#
Key | Type | Description |
---|---|---|
document | Document | See: Document model |
Error Responses#
Status | Description |
---|---|
422 | Invalid parameters - see Invalid parameters errors model |
Specific Validation Errors#
Key | Error |
---|---|
document.second_reminder | cannot_be_present_without_first_reminder |
document.second_reminder.days_before_deadline | cannot_be_before_first_reminder |
Example#
{
"document": {} // Document - see: 'Document model'
}
Request
Header Params
X-Loyalty-Club-Slug
stringÂ
required
Default:
{{LOYALTY_CLUB_SLUG}}
X-Client-Authorization
stringÂ
optional
Default:
{{API_TOKEN}}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.mpc.dev.placewise.com/v1/operations/documents' \
--header 'X-User-Agent;' \
--header 'X-Product-Name;' \
--header 'X-Loyalty-Club-Slug;' \
--header 'X-Customer;' \
--header 'Authorization;' \
--header 'X-Client-Authorization: '
Responses
🟢200Success
application/json
Body
object {0}
Example
{}
Modified at 2024-05-07 15:49:04