Bulk Update Fields Using API

Here's how to create multiple program fields at once:
 
  1. Get program ID from https://app.signalvine.com/sv/programs/settings
  2. Craft the request body
    1. 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: String, DateTime, Date, Time, List, UUID, Phone, Timezone, Numeric, Float, Boolean
3. Submit the request
 
  1. From the app: https://app.signalvine.com/sv/settings/api, Choose POST in the Request Builder tab, put /v2/programs/<programId>/fields in 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
  2. 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 Authorization and SignalVine-Date headers (https://app.signalvine.com/sv/settings/api in the Verify Signature tab can help build this header)
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.