Here's how to create multiple program fields at once:
- Get program ID from https://app.signalvine.com/sv/programs/settings
- Craft the request body
- Create a JSON payload like this:
{
"variables": [
{"name":"FIELD_NAME_1","type":"String","nullable":true},
{"name":"FIELD_NAME_2","type":"Date","nullable":true}
]
} b. Here's the list of allowed types:
3. Submit the request
String, DateTime, Date, Time, List, UUID, Phone, Timezone, Numeric, Float, Boolean3. Submit the request
- From the app: https://app.signalvine.com/sv/settings/api, Choose
POSTin the Request Builder tab, put/v2/programs/<programId>/fieldsin the API Endpoint field, replacing<programId>with your actual Program Id from step 1. and paste the JSON Request Body prepared in 2. Click Go and the fields will be created - From Postman or any other tool to make direct API calls, use the same details as above, and you'll also need to use your API token to authorize the request by added the proper
AuthorizationandSignalVine-Dateheaders (https://app.signalvine.com/sv/settings/api in the Verify Signature tab can help build this header)
Comments
Please sign in to leave a comment.