Link Search Menu Expand Document

Updated Thu Sep 23rd 2021, 14:49 UTC

Update

PUT /integrations/:integration

Note: This endpoint is still under active development, and may change without warning.

Update the config or “active” flag of an existing Integration.

Examples

Update an Integration

Request

PUT /integrations/0yX2VrJ

Body

{
  "config": {
    "baseUrl": "https://foo.bar.com/zest",
    "clientSecret": "secret"
  },
  "active": true,
  "settings": {
    "actions": {
      "message.received": true,
      "message.delivered": true,
      "message.failed": true,
      "message.unknown": false,
      "phone_call.completed": false,
      "contact.opted_out": true,
      "contact.opted_in": true,
      "contact.created": true
    }
  }
}
Example
$ curl -i -H Accept:"application/vnd.textus+jsonld" \
    -H Authorization:"Bearer {token}" \
    -X PUT /integrations/0yX2VrJ
     -d '{json: "body"}' 

Response

Status

200

Response Type

Integration

Example
{
  "@type": "Integration",
  "@context": "/contexts/Integration.jsonld",
  "id": "/integrations/0yX2VrJ",
  "active": true,
  "provider": "webhook",
  "config": {
    "baseUrl": "https://foo.bar.com/zest",
    "webhookSecret": "textus-abcdefgh12345678",
    "clientSecret": "[FILTERED]"
  },
  "settings": {
    "actions": {
      "message.received": true,
      "message.delivered": true,
      "message.failed": true,
      "message.unknown": false,
      "phone_call.completed": false,
      "contact.opted_out": true,
      "contact.opted_in": true,
      "contact.created": true
    }
  }
}

© 2021 TextUs