Link Search Menu Expand Document

Updated Fri Mar 5th 2021, 12:17 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
}
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": "textus",
  "config": {
    "baseUrl": "https://foo.bar.com/zest",
    "clientSecret": "[FILTERED]"
  },
  "settings": {}
}

© 2021 TextUs