growsurf_create_program_resource
Create and publish resources (files, links, or text) for program participants, with optional campaign targeting and draft status.
Instructions
Create a FILE, LINK, or TEXT resource for participants. LINK requires an HTTPS url. TEXT requires plain text. For a FILE up to 10 MB, call growsurf_prepare_program_resource_file first and pass its uploadTicket and uploadResult unchanged. New resources default to draft unless you set isPublished. Targets campaignId if you pass it, 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. Pass the `id` returned by growsurf_create_campaign to configure or operate a program you just created, 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 | |||