Create Program Resource
growsurf_create_program_resourceCreate FILE, LINK, or TEXT resources for GrowSurf program participants, with optional publishing, category, and campaign targeting.
Instructions
Create a FILE, LINK, or TEXT resource for participants. LINK requires an HTTPS url. TEXT requires plain text. A FILE up to 10 MB requires a one-time uploadTicket and the unmodified uploadResult from GrowSurf's secure upload flow. New resources default to draft unless isPublished is set. API reference: https://docs.growsurf.com/developer-tools/rest-api/api-reference. Targets campaignId if supplied, otherwise GROWSURF_CAMPAIGN_ID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Used only with `LINK`. | |
| text | No | Used only with `TEXT`. | |
| type | Yes | ||
| title | Yes | ||
| category | No | ||
| campaignId | No | Target program (campaign) id for this call. Defaults to GROWSURF_CAMPAIGN_ID when omitted. Program IDs also identify newly created programs without restarting the server. | |
| description | No | ||
| isPublished | No | ||
| uploadResult | No | The unmodified result returned by the secure upload flow. Used only with `FILE`. | |
| uploadTicket | No | The one-time upload ticket. Used only with `FILE`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||