PATCH
/
v1
/
s
/
connection
const options = {
  method: 'PATCH',
  headers: {
    'x-api-key': '<api-key>',
    'x-api-secret': '<api-key>',
    'Content-Type': 'application/json'
  },
  body: '{"operations":["genericCompany::create"]}'
};

fetch('https://api.runmorph.dev/v1/s/connection', options)
  .then(response => response.json())
  .then(response => console.log(response))
  .catch(err => console.error(err));
{
  "object": "connection",
  "connectorId": "<string>",
  "ownerId": "<string>",
  "operations": [
    "<string>"
  ],
  "status": "<string>",
  "createdAt": "<string>",
  "updatedAt": "<string>"
}

Authorizations

x-api-key
string
header
required
x-api-secret
string
header
required

Query Parameters

createIfMissing
default:false

Flag to create the connection if it doesn't exist

Body

Response

200
application/json

OK

The response is of type object.