Update package partially
curl --request PATCH \
--url https://api.getmembrane.com/packages/{selector} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"uuid": "<string>",
"key": "<string>",
"name": "<string>",
"description": "<string>",
"meta": {},
"integrationId": "<string>",
"integrationUuid": "<string>",
"integrationKey": "<string>",
"parentId": "<string>",
"parentUuid": "<string>",
"parentKey": "<string>",
"connectionId": "<string>",
"instanceKey": "<string>",
"isUniversal": true,
"externalAppId": "<string>",
"externalAppUuid": "<string>",
"externalAppKey": "<string>",
"scenarioTemplateId": "<string>",
"elements": [
{
"id": "<string>",
"element": {}
}
]
}
'import requests
url = "https://api.getmembrane.com/packages/{selector}"
payload = {
"uuid": "<string>",
"key": "<string>",
"name": "<string>",
"description": "<string>",
"meta": {},
"integrationId": "<string>",
"integrationUuid": "<string>",
"integrationKey": "<string>",
"parentId": "<string>",
"parentUuid": "<string>",
"parentKey": "<string>",
"connectionId": "<string>",
"instanceKey": "<string>",
"isUniversal": True,
"externalAppId": "<string>",
"externalAppUuid": "<string>",
"externalAppKey": "<string>",
"scenarioTemplateId": "<string>",
"elements": [
{
"id": "<string>",
"element": {}
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
uuid: '<string>',
key: '<string>',
name: '<string>',
description: '<string>',
meta: {},
integrationId: '<string>',
integrationUuid: '<string>',
integrationKey: '<string>',
parentId: '<string>',
parentUuid: '<string>',
parentKey: '<string>',
connectionId: '<string>',
instanceKey: '<string>',
isUniversal: true,
externalAppId: '<string>',
externalAppUuid: '<string>',
externalAppKey: '<string>',
scenarioTemplateId: '<string>',
elements: [{id: '<string>', element: {}}]
})
};
fetch('https://api.getmembrane.com/packages/{selector}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.getmembrane.com/packages/{selector}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'uuid' => '<string>',
'key' => '<string>',
'name' => '<string>',
'description' => '<string>',
'meta' => [
],
'integrationId' => '<string>',
'integrationUuid' => '<string>',
'integrationKey' => '<string>',
'parentId' => '<string>',
'parentUuid' => '<string>',
'parentKey' => '<string>',
'connectionId' => '<string>',
'instanceKey' => '<string>',
'isUniversal' => true,
'externalAppId' => '<string>',
'externalAppUuid' => '<string>',
'externalAppKey' => '<string>',
'scenarioTemplateId' => '<string>',
'elements' => [
[
'id' => '<string>',
'element' => [
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.getmembrane.com/packages/{selector}"
payload := strings.NewReader("{\n \"uuid\": \"<string>\",\n \"key\": \"<string>\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"meta\": {},\n \"integrationId\": \"<string>\",\n \"integrationUuid\": \"<string>\",\n \"integrationKey\": \"<string>\",\n \"parentId\": \"<string>\",\n \"parentUuid\": \"<string>\",\n \"parentKey\": \"<string>\",\n \"connectionId\": \"<string>\",\n \"instanceKey\": \"<string>\",\n \"isUniversal\": true,\n \"externalAppId\": \"<string>\",\n \"externalAppUuid\": \"<string>\",\n \"externalAppKey\": \"<string>\",\n \"scenarioTemplateId\": \"<string>\",\n \"elements\": [\n {\n \"id\": \"<string>\",\n \"element\": {}\n }\n ]\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.getmembrane.com/packages/{selector}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"uuid\": \"<string>\",\n \"key\": \"<string>\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"meta\": {},\n \"integrationId\": \"<string>\",\n \"integrationUuid\": \"<string>\",\n \"integrationKey\": \"<string>\",\n \"parentId\": \"<string>\",\n \"parentUuid\": \"<string>\",\n \"parentKey\": \"<string>\",\n \"connectionId\": \"<string>\",\n \"instanceKey\": \"<string>\",\n \"isUniversal\": true,\n \"externalAppId\": \"<string>\",\n \"externalAppUuid\": \"<string>\",\n \"externalAppKey\": \"<string>\",\n \"scenarioTemplateId\": \"<string>\",\n \"elements\": [\n {\n \"id\": \"<string>\",\n \"element\": {}\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getmembrane.com/packages/{selector}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"uuid\": \"<string>\",\n \"key\": \"<string>\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"meta\": {},\n \"integrationId\": \"<string>\",\n \"integrationUuid\": \"<string>\",\n \"integrationKey\": \"<string>\",\n \"parentId\": \"<string>\",\n \"parentUuid\": \"<string>\",\n \"parentKey\": \"<string>\",\n \"connectionId\": \"<string>\",\n \"instanceKey\": \"<string>\",\n \"isUniversal\": true,\n \"externalAppId\": \"<string>\",\n \"externalAppUuid\": \"<string>\",\n \"externalAppKey\": \"<string>\",\n \"scenarioTemplateId\": \"<string>\",\n \"elements\": [\n {\n \"id\": \"<string>\",\n \"element\": {}\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"name": "<string>",
"key": "<string>",
"uuid": "<string>",
"description": "<string>",
"meta": {},
"state": "BUILDING",
"errors": [
{
"message": "<string>",
"type": "bad_request",
"key": "<string>",
"data": {},
"stack": {},
"causedByError": "<unknown>",
"logs": [
{}
]
}
],
"revision": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"archivedAt": "<string>",
"isDeactivated": true,
"isReadOnly": true,
"integrationId": "<string>",
"integrationUuid": "<string>",
"integrationKey": "<string>",
"parentId": "<string>",
"parentUuid": "<string>",
"parentKey": "<string>",
"connectionId": "<string>",
"instanceKey": "<string>",
"isUniversal": true,
"externalAppId": "<string>",
"externalAppUuid": "<string>",
"externalAppKey": "<string>",
"scenarioTemplateId": "<string>",
"elements": [
{
"id": "<string>",
"type": "customer",
"element": {}
}
],
"isCustomized": true,
"isPublic": true,
"version": "<string>",
"changelog": "<string>",
"parentPackageVersion": "<string>",
"appliedToIntegrations": [
{
"element": {
"id": "<string>",
"name": "<string>",
"key": "<string>",
"uuid": "<string>",
"description": "<string>",
"meta": {},
"state": "BUILDING",
"errors": [
{
"message": "<string>",
"type": "bad_request",
"key": "<string>",
"data": {},
"stack": {},
"causedByError": "<unknown>",
"logs": [
{}
]
}
],
"revision": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"archivedAt": "<string>",
"isDeactivated": true,
"isReadOnly": true,
"integrationId": "<string>",
"integrationUuid": "<string>",
"integrationKey": "<string>",
"parentId": "<string>",
"parentUuid": "<string>",
"parentKey": "<string>",
"connectionId": "<string>",
"instanceKey": "<string>",
"isUniversal": true,
"externalAppId": "<string>",
"externalAppUuid": "<string>",
"externalAppKey": "<string>",
"scenarioTemplateId": "<string>",
"elements": [
{
"id": "<string>",
"type": "customer",
"element": {}
}
],
"isCustomized": true,
"isPublic": true
},
"integration": {
"id": "<string>",
"name": "<string>",
"logoUri": "<string>",
"uuid": "<string>",
"key": "<string>",
"description": "<string>",
"meta": {},
"state": "BUILDING",
"errors": [
{
"message": "<string>",
"type": "bad_request",
"key": "<string>",
"data": {},
"stack": {},
"causedByError": "<unknown>",
"logs": [
{}
]
}
],
"revision": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"archivedAt": "<string>",
"isDeactivated": true,
"isReadOnly": true,
"connectorId": "<string>",
"connectorVersion": "<string>",
"oAuthCallbackUri": "<string>",
"parameters": {},
"hasMissingParameters": true,
"hasDocumentation": true,
"hasOperations": true,
"operationsCount": 123,
"hasData": true,
"dataCollectionsCount": 123,
"hasEvents": true,
"eventsCount": 123,
"hasGlobalWebhooks": true,
"hasUdm": true,
"isTest": true,
"externalAppId": "<string>",
"authType": "integration-app-token",
"optionsConfig": {}
}
}
]
}Packages
Update package partially
PATCH
/
packages
/
{selector}
Update package partially
curl --request PATCH \
--url https://api.getmembrane.com/packages/{selector} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"uuid": "<string>",
"key": "<string>",
"name": "<string>",
"description": "<string>",
"meta": {},
"integrationId": "<string>",
"integrationUuid": "<string>",
"integrationKey": "<string>",
"parentId": "<string>",
"parentUuid": "<string>",
"parentKey": "<string>",
"connectionId": "<string>",
"instanceKey": "<string>",
"isUniversal": true,
"externalAppId": "<string>",
"externalAppUuid": "<string>",
"externalAppKey": "<string>",
"scenarioTemplateId": "<string>",
"elements": [
{
"id": "<string>",
"element": {}
}
]
}
'import requests
url = "https://api.getmembrane.com/packages/{selector}"
payload = {
"uuid": "<string>",
"key": "<string>",
"name": "<string>",
"description": "<string>",
"meta": {},
"integrationId": "<string>",
"integrationUuid": "<string>",
"integrationKey": "<string>",
"parentId": "<string>",
"parentUuid": "<string>",
"parentKey": "<string>",
"connectionId": "<string>",
"instanceKey": "<string>",
"isUniversal": True,
"externalAppId": "<string>",
"externalAppUuid": "<string>",
"externalAppKey": "<string>",
"scenarioTemplateId": "<string>",
"elements": [
{
"id": "<string>",
"element": {}
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
uuid: '<string>',
key: '<string>',
name: '<string>',
description: '<string>',
meta: {},
integrationId: '<string>',
integrationUuid: '<string>',
integrationKey: '<string>',
parentId: '<string>',
parentUuid: '<string>',
parentKey: '<string>',
connectionId: '<string>',
instanceKey: '<string>',
isUniversal: true,
externalAppId: '<string>',
externalAppUuid: '<string>',
externalAppKey: '<string>',
scenarioTemplateId: '<string>',
elements: [{id: '<string>', element: {}}]
})
};
fetch('https://api.getmembrane.com/packages/{selector}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.getmembrane.com/packages/{selector}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'uuid' => '<string>',
'key' => '<string>',
'name' => '<string>',
'description' => '<string>',
'meta' => [
],
'integrationId' => '<string>',
'integrationUuid' => '<string>',
'integrationKey' => '<string>',
'parentId' => '<string>',
'parentUuid' => '<string>',
'parentKey' => '<string>',
'connectionId' => '<string>',
'instanceKey' => '<string>',
'isUniversal' => true,
'externalAppId' => '<string>',
'externalAppUuid' => '<string>',
'externalAppKey' => '<string>',
'scenarioTemplateId' => '<string>',
'elements' => [
[
'id' => '<string>',
'element' => [
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.getmembrane.com/packages/{selector}"
payload := strings.NewReader("{\n \"uuid\": \"<string>\",\n \"key\": \"<string>\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"meta\": {},\n \"integrationId\": \"<string>\",\n \"integrationUuid\": \"<string>\",\n \"integrationKey\": \"<string>\",\n \"parentId\": \"<string>\",\n \"parentUuid\": \"<string>\",\n \"parentKey\": \"<string>\",\n \"connectionId\": \"<string>\",\n \"instanceKey\": \"<string>\",\n \"isUniversal\": true,\n \"externalAppId\": \"<string>\",\n \"externalAppUuid\": \"<string>\",\n \"externalAppKey\": \"<string>\",\n \"scenarioTemplateId\": \"<string>\",\n \"elements\": [\n {\n \"id\": \"<string>\",\n \"element\": {}\n }\n ]\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.getmembrane.com/packages/{selector}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"uuid\": \"<string>\",\n \"key\": \"<string>\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"meta\": {},\n \"integrationId\": \"<string>\",\n \"integrationUuid\": \"<string>\",\n \"integrationKey\": \"<string>\",\n \"parentId\": \"<string>\",\n \"parentUuid\": \"<string>\",\n \"parentKey\": \"<string>\",\n \"connectionId\": \"<string>\",\n \"instanceKey\": \"<string>\",\n \"isUniversal\": true,\n \"externalAppId\": \"<string>\",\n \"externalAppUuid\": \"<string>\",\n \"externalAppKey\": \"<string>\",\n \"scenarioTemplateId\": \"<string>\",\n \"elements\": [\n {\n \"id\": \"<string>\",\n \"element\": {}\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getmembrane.com/packages/{selector}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"uuid\": \"<string>\",\n \"key\": \"<string>\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"meta\": {},\n \"integrationId\": \"<string>\",\n \"integrationUuid\": \"<string>\",\n \"integrationKey\": \"<string>\",\n \"parentId\": \"<string>\",\n \"parentUuid\": \"<string>\",\n \"parentKey\": \"<string>\",\n \"connectionId\": \"<string>\",\n \"instanceKey\": \"<string>\",\n \"isUniversal\": true,\n \"externalAppId\": \"<string>\",\n \"externalAppUuid\": \"<string>\",\n \"externalAppKey\": \"<string>\",\n \"scenarioTemplateId\": \"<string>\",\n \"elements\": [\n {\n \"id\": \"<string>\",\n \"element\": {}\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"name": "<string>",
"key": "<string>",
"uuid": "<string>",
"description": "<string>",
"meta": {},
"state": "BUILDING",
"errors": [
{
"message": "<string>",
"type": "bad_request",
"key": "<string>",
"data": {},
"stack": {},
"causedByError": "<unknown>",
"logs": [
{}
]
}
],
"revision": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"archivedAt": "<string>",
"isDeactivated": true,
"isReadOnly": true,
"integrationId": "<string>",
"integrationUuid": "<string>",
"integrationKey": "<string>",
"parentId": "<string>",
"parentUuid": "<string>",
"parentKey": "<string>",
"connectionId": "<string>",
"instanceKey": "<string>",
"isUniversal": true,
"externalAppId": "<string>",
"externalAppUuid": "<string>",
"externalAppKey": "<string>",
"scenarioTemplateId": "<string>",
"elements": [
{
"id": "<string>",
"type": "customer",
"element": {}
}
],
"isCustomized": true,
"isPublic": true,
"version": "<string>",
"changelog": "<string>",
"parentPackageVersion": "<string>",
"appliedToIntegrations": [
{
"element": {
"id": "<string>",
"name": "<string>",
"key": "<string>",
"uuid": "<string>",
"description": "<string>",
"meta": {},
"state": "BUILDING",
"errors": [
{
"message": "<string>",
"type": "bad_request",
"key": "<string>",
"data": {},
"stack": {},
"causedByError": "<unknown>",
"logs": [
{}
]
}
],
"revision": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"archivedAt": "<string>",
"isDeactivated": true,
"isReadOnly": true,
"integrationId": "<string>",
"integrationUuid": "<string>",
"integrationKey": "<string>",
"parentId": "<string>",
"parentUuid": "<string>",
"parentKey": "<string>",
"connectionId": "<string>",
"instanceKey": "<string>",
"isUniversal": true,
"externalAppId": "<string>",
"externalAppUuid": "<string>",
"externalAppKey": "<string>",
"scenarioTemplateId": "<string>",
"elements": [
{
"id": "<string>",
"type": "customer",
"element": {}
}
],
"isCustomized": true,
"isPublic": true
},
"integration": {
"id": "<string>",
"name": "<string>",
"logoUri": "<string>",
"uuid": "<string>",
"key": "<string>",
"description": "<string>",
"meta": {},
"state": "BUILDING",
"errors": [
{
"message": "<string>",
"type": "bad_request",
"key": "<string>",
"data": {},
"stack": {},
"causedByError": "<unknown>",
"logs": [
{}
]
}
],
"revision": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"archivedAt": "<string>",
"isDeactivated": true,
"isReadOnly": true,
"connectorId": "<string>",
"connectorVersion": "<string>",
"oAuthCallbackUri": "<string>",
"parameters": {},
"hasMissingParameters": true,
"hasDocumentation": true,
"hasOperations": true,
"operationsCount": 123,
"hasData": true,
"dataCollectionsCount": 123,
"hasEvents": true,
"eventsCount": 123,
"hasGlobalWebhooks": true,
"hasUdm": true,
"isTest": true,
"externalAppId": "<string>",
"authType": "integration-app-token",
"optionsConfig": {}
}
}
]
}Authorizations
Query Parameters
Body
application/json
Response
200 - application/json
Was this page helpful?