growsurf_update_program_resource
Update a program resource's fields, reorder it by position, or replace its file using a prepared upload ticket. Send only the fields you want changed.
Instructions
Update at least one participant resource field, or move it to a zero-based position. Only sent fields change. To replace a FILE, call growsurf_prepare_program_resource_file first and pass its uploadTicket and uploadResult unchanged. Targets campaignId if you pass it, otherwise GROWSURF_CAMPAIGN_ID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Used with `LINK`. | |
| text | No | Used with `TEXT`. | |
| type | No | ||
| title | No | ||
| category | No | ||
| position | 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. | |
| resourceId | Yes | ||
| description | No | ||
| isPublished | No | ||
| uploadResult | No | The unmodified result returned by the secure upload flow for a replacement `FILE`. | |
| uploadTicket | No | The one-time upload ticket for a replacement `FILE`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||