{ "openapi": "3.0.0", "info": { "title": "Transporter API", "version": "1.0.0", "description": "This is the API layer for Adobe I/O Console." }, "tags": [ { "name": "projects", "description": "APIs for I/O Console Projects" }, { "name": "workspaces", "description": "APIs for I/O Console Workspaces" }, { "name": "AppRegistry", "description": "APIs for Exchange AppRegistry" }, { "name": "Organizations", "description": "APIs for Organizations" }, { "name": "AtlasPolicyEngine", "description": "APIs for Atlas Policy Engine" }, { "name": "Extensions", "description": "APIs for App Registry and Extension Registry" }, { "name": "DevTerms", "description": "APIs for Developer Terms" } ], "paths": { "/console/services/ims/terms": { "get": { "summary": "get developer terms", "tags": [ "DevTerms" ], "parameters": [ { "name": "Authorization", "description": "Authorization", "in": "header", "required": true, "schema": { "type": "string" } }, { "name": "x-api-key", "description": "API key", "in": "header", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Developer Terms Check Response", "type": "object", "properties": { "text": { "type": "string", "description": "Text of Developer Terms" }, "locale": { "type": "string", "description": "Language of the Developer Terms text" } } }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } }, "x-codeSamples": [ { "lang": "shell", "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/services/ims/terms \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" }, { "lang": "node", "source": "const request = require('request');\n\nconst options = {\n method: 'GET',\n url: 'https://developers-stage.adobe.io/console/services/ims/terms',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" }, { "lang": "php", "source": "setUrl('https://developers-stage.adobe.io/console/services/ims/terms');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/services/ims/terms\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/services/ims/terms\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/services/ims/terms\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/services/ims/terms\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/services/ims/terms\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, "/console/services/ims/organizations/{orgId}/terms": { "get": { "summary": "check developer terms acceptance", "tags": [ "DevTerms" ], "parameters": [ { "name": "Authorization", "description": "Authorization", "in": "header", "required": true, "schema": { "type": "string" } }, { "name": "x-api-key", "description": "API key", "in": "header", "required": true, "schema": { "type": "string" } }, { "name": "orgId", "description": "AMS org id or IMS org id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Developer Terms Check Response", "type": "object", "properties": { "accepted": { "type": "boolean", "description": "Flag for accepted state" } } }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } }, "x-codeSamples": [ { "lang": "shell", "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/services/ims/organizations/%7BorgId%7D/terms \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" }, { "lang": "node", "source": "const request = require('request');\n\nconst options = {\n method: 'GET',\n url: 'https://developers-stage.adobe.io/console/services/ims/organizations/%7BorgId%7D/terms',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" }, { "lang": "php", "source": "setUrl('https://developers-stage.adobe.io/console/services/ims/organizations/%7BorgId%7D/terms');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/services/ims/organizations/%7BorgId%7D/terms\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/services/ims/organizations/%7BorgId%7D/terms\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/services/ims/organizations/%7BorgId%7D/terms\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/services/ims/organizations/%7BorgId%7D/terms\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/services/ims/organizations/%7BorgId%7D/terms\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] }, "post": { "summary": "accept developer terms", "tags": [ "DevTerms" ], "parameters": [ { "name": "Authorization", "description": "Authorization", "in": "header", "required": true, "schema": { "type": "string" } }, { "name": "x-api-key", "description": "API key", "in": "header", "required": true, "schema": { "type": "string" } }, { "name": "orgId", "description": "AMS org id or IMS org id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Developer Terms Acceptance Response", "schema": null, "type": "object", "properties": { "accepted": { "type": "boolean", "description": "Flag for accepted state" }, "current": { "type": "boolean", "description": "Flag for current version of Developer Terms" } } }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } }, "x-codeSamples": [ { "lang": "shell", "source": "curl --request POST \\\n --url https://developers-stage.adobe.io/console/services/ims/organizations/%7BorgId%7D/terms \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" }, { "lang": "node", "source": "const request = require('request');\n\nconst options = {\n method: 'POST',\n url: 'https://developers-stage.adobe.io/console/services/ims/organizations/%7BorgId%7D/terms',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" }, { "lang": "php", "source": "setUrl('https://developers-stage.adobe.io/console/services/ims/organizations/%7BorgId%7D/terms');\n$request->setMethod(HTTP_METH_POST);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", "source": "HttpResponse response = Unirest.post(\"https://developers-stage.adobe.io/console/services/ims/organizations/%7BorgId%7D/terms\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/services/ims/organizations/%7BorgId%7D/terms\"\n\n\treq, _ := http.NewRequest(\"POST\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"POST\", \"/console/services/ims/organizations/%7BorgId%7D/terms\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/services/ims/organizations/%7BorgId%7D/terms\");\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/services/ims/organizations/%7BorgId%7D/terms\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, "/console/organizations/{orgId}/integrations/adobeid": { "post": { "summary": "adobeid create integration", "tags": [ "Organizations" ], "parameters": [ { "name": "Authorization", "description": "Authorization", "in": "header", "required": true, "schema": { "type": "string" } }, { "name": "x-api-key", "description": "API key", "in": "header", "required": true, "schema": { "type": "string" } }, { "name": "orgId", "description": "AMS org id", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "$ref": "#/components/requestBodies/Form" }, "responses": { "200": { "description": "OK", "type": "object", "properties": { "id": { "type": "string" }, "apikey": { "type": "string" }, "orgId": { "type": "string" } } }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } }, "x-codeSamples": [ { "lang": "shell", "source": "curl --request POST \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/adobeid \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" }, { "lang": "node", "source": "const request = require('request');\n\nconst options = {\n method: 'POST',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/adobeid',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" }, { "lang": "php", "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/adobeid');\n$request->setMethod(HTTP_METH_POST);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", "source": "HttpResponse response = Unirest.post(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/adobeid\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/adobeid\"\n\n\treq, _ := http.NewRequest(\"POST\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"POST\", \"/console/organizations/%7BorgId%7D/integrations/adobeid\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/adobeid\");\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/adobeid\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, "/console/organizations/{orgId}/integrations/adobeid/{intId}": { "put": { "summary": "adobeid update integration", "tags": [ "Organizations" ], "parameters": [ { "name": "Authorization", "description": "Authorization", "in": "header", "required": true, "schema": { "type": "string" } }, { "name": "x-api-key", "description": "API key", "in": "header", "required": true, "schema": { "type": "string" } }, { "name": "orgId", "description": "AMS org id", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "intId", "description": "integration id", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "$ref": "#/components/requestBodies/Form" }, "responses": { "200": { "description": "OK", "type": "object", "properties": { "id": { "type": "string" }, "apikey": { "type": "string" }, "orgId": { "type": "string" }, "name": { "type": "string" }, "description": { "type": "string" }, "status": { "type": "string" }, "type": { "type": "string" }, "createdDate": { "type": "string" }, "lastModifiedDate": { "type": "string" }, "namespaceEnabled": { "type": "boolean" }, "technicalAccountId": { "type": "string" }, "platform": { "type": "string" }, "urlScheme": { "type": "string" }, "redirectUriList": { "type": "array", "items": { "type": "string" } }, "defaultRedirectUri": { "type": "string" }, "userConsent": { "type": "boolean" }, "typekitPreviewTokenEnabled": { "type": "boolean" }, "readOnly": { "type": "boolean" } } }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } }, "x-codeSamples": [ { "lang": "shell", "source": "curl --request PUT \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/adobeid/%7BintId%7D \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" }, { "lang": "node", "source": "const request = require('request');\n\nconst options = {\n method: 'PUT',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/adobeid/%7BintId%7D',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" }, { "lang": "php", "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/adobeid/%7BintId%7D');\n$request->setMethod(HTTP_METH_PUT);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", "source": "HttpResponse response = Unirest.put(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/adobeid/%7BintId%7D\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/adobeid/%7BintId%7D\"\n\n\treq, _ := http.NewRequest(\"PUT\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"PUT\", \"/console/organizations/%7BorgId%7D/integrations/adobeid/%7BintId%7D\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/adobeid/%7BintId%7D\");\nvar request = new RestRequest(Method.PUT);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/adobeid/%7BintId%7D\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Put.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, "/console/organizations/{orgId}/integrations/adobeid/{intId}/services": { "put": { "summary": "subscribe adobeid integration to services", "tags": [ "Organizations" ], "parameters": [ { "name": "Authorization", "description": "Authorization", "in": "header", "required": true, "schema": { "type": "string" } }, { "name": "x-api-key", "description": "API key", "in": "header", "required": true, "schema": { "type": "string" } }, { "name": "orgId", "description": "AMS org id", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "intId", "description": "integration id", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "$ref": "#/components/requestBodies/Subscriptionlist" }, "responses": { "200": { "description": "OK", "type": "object", "properties": { "sdkList": { "type": "array", "items": { "type": "string" } }, "errorList": { "type": "array", "items": { "type": "string" } } } }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } }, "x-codeSamples": [ { "lang": "shell", "source": "curl --request PUT \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/adobeid/%7BintId%7D/services \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" }, { "lang": "node", "source": "const request = require('request');\n\nconst options = {\n method: 'PUT',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/adobeid/%7BintId%7D/services',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" }, { "lang": "php", "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/adobeid/%7BintId%7D/services');\n$request->setMethod(HTTP_METH_PUT);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", "source": "HttpResponse response = Unirest.put(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/adobeid/%7BintId%7D/services\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/adobeid/%7BintId%7D/services\"\n\n\treq, _ := http.NewRequest(\"PUT\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"PUT\", \"/console/organizations/%7BorgId%7D/integrations/adobeid/%7BintId%7D/services\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/adobeid/%7BintId%7D/services\");\nvar request = new RestRequest(Method.PUT);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/adobeid/%7BintId%7D/services\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Put.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, "/console/organizations/{orgId}/projects/{projectId}/workspaces/{workspaceId}/download": { "get": { "summary": "Download workspace json", "tags": [ "workspaces" ], "parameters": [ { "name": "orgId", "description": "Org ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "projectId", "description": "Project ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "workspaceId", "description": "Workspace ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "Authorization", "description": "Access token", "in": "header", "required": true, "schema": { "type": "string" } }, { "name": "x-api-key", "description": "API key", "in": "header", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Download workspace json file", "content": { "application/json": { "schema": { "type": "object", "properties": { "project": { "type": "object", "description": "Root element", "properties": { "id": { "type": "string", "description": "Project id" }, "name": { "type": "string", "description": "Project name" }, "title": { "type": "string", "description": "Project title" }, "description": { "type": "string", "description": "Project description" }, "org": { "type": "object", "description": "Organization info", "properties": { "id": { "type": "string", "description": "Organization id" }, "name": { "type": "string", "description": "Organization name" }, "ims_org_id": { "type": "string", "description": "Ims organization id" }, "workspace": { "type": "object", "description": "Workspace info", "properties": { "id": { "type": "string", "description": "Workspace id" }, "name": { "type": "string", "description": "Workspace name" }, "title": { "type": "string", "description": "Workspace title" }, "description": { "type": "string", "description": "Workspace description" }, "details": { "type": "object", "description": "Workspace details", "properties": { "credentials": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Credential id" }, "name": { "type": "string", "description": "Credential name" }, "integration_type": { "type": "string", "description": "Credential type, possible values (service, oauthweb, oauthandroid, oauthios)" }, "jwt": { "type": "object", "description": "jwt credential details", "properties": { "client_id": { "type": "string", "description": "Client id" }, "client_secret": { "type": "string", "description": "Client secret" }, "technical_account_email": { "type": "string", "description": "Technical account email" }, "technical_account_id": { "type": "string", "description": "Technical account id" }, "meta_scopes": { "type": "array", "items": { "type": "string", "description": "Credential meta scope" } } } }, "oauth2": { "type": "object", "description": "oauth2 credential details", "properties": { "client_id": { "type": "string", "description": "Client id" }, "client_secret": { "type": "string", "description": "Client secret" }, "redirect_uri": { "type": "array", "description": "Redirect urls list", "items": { "type": "string", "description": "Redirect url" } } } } } } }, "services": { "type": "array", "description": "Workspace services", "items": { "type": "object", "description": "Service details", "properties": { "code": { "type": "string", "description": "Service code" }, "name": { "type": "string", "description": "Service name" } } } }, "runtime": { "type": "object", "description": "Workspace runtime", "properties": { "namespaces": { "type": "array", "description": "Runtime namespaces", "items": { "type": "object", "description": "Runtime details", "properties": { "name": { "type": "string", "description": "Namespace name" }, "auth": { "type": "string", "description": "Namespace auth token" } } } } } } } } } } } } } } } } } } }, "500": { "description": "Export workspace error" } }, "x-codeSamples": [ { "lang": "shell", "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/download \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" }, { "lang": "node", "source": "const request = require('request');\n\nconst options = {\n method: 'GET',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/download',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" }, { "lang": "php", "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/download');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/download\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/download\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/download\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/download\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/download\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, "/console/organizations/{orgId}/apps/{appName}/validate": { "get": { "summary": "validate Application name", "tags": [ "AppRegistry" ], "parameters": [ { "name": "orgId", "description": "AMS Organization ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "appName", "description": "Application name to be validated", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "appType", "description": "Application type - use JGR", "in": "query", "required": true, "schema": { "type": "string" } }, { "name": "Authorization", "description": "Authorization", "in": "header", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "type": "boolean", "description": "boolean true/false" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } }, "x-codeSamples": [ { "lang": "shell", "source": "curl --request GET \\\n --url 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappName%7D/validate?appType=SOME_STRING_VALUE' \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json'" }, { "lang": "node", "source": "const request = require('request');\n\nconst options = {\n method: 'GET',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappName%7D/validate',\n qs: {appType: 'SOME_STRING_VALUE'},\n headers: {'content-type': 'application/json', Authorization: 'SOME_STRING_VALUE'}\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" }, { "lang": "php", "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappName%7D/validate');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setQueryData([\n 'appType' => 'SOME_STRING_VALUE'\n]);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappName%7D/validate?appType=SOME_STRING_VALUE\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappName%7D/validate?appType=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/apps/%7BappName%7D/validate?appType=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappName%7D/validate?appType=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappName%7D/validate?appType=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, "/console/organizations/{orgId}/apps/{appId}": { "get": { "summary": "get Application by Id", "tags": [ "AppRegistry" ], "parameters": [ { "name": "orgId", "description": "AMS Organization ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "appId", "description": "Application id", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "appType", "description": "Application type - use JGR for Jaeger applications", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "Authorization", "description": "Authorization", "in": "header", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "object", "properties": { "appId": { "type": "string", "description": "application id" }, "appType": { "type": "string", "description": "application type - use JGR for Jaeger apps" }, "created": { "type": "object", "description": "activity log for application created", "properties": { "by": { "type": "object", "properties": { "guid": { "type": "string", "description": "user guid" } } }, "on": { "type": "string", "description": "created timestamp" } } }, "description": { "type": "string", "description": "application description" }, "icon": { "type": "string", "description": "URL for the icon" }, "images": { "type": "object", "properties": { "featuredImage1": { "type": "string" }, "featuredImage2": { "type": "string" }, "featuredImage3": { "type": "string" }, "featuredImage4": { "type": "string" }, "featuredImage5": { "type": "string" } } }, "lastModified": { "type": "object", "description": "activity log for application last modified", "properties": { "by": { "type": "object", "properties": { "guid": { "type": "string", "description": "user guid" } } }, "on": { "type": "string", "description": "last modified timestamp" } } }, "name": { "type": "string", "description": "application name" }, "reviewed": { "type": "object", "description": "activity log for application reviewed", "properties": { "by": { "type": "object", "properties": { "guid": { "type": "string", "description": "user guid" } } }, "on": { "type": "string", "description": "reviewed timestamp" }, "notes": { "type": "string", "description": "reviewer notes" } } }, "status": { "type": "string", "description": "application status" }, "submitted": { "type": "object", "description": "activity log for application submitted", "properties": { "by": { "type": "object", "properties": { "guid": { "type": "string", "description": "user guid" } } }, "on": { "type": "string", "description": "submitted timestamp" }, "notes": { "type": "string", "description": "submitter notes" } } }, "support": { "type": "object", "description": "support information for the application", "properties": { "email": { "type": "string" }, "contact": { "type": "string" }, "website": { "type": "string" } } }, "title": { "type": "string" }, "workspaces": { "type": "array", "description": "list of workspaces in the application", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "workspace id" }, "name": { "type": "string", "description": "workspace name" }, "endPoint": { "type": "string" }, "deepLink": { "type": "string" }, "shellProps": { "type": "string" }, "releaseNotes": { "type": "string" }, "approveList": { "type": "object", "description": "list of approveList users & orgs", "properties": { "users": { "type": "array", "items": { "type": "object", "properties": { "guid": { "type": "string" } } } }, "orgs": { "type": "array", "items": { "type": "object", "properties": { "orgId": { "type": "string" }, "orgName": { "type": "string" } } } } } } } } } } } } } }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } }, "x-codeSamples": [ { "lang": "shell", "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json'" }, { "lang": "node", "source": "const request = require('request');\n\nconst options = {\n method: 'GET',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D',\n headers: {'content-type': 'application/json', Authorization: 'SOME_STRING_VALUE'}\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" }, { "lang": "php", "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/apps/%7BappId%7D\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] }, "patch": { "summary": "update Application", "tags": [ "AppRegistry" ], "parameters": [ { "name": "orgId", "description": "AMS Organization ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "appId", "description": "Application id", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "Authorization", "description": "Authorization", "in": "header", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "appId": { "type": "string", "description": "application id" }, "appType": { "type": "string", "description": "application type - use JGR for Jaeger apps" }, "created": { "type": "object", "description": "activity log for application created", "properties": { "type": "object", "properties": { "guid": { "type": "string", "description": "user guid" }, "on": { "type": "string", "description": "created timestamp" } } } }, "description": { "type": "string", "description": "application description" }, "icon": { "type": "string", "description": "url for the icon" }, "images": { "type": "object", "properties": { "featuredImage1": { "type": "string" }, "featuredImage2": { "type": "string" }, "featuredImage3": { "type": "string" }, "featuredImage4": { "type": "string" }, "featuredImage5": { "type": "string" } } }, "lastModified": { "type": "object", "description": "activity log for application last modified", "properties": { "by": { "type": "object", "properties": { "guid": { "type": "string", "description": "user guid" } } }, "on": { "type": "string", "description": "last modified timestamp" } } }, "name": { "type": "string", "description": "application name" }, "reviewed": { "type": "object", "description": "activity log for application reviewed", "properties": { "by": { "type": "object", "properties": { "guid": { "type": "string", "description": "user guid" } } }, "on": { "type": "string", "description": "reviewed timestamp" }, "notes": { "type": "string", "description": "reviewer notes" } } }, "status": { "type": "string", "description": "application status" }, "submitted": { "type": "object", "description": "activity log for application submitted", "properties": { "by": { "type": "object", "properties": { "guid": { "type": "string", "description": "user guid" } } }, "on": { "type": "string", "description": "submitted timestamp" }, "notes": { "type": "string", "description": "submitter notes" } } }, "support": { "type": "object", "description": "support information for the application", "properties": { "email": { "type": "string" }, "contact": { "type": "string" }, "website": { "type": "string" } } }, "title": { "type": "string" }, "workspaces": { "type": "array", "description": "list of workspaces in the application", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "workspace id" }, "name": { "type": "string", "description": "workspace name" }, "endPoint": { "type": "string" }, "deepLink": { "type": "string" }, "shellProps": { "type": "string" }, "releaseNotes": { "type": "string" }, "approveList": { "type": "object", "description": "list of approveList users & orgs", "properties": { "users": { "type": "array", "items": { "type": "object", "properties": { "guid": { "type": "string" } } } }, "orgs": { "type": "array", "items": { "type": "object", "properties": { "orgId": { "type": "string" }, "orgName": { "type": "string" } } } } } } } } } } } } }, "description": "Application" }, "responses": { "200": { "description": "Application Updated Successfully", "content": { "application/json": { "schema": { "type": "object", "properties": { "appId": { "type": "string", "description": "application id" }, "appType": { "type": "string", "description": "application type - use JGR for Jaeger apps" }, "created": { "type": "object", "description": "activity log for application created", "properties": { "by": { "type": "object", "properties": { "guid": { "type": "string", "description": "user guid" } } }, "on": { "type": "string", "description": "created timestamp" } } }, "description": { "type": "string", "description": "application description" }, "icon": { "type": "string", "description": "URL for the icon" }, "images": { "type": "object", "properties": { "featuredImage1": { "type": "string" }, "featuredImage2": { "type": "string" }, "featuredImage3": { "type": "string" }, "featuredImage4": { "type": "string" }, "featuredImage5": { "type": "string" } } }, "lastModified": { "type": "object", "description": "activity log for application last modified", "properties": { "by": { "type": "object", "properties": { "guid": { "type": "string", "description": "user guid" } } }, "on": { "type": "string", "description": "last modified timestamp" } } }, "name": { "type": "string", "description": "application name" }, "reviewed": { "type": "object", "description": "activity log for application reviewed", "properties": { "by": { "type": "object", "properties": { "guid": { "type": "string", "description": "user guid" } } }, "on": { "type": "string", "description": "reviewed timestamp" }, "notes": { "type": "string", "description": "reviewer notes" } } }, "status": { "type": "string", "description": "application status" }, "submitted": { "type": "object", "description": "activity log for application submitted", "properties": { "by": { "type": "object", "properties": { "guid": { "type": "string", "description": "user guid" } } }, "on": { "type": "string", "description": "submitted timestamp" }, "notes": { "type": "string", "description": "submitter notes" } } }, "support": { "type": "object", "description": "support information for the application", "properties": { "email": { "type": "string" }, "contact": { "type": "string" }, "website": { "type": "string" } } }, "title": { "type": "string" }, "workspaces": { "type": "array", "description": "list of workspaces in the application", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "workspace id" }, "name": { "type": "string", "description": "workspace name" }, "endPoint": { "type": "string" }, "deepLink": { "type": "string" }, "shellProps": { "type": "string" }, "releaseNotes": { "type": "string" }, "approveList": { "type": "object", "description": "list of approveList users & orgs", "properties": { "users": { "type": "array", "items": { "type": "object", "properties": { "guid": { "type": "string" } } } }, "orgs": { "type": "array", "items": { "type": "object", "properties": { "orgId": { "type": "string" }, "orgName": { "type": "string" } } } } } } } } } } } } } }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } }, "x-codeSamples": [ { "lang": "shell", "source": "curl --request PATCH \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json'" }, { "lang": "node", "source": "const request = require('request');\n\nconst options = {\n method: 'PATCH',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D',\n headers: {'content-type': 'application/json', Authorization: 'SOME_STRING_VALUE'}\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" }, { "lang": "php", "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D');\n$request->setMethod(HttpRequest::HTTP_METH_PATCH);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", "source": "HttpResponse response = Unirest.patch(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D\"\n\n\treq, _ := http.NewRequest(\"PATCH\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"PATCH\", \"/console/organizations/%7BorgId%7D/apps/%7BappId%7D\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D\");\nvar request = new RestRequest(Method.PATCH);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Patch.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] }, "delete": { "summary": "delete an Application", "tags": [ "AppRegistry" ], "parameters": [ { "name": "orgId", "description": "AMS Organization ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "appId", "description": "Application id", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "Authorization", "description": "Authorization", "in": "header", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Application Deleted Successfully" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } }, "x-codeSamples": [ { "lang": "shell", "source": "curl --request DELETE \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json'" }, { "lang": "node", "source": "const request = require('request');\n\nconst options = {\n method: 'DELETE',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D',\n headers: {'content-type': 'application/json', Authorization: 'SOME_STRING_VALUE'}\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" }, { "lang": "php", "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D');\n$request->setMethod(HTTP_METH_DELETE);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", "source": "HttpResponse response = Unirest.delete(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D\"\n\n\treq, _ := http.NewRequest(\"DELETE\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"DELETE\", \"/console/organizations/%7BorgId%7D/apps/%7BappId%7D\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D\");\nvar request = new RestRequest(Method.DELETE);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Delete.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, "/console/organizations/{orgId}/apps/searchName/{appName}": { "get": { "summary": "get Application by Name", "tags": [ "AppRegistry" ], "parameters": [ { "name": "orgId", "description": "AMS Organization ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "appName", "description": "Application name", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "Authorization", "description": "Authorization", "in": "header", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "object", "properties": { "appId": { "type": "string", "description": "application id" }, "appType": { "type": "string", "description": "application type - use JGR for Jaeger apps" }, "created": { "type": "object", "description": "activity log for application created", "properties": { "by": { "type": "object", "properties": { "guid": { "type": "string", "description": "user guid" } } }, "on": { "type": "string", "description": "created timestamp" } } }, "description": { "type": "string", "description": "application description" }, "icon": { "type": "string", "description": "URL for the icon" }, "images": { "type": "object", "properties": { "featuredImage1": { "type": "string" }, "featuredImage2": { "type": "string" }, "featuredImage3": { "type": "string" }, "featuredImage4": { "type": "string" }, "featuredImage5": { "type": "string" } } }, "lastModified": { "type": "object", "description": "activity log for application last modified", "properties": { "by": { "type": "object", "properties": { "guid": { "type": "string", "description": "user guid" } } }, "on": { "type": "string", "description": "last modified timestamp" } } }, "name": { "type": "string", "description": "application name" }, "reviewed": { "type": "object", "description": "activity log for application reviewed", "properties": { "by": { "type": "object", "properties": { "guid": { "type": "string", "description": "user guid" } } }, "on": { "type": "string", "description": "reviewed timestamp" }, "notes": { "type": "string", "description": "reviewer notes" } } }, "status": { "type": "string", "description": "application status" }, "submitted": { "type": "object", "description": "activity log for application submitted", "properties": { "by": { "type": "object", "properties": { "guid": { "type": "string", "description": "user guid" } } }, "on": { "type": "string", "description": "submitted timestamp" }, "notes": { "type": "string", "description": "submitter notes" } } }, "support": { "type": "object", "description": "support information for the application", "properties": { "email": { "type": "string" }, "contact": { "type": "string" }, "website": { "type": "string" } } }, "title": { "type": "string" }, "workspaces": { "type": "array", "description": "list of workspaces in the application", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "workspace id" }, "name": { "type": "string", "description": "workspace name" }, "endPoint": { "type": "string" }, "deepLink": { "type": "string" }, "shellProps": { "type": "string" }, "releaseNotes": { "type": "string" }, "approveList": { "type": "object", "description": "list of approveList users & orgs", "properties": { "users": { "type": "array", "items": { "type": "object", "properties": { "guid": { "type": "string" } } } }, "orgs": { "type": "array", "items": { "type": "object", "properties": { "orgId": { "type": "string" }, "orgName": { "type": "string" } } } } } } } } } } } } } }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } }, "x-codeSamples": [ { "lang": "shell", "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/searchName/%7BappName%7D \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json'" }, { "lang": "node", "source": "const request = require('request');\n\nconst options = {\n method: 'GET',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/searchName/%7BappName%7D',\n headers: {'content-type': 'application/json', Authorization: 'SOME_STRING_VALUE'}\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" }, { "lang": "php", "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/searchName/%7BappName%7D');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/searchName/%7BappName%7D\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/searchName/%7BappName%7D\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/apps/searchName/%7BappName%7D\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/searchName/%7BappName%7D\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/searchName/%7BappName%7D\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, "/console/organizations/{orgId}/apps/{appId}/submit": { "post": { "summary": "submit an Application", "tags": [ "AppRegistry" ], "parameters": [ { "name": "orgId", "description": "AMS Organization ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "appId", "description": "Application id", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "Authorization", "description": "Authorization", "in": "header", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "string" } } }, "description": "submitter notes" }, "responses": { "200": { "description": "Application Submitted Successfully", "content": { "application/json": { "schema": { "type": "object", "properties": { "appId": { "type": "string", "description": "application id" }, "appType": { "type": "string", "description": "application type - use JGR for Jaeger apps" }, "created": { "type": "object", "description": "activity log for application created", "properties": { "by": { "type": "object", "properties": { "guid": { "type": "string", "description": "user guid" } } }, "on": { "type": "string", "description": "created timestamp" } } }, "description": { "type": "string", "description": "application description" }, "icon": { "type": "string", "description": "URL for the icon" }, "images": { "type": "object", "properties": { "featuredImage1": { "type": "string" }, "featuredImage2": { "type": "string" }, "featuredImage3": { "type": "string" }, "featuredImage4": { "type": "string" }, "featuredImage5": { "type": "string" } } }, "lastModified": { "type": "object", "description": "activity log for application last modified", "properties": { "by": { "type": "object", "properties": { "guid": { "type": "string", "description": "user guid" } } }, "on": { "type": "string", "description": "last modified timestamp" } } }, "name": { "type": "string", "description": "application name" }, "reviewed": { "type": "object", "description": "activity log for application reviewed", "properties": { "by": { "type": "object", "properties": { "guid": { "type": "string", "description": "user guid" } } }, "on": { "type": "string", "description": "reviewed timestamp" }, "notes": { "type": "string", "description": "reviewer notes" } } }, "status": { "type": "string", "description": "application status" }, "submitted": { "type": "object", "description": "activity log for application submitted", "properties": { "by": { "type": "object", "properties": { "guid": { "type": "string", "description": "user guid" } } }, "on": { "type": "string", "description": "submitted timestamp" }, "notes": { "type": "string", "description": "submitter notes" } } }, "support": { "type": "object", "description": "support information for the application", "properties": { "email": { "type": "string" }, "contact": { "type": "string" }, "website": { "type": "string" } } }, "title": { "type": "string" }, "workspaces": { "type": "array", "description": "list of workspaces in the application", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "workspace id" }, "name": { "type": "string", "description": "workspace name" }, "endPoint": { "type": "string" }, "deepLink": { "type": "string" }, "shellProps": { "type": "string" }, "releaseNotes": { "type": "string" }, "approveList": { "type": "object", "description": "list of approveList users & orgs", "properties": { "users": { "type": "array", "items": { "type": "object", "properties": { "guid": { "type": "string" } } } }, "orgs": { "type": "array", "items": { "type": "object", "properties": { "orgId": { "type": "string" }, "orgName": { "type": "string" } } } } } } } } } } } } } }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } }, "x-codeSamples": [ { "lang": "shell", "source": "curl --request POST \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D/submit \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json'" }, { "lang": "node", "source": "const request = require('request');\n\nconst options = {\n method: 'POST',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D/submit',\n headers: {'content-type': 'application/json', Authorization: 'SOME_STRING_VALUE'}\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" }, { "lang": "php", "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D/submit');\n$request->setMethod(HTTP_METH_POST);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", "source": "HttpResponse response = Unirest.post(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D/submit\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D/submit\"\n\n\treq, _ := http.NewRequest(\"POST\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"POST\", \"/console/organizations/%7BorgId%7D/apps/%7BappId%7D/submit\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D/submit\");\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D/submit\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, "/console/organizations/{orgId}/apps": { "get": { "summary": "get all Applications for a user", "tags": [ "AppRegistry" ], "parameters": [ { "name": "orgId", "description": "AMS Organization ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "appType", "description": "Application type - use JGR", "in": "query", "required": true, "schema": { "type": "string" } }, { "name": "offset", "description": "offset", "in": "query", "required": true, "schema": { "type": "integer" } }, { "name": "pageSize", "description": "pageSize", "in": "query", "required": true, "schema": { "type": "integer" } }, { "name": "Authorization", "description": "Authorization", "in": "header", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "type": "array", "items": { "type": "object", "properties": { "appId": { "type": "string", "description": "application id" }, "appType": { "type": "string", "description": "application type - use JGR for Jaeger apps" }, "created": { "type": "object", "description": "activity log for application created", "properties": { "by": { "type": "object", "properties": { "guid": { "type": "string", "description": "user guid" } } }, "on": { "type": "string", "description": "created timestamp" } } }, "description": { "type": "string", "description": "application description" }, "icon": { "type": "string", "description": "URL for the icon" }, "images": { "type": "object", "properties": { "featuredImage1": { "type": "string" }, "featuredImage2": { "type": "string" }, "featuredImage3": { "type": "string" }, "featuredImage4": { "type": "string" }, "featuredImage5": { "type": "string" } } }, "lastModified": { "type": "object", "description": "activity log for application last modified", "properties": { "by": { "type": "object", "properties": { "guid": { "type": "string", "description": "user guid" } } }, "on": { "type": "string", "description": "last modified timestamp" } } }, "name": { "type": "string", "description": "application name" }, "reviewed": { "type": "object", "description": "activity log for application reviewed", "properties": { "by": { "type": "object", "properties": { "guid": { "type": "string", "description": "user guid" } } }, "on": { "type": "string", "description": "reviewed timestamp" }, "notes": { "type": "string", "description": "reviewer notes" } } }, "status": { "type": "string", "description": "application status" }, "submitted": { "type": "object", "description": "activity log for application submitted", "properties": { "by": { "type": "object", "properties": { "guid": { "type": "string", "description": "user guid" } } }, "on": { "type": "string", "description": "submitted timestamp" }, "notes": { "type": "string", "description": "submitter notes" } } }, "support": { "type": "object", "description": "support information for the application", "properties": { "email": { "type": "string" }, "contact": { "type": "string" }, "website": { "type": "string" } } }, "title": { "type": "string" }, "workspaces": { "type": "array", "description": "list of workspaces in the application", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "workspace id" }, "name": { "type": "string", "description": "workspace name" }, "endPoint": { "type": "string" }, "deepLink": { "type": "string" }, "shellProps": { "type": "string" }, "releaseNotes": { "type": "string" }, "approveList": { "type": "object", "description": "list of approveList users & orgs", "properties": { "users": { "type": "array", "items": { "type": "object", "properties": { "guid": { "type": "string" } } } }, "orgs": { "type": "array", "items": { "type": "object", "properties": { "orgId": { "type": "string" }, "orgName": { "type": "string" } } } } } } } } } } } }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } }, "x-codeSamples": [ { "lang": "shell", "source": "curl --request GET \\\n --url 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps?appType=SOME_STRING_VALUE&offset=SOME_INTEGER_VALUE&pageSize=SOME_INTEGER_VALUE' \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json'" }, { "lang": "node", "source": "const request = require('request');\n\nconst options = {\n method: 'GET',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps',\n qs: {\n appType: 'SOME_STRING_VALUE',\n offset: 'SOME_INTEGER_VALUE',\n pageSize: 'SOME_INTEGER_VALUE'\n },\n headers: {'content-type': 'application/json', Authorization: 'SOME_STRING_VALUE'}\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" }, { "lang": "php", "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setQueryData([\n 'appType' => 'SOME_STRING_VALUE',\n 'offset' => 'SOME_INTEGER_VALUE',\n 'pageSize' => 'SOME_INTEGER_VALUE'\n]);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps?appType=SOME_STRING_VALUE&offset=SOME_INTEGER_VALUE&pageSize=SOME_INTEGER_VALUE\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps?appType=SOME_STRING_VALUE&offset=SOME_INTEGER_VALUE&pageSize=SOME_INTEGER_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/apps?appType=SOME_STRING_VALUE&offset=SOME_INTEGER_VALUE&pageSize=SOME_INTEGER_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps?appType=SOME_STRING_VALUE&offset=SOME_INTEGER_VALUE&pageSize=SOME_INTEGER_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps?appType=SOME_STRING_VALUE&offset=SOME_INTEGER_VALUE&pageSize=SOME_INTEGER_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, "/console/organizations/{orgId}/apps/{appId}/upload": { "post": { "summary": "upload icon for the application", "tags": [ "AppRegistry" ], "parameters": [ { "name": "orgId", "description": "AMS Organization ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "appId", "description": "AppRegistry Application ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "appType", "description": "Application type - use JGR", "in": "query", "required": true, "schema": { "type": "string" } }, { "name": "assetType", "description": "Asset type - use ICON", "in": "query", "required": true, "schema": { "type": "string" } }, { "name": "Authorization", "description": "Authorization", "in": "header", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "multipart/form-data": { "schema": { "type": "object", "properties": { "file": { "description": "icon file", "type": "string", "format": "binary" } }, "required": [ "file" ] } } }, "required": true }, "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } }, "x-codeSamples": [ { "lang": "shell", "source": "curl --request POST \\\n --url 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D/upload?appType=SOME_STRING_VALUE&assetType=SOME_STRING_VALUE' \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'accept: multipart/form-data' \\\n --header 'content-type: application/json'" }, { "lang": "node", "source": "const request = require('request');\n\nconst options = {\n method: 'POST',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D/upload',\n qs: {appType: 'SOME_STRING_VALUE', assetType: 'SOME_STRING_VALUE'},\n headers: {\n accept: 'multipart/form-data',\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE'\n }\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" }, { "lang": "php", "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D/upload');\n$request->setMethod(HTTP_METH_POST);\n\n$request->setQueryData([\n 'appType' => 'SOME_STRING_VALUE',\n 'assetType' => 'SOME_STRING_VALUE'\n]);\n\n$request->setHeaders([\n 'accept' => 'multipart/form-data',\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", "source": "HttpResponse response = Unirest.post(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D/upload?appType=SOME_STRING_VALUE&assetType=SOME_STRING_VALUE\")\n .header(\"accept\", \"multipart/form-data\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D/upload?appType=SOME_STRING_VALUE&assetType=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"POST\", url, nil)\n\n\treq.Header.Add(\"accept\", \"multipart/form-data\")\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'accept': \"multipart/form-data\",\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"POST\", \"/console/organizations/%7BorgId%7D/apps/%7BappId%7D/upload?appType=SOME_STRING_VALUE&assetType=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D/upload?appType=SOME_STRING_VALUE&assetType=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"accept\", \"multipart/form-data\");\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/%7BappId%7D/upload?appType=SOME_STRING_VALUE&assetType=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"accept\"] = 'multipart/form-data'\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, "/console/organizations/{orgId}/apps/health": { "get": { "summary": "get AppRegistry Health", "tags": [ "AppRegistry" ], "parameters": [ { "name": "orgId", "description": "AMS Organization ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "Authorization", "description": "Authorization", "in": "header", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "object", "properties": { "status": { "type": "string" } } } } } }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } }, "x-codeSamples": [ { "lang": "shell", "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/health \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json'" }, { "lang": "node", "source": "const request = require('request');\n\nconst options = {\n method: 'GET',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/health',\n headers: {'content-type': 'application/json', Authorization: 'SOME_STRING_VALUE'}\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" }, { "lang": "php", "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/health');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/health\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/health\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/apps/health\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/health\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/apps/health\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, "/console/organizations/{orgId}/policy/{intId}": { "get": { "summary": "get Application Policy", "tags": [ "AtlasPolicyEngine" ], "parameters": [ { "name": "orgId", "description": "AMS Organization ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "intId", "description": "Integration ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "Authorization", "description": "Authorization", "in": "header", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "object", "properties": { "orgCode": { "type": "string", "description": "IMS org id" }, "appCode": { "type": "string", "description": "AMS application id" }, "appPolicyCode": { "type": "string" }, "apiKey": { "type": "string" }, "quotaPolicyCode": { "type": "string" }, "planCode": { "type": "string" }, "status": { "type": "string" }, "_links": { "type": "array", "items": { "type": "object", "properties": { "deprecation": { "type": "string" }, "href": { "type": "string" }, "hreflang": { "type": "string" }, "media": { "type": "string" }, "rel": { "type": "string" }, "templated": { "type": "boolean" }, "title": { "type": "string" }, "type": { "type": "string" } } } } } } } } }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } }, "x-codeSamples": [ { "lang": "shell", "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/policy/%7BintId%7D \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json'" }, { "lang": "node", "source": "const request = require('request');\n\nconst options = {\n method: 'GET',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/policy/%7BintId%7D',\n headers: {'content-type': 'application/json', Authorization: 'SOME_STRING_VALUE'}\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" }, { "lang": "php", "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/policy/%7BintId%7D');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/policy/%7BintId%7D\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/policy/%7BintId%7D\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/policy/%7BintId%7D\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/policy/%7BintId%7D\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/policy/%7BintId%7D\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, "/console/organizations/{orgId}/policy/{intId}/usage": { "get": { "summary": "get Quota Usage", "tags": [ "AtlasPolicyEngine" ], "parameters": [ { "name": "orgId", "description": "AMS Organization ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "intId", "description": "Integration ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "Authorization", "description": "Authorization", "in": "header", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "object", "properties": { "policyCode": { "type": "string" }, "planCode": { "type": "string" }, "orgCode": { "type": "string" }, "refreshCycle": { "type": "string" }, "policyType": { "type": "string" }, "status": { "type": "string" }, "availableQuantity": { "type": "integer" }, "consumedQuantity": { "type": "integer" }, "selectors": { "type": "array", "items": { "type": "object", "properties": { "selector": { "type": "string" }, "consumedQuantity": { "type": "integer" } } } } } } } } }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } }, "x-codeSamples": [ { "lang": "shell", "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/policy/%7BintId%7D/usage \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json'" }, { "lang": "node", "source": "const request = require('request');\n\nconst options = {\n method: 'GET',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/policy/%7BintId%7D/usage',\n headers: {'content-type': 'application/json', Authorization: 'SOME_STRING_VALUE'}\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" }, { "lang": "php", "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/policy/%7BintId%7D/usage');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/policy/%7BintId%7D/usage\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/policy/%7BintId%7D/usage\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/policy/%7BintId%7D/usage\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/policy/%7BintId%7D/usage\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/policy/%7BintId%7D/usage\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, "/console/organizations/{orgId}/integrations/entp": { "post": { "summary": "create entp integration", "tags": [ "Organizations" ], "parameters": [ { "name": "Authorization", "description": "Authorization", "in": "header", "required": true, "schema": { "type": "string" } }, { "name": "x-api-key", "description": "API key", "in": "header", "required": true, "schema": { "type": "string" } }, { "name": "orgId", "description": "AMS org id", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "name", "description": "integration name", "in": "query", "required": true, "schema": { "type": "string" } }, { "name": "description", "in": "query", "required": true, "schema": { "type": "string" } } ], "requestBody": { "required": true, "content": { "multipart/form-data": { "schema": { "type": "object", "required": [ "certificate" ], "properties": { "certificate": { "type": "string", "format": "binary" } } } } }, "description": "form data" }, "responses": { "200": { "description": "OK", "type": "object", "properties": { "id": { "type": "string" }, "apiKey": { "type": "string" }, "orgId": { "type": "string" }, "technicalAccountId": { "type": "string" } } }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } }, "x-codeSamples": [ { "lang": "shell", "source": "curl --request POST \\\n --url 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp?name=SOME_STRING_VALUE&description=SOME_STRING_VALUE' \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" }, { "lang": "node", "source": "const request = require('request');\n\nconst options = {\n method: 'POST',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp',\n qs: {name: 'SOME_STRING_VALUE', description: 'SOME_STRING_VALUE'},\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" }, { "lang": "php", "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp');\n$request->setMethod(HTTP_METH_POST);\n\n$request->setQueryData([\n 'name' => 'SOME_STRING_VALUE',\n 'description' => 'SOME_STRING_VALUE'\n]);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", "source": "HttpResponse response = Unirest.post(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp?name=SOME_STRING_VALUE&description=SOME_STRING_VALUE\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp?name=SOME_STRING_VALUE&description=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"POST\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"POST\", \"/console/organizations/%7BorgId%7D/integrations/entp?name=SOME_STRING_VALUE&description=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp?name=SOME_STRING_VALUE&description=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp?name=SOME_STRING_VALUE&description=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, "/console/organizations/{orgId}/integrations/{intId}/bindings": { "post": { "summary": "upload and bind certificate", "tags": [ "Organizations" ], "parameters": [ { "name": "Authorization", "description": "Authorization", "in": "header", "required": true, "schema": { "type": "string" } }, { "name": "x-api-key", "description": "API key", "in": "header", "required": true, "schema": { "type": "string" } }, { "name": "orgId", "description": "AMS org id", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "intId", "description": "integration id", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "file" } } }, "description": "certificate" }, "responses": { "200": { "description": "OK", "type": "array", "items": { "type": "object", "properties": { "bindingId": { "type": "string" }, "orgId": { "type": "string" }, "technicalAccountId": { "type": "string" }, "certificateFingerprint": { "type": "string" }, "notAfter": { "type": "integer" } } } }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } }, "x-codeSamples": [ { "lang": "shell", "source": "curl --request POST \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/bindings \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" }, { "lang": "node", "source": "const request = require('request');\n\nconst options = {\n method: 'POST',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/bindings',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" }, { "lang": "php", "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/bindings');\n$request->setMethod(HTTP_METH_POST);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", "source": "HttpResponse response = Unirest.post(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/bindings\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/bindings\"\n\n\treq, _ := http.NewRequest(\"POST\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"POST\", \"/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/bindings\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/bindings\");\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/bindings\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] }, "get": { "summary": "list integration bindings", "tags": [ "Organizations" ], "parameters": [ { "name": "Authorization", "description": "Authorization", "in": "header", "required": true, "schema": { "type": "string" } }, { "name": "x-api-key", "description": "API key", "in": "header", "required": true, "schema": { "type": "string" } }, { "name": "orgId", "description": "AMS org id", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "intId", "description": "integration id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "type": "array", "items": { "type": "object", "properties": { "bindingId": { "type": "string" }, "orgId": { "type": "string" }, "technicalAccountId": { "type": "string" }, "certificateFingerprint": { "type": "string" }, "notAfter": { "type": "integer" } } } }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } }, "x-codeSamples": [ { "lang": "shell", "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/bindings \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" }, { "lang": "node", "source": "const request = require('request');\n\nconst options = {\n method: 'GET',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/bindings',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" }, { "lang": "php", "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/bindings');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/bindings\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/bindings\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/bindings\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/bindings\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/bindings\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, "/console/organizations/{orgId}/integrations/{intId}/bindings/{bindingId}": { "delete": { "summary": "delete binding", "tags": [ "Organizations" ], "parameters": [ { "name": "Authorization", "description": "Authorization", "in": "header", "required": true, "schema": { "type": "string" } }, { "name": "x-api-key", "description": "API key", "in": "header", "required": true, "schema": { "type": "string" } }, { "name": "orgId", "description": "AMS org id", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "intId", "description": "integration id", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "bindingId", "description": "IMS binding id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } }, "x-codeSamples": [ { "lang": "shell", "source": "curl --request DELETE \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/bindings/%7BbindingId%7D \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" }, { "lang": "node", "source": "const request = require('request');\n\nconst options = {\n method: 'DELETE',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/bindings/%7BbindingId%7D',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" }, { "lang": "php", "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/bindings/%7BbindingId%7D');\n$request->setMethod(HTTP_METH_DELETE);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", "source": "HttpResponse response = Unirest.delete(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/bindings/%7BbindingId%7D\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/bindings/%7BbindingId%7D\"\n\n\treq, _ := http.NewRequest(\"DELETE\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"DELETE\", \"/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/bindings/%7BbindingId%7D\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/bindings/%7BbindingId%7D\");\nvar request = new RestRequest(Method.DELETE);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/bindings/%7BbindingId%7D\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Delete.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, "/console/organizations/{orgId}/integrations/entp/{intId}/services": { "put": { "summary": "subscribe entp integration to services", "tags": [ "Organizations" ], "parameters": [ { "name": "Authorization", "description": "Authorization", "in": "header", "required": true, "schema": { "type": "string" } }, { "name": "x-api-key", "description": "API key", "in": "header", "required": true, "schema": { "type": "string" } }, { "name": "orgId", "description": "AMS org id", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "intId", "description": "integration id", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "$ref": "#/components/requestBodies/Subscriptionlist" }, "responses": { "200": { "description": "OK", "type": "object", "properties": { "sdkList": { "type": "array", "items": { "type": "string" } }, "errorList": { "type": "array", "items": { "type": "string" } } } }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } }, "x-codeSamples": [ { "lang": "shell", "source": "curl --request PUT \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/%7BintId%7D/services \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" }, { "lang": "node", "source": "const request = require('request');\n\nconst options = {\n method: 'PUT',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/%7BintId%7D/services',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" }, { "lang": "php", "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/%7BintId%7D/services');\n$request->setMethod(HTTP_METH_PUT);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", "source": "HttpResponse response = Unirest.put(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/%7BintId%7D/services\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/%7BintId%7D/services\"\n\n\treq, _ := http.NewRequest(\"PUT\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"PUT\", \"/console/organizations/%7BorgId%7D/integrations/entp/%7BintId%7D/services\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/%7BintId%7D/services\");\nvar request = new RestRequest(Method.PUT);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/entp/%7BintId%7D/services\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Put.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, "/console/organizations/{orgId}/integrations/{intId}": { "get": { "summary": "get integration details", "tags": [ "Organizations" ], "parameters": [ { "name": "Authorization", "description": "Authorization", "in": "header", "required": true, "schema": { "type": "string" } }, { "name": "x-api-key", "description": "API key", "in": "header", "required": true, "schema": { "type": "string" } }, { "name": "orgId", "description": "AMS org id", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "intId", "description": "integration id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "type": "object", "properties": { "apikey": { "type": "string" }, "description": { "type": "string" }, "eventProviders": { "type": "array", "items": { "type": "object", "properties": { "code": { "type": "string" }, "id": { "type": "integer" } } } }, "id": { "type": "string" }, "name": { "type": "string" }, "orgCode": { "type": "string" }, "orgId": { "type": "string" }, "orgName": { "type": "string" }, "platform": { "type": "string" }, "production": { "type": "boolean" }, "requestState": { "type": "string", "description": "enum [WAITING, APPROVED, REJECTED, RESET]" }, "sdkList": { "type": "array", "items": { "type": "string", "description": "sdk code" } }, "status": { "type": "string" }, "type": { "type": "string" } } }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } }, "x-codeSamples": [ { "lang": "shell", "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" }, { "lang": "node", "source": "const request = require('request');\n\nconst options = {\n method: 'GET',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" }, { "lang": "php", "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/integrations/%7BintId%7D\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] }, "delete": { "summary": "delete integration", "tags": [ "Organizations" ], "parameters": [ { "name": "Authorization", "description": "Authorization", "in": "header", "required": true, "schema": { "type": "string" } }, { "name": "x-api-key", "description": "API key", "in": "header", "required": true, "schema": { "type": "string" } }, { "name": "orgId", "description": "AMS org id", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "intId", "description": "integration id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "204": { "description": "No Content" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } }, "x-codeSamples": [ { "lang": "shell", "source": "curl --request DELETE \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" }, { "lang": "node", "source": "const request = require('request');\n\nconst options = {\n method: 'DELETE',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" }, { "lang": "php", "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D');\n$request->setMethod(HTTP_METH_DELETE);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", "source": "HttpResponse response = Unirest.delete(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D\"\n\n\treq, _ := http.NewRequest(\"DELETE\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"DELETE\", \"/console/organizations/%7BorgId%7D/integrations/%7BintId%7D\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D\");\nvar request = new RestRequest(Method.DELETE);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Delete.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, "/console/organizations/{orgId}/integrations/{intId}/secrets": { "get": { "summary": "get integration secrets", "tags": [ "Organizations" ], "parameters": [ { "name": "Authorization", "description": "Authorization", "in": "header", "required": true, "schema": { "type": "string" } }, { "name": "x-api-key", "description": "API key", "in": "header", "required": true, "schema": { "type": "string" } }, { "name": "orgId", "description": "AMS org id", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "intId", "description": "integration id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "type": "object", "properties": { "client_id": { "type": "string" }, "client_secrets": { "type": "array", "items": { "type": "object", "properties": { "client_secret": { "type": "string" }, "expires_at": { "type": "string" }, "expires_at_str": { "type": "string" } } } } } }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } }, "x-codeSamples": [ { "lang": "shell", "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/secrets \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" }, { "lang": "node", "source": "const request = require('request');\n\nconst options = {\n method: 'GET',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/secrets',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" }, { "lang": "php", "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/secrets');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/secrets\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/secrets\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/secrets\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/secrets\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations/%7BintId%7D/secrets\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, "/console/organizations": { "post": { "summary": "create an IMS Org", "tags": [ "Organizations" ], "parameters": [ { "name": "Authorization", "description": "Authorization", "in": "header", "required": true, "schema": { "type": "string" } } ], "responses": { "201": { "description": "IMS Org Created Successfully", "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "string" }, "code": { "type": "string" }, "name": { "type": "string" }, "description": { "type": "string" }, "type": { "type": "string", "description": "ConsumerType enum [\"adobeid\",\"entp\",\"internal\",\"direct\"]" }, "idAlias": { "type": "string" }, "roles": { "type": "array", "items": { "type": "object", "properties": { "principal": { "type": "string" }, "organization": { "type": "string" }, "nameRole": { "type": "string" }, "target": { "type": "string" }, "targetType": { "type": "string" }, "targetData": { "type": "linkedHashMap" } } } }, "role": { "type": "string" } } } } } }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } }, "x-codeSamples": [ { "lang": "shell", "source": "curl --request POST \\\n --url https://developers-stage.adobe.io/console/organizations \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json'" }, { "lang": "node", "source": "const request = require('request');\n\nconst options = {\n method: 'POST',\n url: 'https://developers-stage.adobe.io/console/organizations',\n headers: {'content-type': 'application/json', Authorization: 'SOME_STRING_VALUE'}\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" }, { "lang": "php", "source": "setUrl('https://developers-stage.adobe.io/console/organizations');\n$request->setMethod(HTTP_METH_POST);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", "source": "HttpResponse response = Unirest.post(\"https://developers-stage.adobe.io/console/organizations\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations\"\n\n\treq, _ := http.NewRequest(\"POST\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"POST\", \"/console/organizations\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations\");\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] }, "get": { "summary": "list organizations", "tags": [ "Organizations" ], "parameters": [ { "name": "Authorization", "description": "Authorization", "in": "header", "required": true, "schema": { "type": "string" } }, { "name": "x-api-key", "description": "API key", "in": "header", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "type": "object", "properties": { "content": { "type": "array", "properties": { "code": { "type": "string", "description": "AMS org code (IMS org id - if applicable)" }, "description": { "type": "string" }, "id": { "type": "string", "description": "AMS org id" }, "name": { "type": "string" }, "type": { "type": "string", "description": "org type" } } } } }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } }, "x-codeSamples": [ { "lang": "shell", "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/organizations \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" }, { "lang": "node", "source": "const request = require('request');\n\nconst options = {\n method: 'GET',\n url: 'https://developers-stage.adobe.io/console/organizations',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" }, { "lang": "php", "source": "setUrl('https://developers-stage.adobe.io/console/organizations');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, "/console/organizations/{orgId}/integrations": { "get": { "summary": "list integrations for an organization", "tags": [ "Organizations" ], "parameters": [ { "name": "Authorization", "description": "Authorization", "in": "header", "required": true, "schema": { "type": "string" } }, { "name": "x-api-key", "description": "API key", "in": "header", "required": true, "schema": { "type": "string" } }, { "name": "orgId", "description": "AMS org id", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "page", "description": "page index", "in": "query", "required": false, "schema": { "type": "integer" } }, { "name": "size", "description": "page size", "in": "query", "required": false, "schema": { "type": "integer" } } ], "responses": { "200": { "description": "OK", "type": "array", "items": { "type": "object", "properties": { "apikey": { "type": "string" }, "createdDate": { "type": "string" }, "description": { "type": "string" }, "id": { "type": "string", "description": "integration id" }, "lastModified": { "type": "string" }, "name": { "type": "string" }, "orgId": { "type": "string", "description": "AMS org id" }, "production": { "type": "boolean" }, "sdkList": { "type": "array", "items": { "type": "string", "description": "sdk code" } }, "status": { "type": "string", "description": "enum [ENABLED, DISABLED]" }, "type": { "type": "string", "description": "enum [adobeid, entp, internal]" } } }, "page": { "type": "integer" }, "pages": { "type": "integer" }, "size": { "type": "integer" }, "total": { "type": "integer" } }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } }, "x-codeSamples": [ { "lang": "shell", "source": "curl --request GET \\\n --url 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations?page=SOME_INTEGER_VALUE&size=SOME_INTEGER_VALUE' \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" }, { "lang": "node", "source": "const request = require('request');\n\nconst options = {\n method: 'GET',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations',\n qs: {page: 'SOME_INTEGER_VALUE', size: 'SOME_INTEGER_VALUE'},\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" }, { "lang": "php", "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setQueryData([\n 'page' => 'SOME_INTEGER_VALUE',\n 'size' => 'SOME_INTEGER_VALUE'\n]);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations?page=SOME_INTEGER_VALUE&size=SOME_INTEGER_VALUE\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations?page=SOME_INTEGER_VALUE&size=SOME_INTEGER_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/integrations?page=SOME_INTEGER_VALUE&size=SOME_INTEGER_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations?page=SOME_INTEGER_VALUE&size=SOME_INTEGER_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/integrations?page=SOME_INTEGER_VALUE&size=SOME_INTEGER_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, "/console/organizations/{orgId}/services": { "get": { "summary": "list services for an organization", "tags": [ "Organizations" ], "parameters": [ { "name": "Authorization", "description": "Authorization", "in": "header", "required": true, "schema": { "type": "string" } }, { "name": "x-api-key", "description": "API key", "in": "header", "required": true, "schema": { "type": "string" } }, { "name": "orgId", "description": "AMS org id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string" }, "code": { "type": "string" }, "enabled": { "type": "boolean" }, "type": { "type": "string" }, "platformList": { "type": "array", "items": { "type": "string" } }, "docsUrl": { "type": "string" }, "learnMoreUrl": { "type": "string" }, "description": { "type": "string" }, "properties": { "type": "object", "properties": { "licenseConfigs": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "productId": { "type": "string" }, "description": { "type": "string" } } } } } }, "requiresApproval": { "type": "boolean" } } } }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } }, "x-codeSamples": [ { "lang": "shell", "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/services \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" }, { "lang": "node", "source": "const request = require('request');\n\nconst options = {\n method: 'GET',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/services',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" }, { "lang": "php", "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/services');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/services\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/services\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/services\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/services\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/services\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, "/console/organizations/{orgId}/projects": { "get": { "summary": "List Projects", "tags": [ "projects" ], "parameters": [ { "name": "orgId", "description": "Organization ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "Authorization", "description": "Access token", "in": "header", "required": true, "schema": { "type": "string" } }, { "name": "x-api-key", "description": "API key", "in": "header", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Found projects", "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Project id" }, "name": { "type": "string", "description": "Project name" }, "description": { "type": "string", "description": "Project description" }, "type": { "type": "string", "description": "Project type" }, "enabled": { "type": "boolean", "description": "Is project enabled" }, "deleted": { "type": "boolean", "description": "Is project deleted" }, "title": { "type": "string", "description": "Project title" }, "org_id": { "type": "string", "description": "Org id" }, "date_created": { "type": "string", "format": "date", "description": "Project create date" }, "date_last_modified": { "type": "string", "format": "date", "description": "Project last modify date" }, "who_created": { "type": "string", "description": "Created by" }, "who_last_modified": { "type": "string", "description": "Last modified by" } } } } } } }, "500": { "description": "Error getting projects" } }, "x-codeSamples": [ { "lang": "shell", "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" }, { "lang": "node", "source": "const request = require('request');\n\nconst options = {\n method: 'GET',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" }, { "lang": "php", "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/projects\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] }, "post": { "summary": "Create project", "tags": [ "projects" ], "parameters": [ { "name": "orgId", "description": "Organization ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "Authorization", "description": "Access token", "in": "header", "required": true, "schema": { "type": "string" } }, { "name": "x-api-key", "description": "API key", "in": "header", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "required": [ "name", "title", "type" ], "properties": { "name": { "type": "string" }, "title": { "type": "string" }, "who_created": { "type": "string" }, "description": { "type": "string" }, "type": { "type": "string" } } } } }, "description": "New project info", "required": true }, "responses": { "201": { "description": "Create project success", "content": { "application/json": { "schema": { "type": "object", "properties": { "projectId": { "type": "string", "description": "Project id" }, "projectType": { "type": "string", "description": "Project type" }, "workspaceId": { "type": "string", "description": "Workspace id" } } } } } }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } }, "x-codeSamples": [ { "lang": "shell", "source": "curl --request POST \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE' \\\n --data '{\"name\":\"string\",\"title\":\"string\",\"who_created\":\"string\",\"description\":\"string\",\"type\":\"string\"}'" }, { "lang": "node", "source": "const request = require('request');\n\nconst options = {\n method: 'POST',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n },\n body: {\n name: 'string',\n title: 'string',\n who_created: 'string',\n description: 'string',\n type: 'string'\n },\n json: true\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" }, { "lang": "php", "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects');\n$request->setMethod(HTTP_METH_POST);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\n$request->setBody('{\"name\":\"string\",\"title\":\"string\",\"who_created\":\"string\",\"description\":\"string\",\"type\":\"string\"}');\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", "source": "HttpResponse response = Unirest.post(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .body(\"{\\\"name\\\":\\\"string\\\",\\\"title\\\":\\\"string\\\",\\\"who_created\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"type\\\":\\\"string\\\"}\")\n .asString();" }, { "lang": "go", "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"strings\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects\"\n\n\tpayload := strings.NewReader(\"{\\\"name\\\":\\\"string\\\",\\\"title\\\":\\\"string\\\",\\\"who_created\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"type\\\":\\\"string\\\"}\")\n\n\treq, _ := http.NewRequest(\"POST\", url, payload)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\npayload = \"{\\\"name\\\":\\\"string\\\",\\\"title\\\":\\\"string\\\",\\\"who_created\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"type\\\":\\\"string\\\"}\"\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"POST\", \"/console/organizations/%7BorgId%7D/projects\", payload, headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects\");\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nrequest.AddParameter(\"application/json\", \"{\\\"name\\\":\\\"string\\\",\\\"title\\\":\\\"string\\\",\\\"who_created\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"type\\\":\\\"string\\\"}\", ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\nrequest.body = \"{\\\"name\\\":\\\"string\\\",\\\"title\\\":\\\"string\\\",\\\"who_created\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"type\\\":\\\"string\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, "/console/organizations/{orgId}/projects/{projectId}/workspaces": { "post": { "summary": "Create workspace", "tags": [ "workspaces" ], "parameters": [ { "name": "orgId", "description": "Organization ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "projectId", "description": "Project ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "Authorization", "description": "Access token", "in": "header", "required": true, "schema": { "type": "string" } }, { "name": "x-api-key", "description": "API key", "in": "header", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "required": [ "name" ], "properties": { "name": { "type": "string" }, "title": { "type": "string" }, "description": { "type": "string" } } } } }, "description": "New workspace info", "required": true }, "responses": { "201": { "description": "Create workspace success", "content": { "application/json": { "schema": { "type": "object", "properties": { "projectId": { "type": "string", "description": "Project id" }, "workspaceId": { "type": "string", "description": "Workspace id" } } } } } }, "500": { "description": "Error creating workspace" } }, "x-codeSamples": [ { "lang": "shell", "source": "curl --request POST \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE' \\\n --data '{\"name\":\"string\",\"title\":\"string\",\"description\":\"string\"}'" }, { "lang": "node", "source": "const request = require('request');\n\nconst options = {\n method: 'POST',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n },\n body: {name: 'string', title: 'string', description: 'string'},\n json: true\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" }, { "lang": "php", "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces');\n$request->setMethod(HTTP_METH_POST);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\n$request->setBody('{\"name\":\"string\",\"title\":\"string\",\"description\":\"string\"}');\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", "source": "HttpResponse response = Unirest.post(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .body(\"{\\\"name\\\":\\\"string\\\",\\\"title\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\"}\")\n .asString();" }, { "lang": "go", "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"strings\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces\"\n\n\tpayload := strings.NewReader(\"{\\\"name\\\":\\\"string\\\",\\\"title\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\"}\")\n\n\treq, _ := http.NewRequest(\"POST\", url, payload)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\npayload = \"{\\\"name\\\":\\\"string\\\",\\\"title\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\"}\"\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"POST\", \"/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces\", payload, headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces\");\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nrequest.AddParameter(\"application/json\", \"{\\\"name\\\":\\\"string\\\",\\\"title\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\"}\", ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\nrequest.body = \"{\\\"name\\\":\\\"string\\\",\\\"title\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body" } ] }, "get": { "summary": "List Workspaces", "tags": [ "projects" ], "parameters": [ { "name": "orgId", "description": "Organization ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "projectId", "description": "Project ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "Authorization", "description": "Access token", "in": "header", "required": true, "schema": { "type": "string" } }, { "name": "x-api-key", "description": "API key", "in": "header", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Workspaces for project", "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Workspace id" }, "name": { "type": "string", "description": "Workspace name" }, "title": { "type": "string", "description": "Workspace title" }, "description": { "type": "string", "description": "Workspace description" }, "quota_usage": { "type": "string", "description": "Quota usage for workspace" }, "enabled": { "type": "boolean", "description": "Is project enabled" }, "runtime_enabled": { "type": "boolean", "description": "Is runtime enabled" }, "date_created": { "type": "string", "format": "date", "description": "Workspace create date" }, "date_last_modified": { "type": "string", "format": "date", "description": "Workspace last modify date" }, "who_created": { "type": "string", "description": "Created by" }, "who_last_modified": { "type": "string", "description": "Last modified by" } } } } } } }, "500": { "description": "Error returning workspaces for project" } }, "x-codeSamples": [ { "lang": "shell", "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" }, { "lang": "node", "source": "const request = require('request');\n\nconst options = {\n method: 'GET',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" }, { "lang": "php", "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, "/console/organizations/{orgId}/projects/{projectId}": { "delete": { "summary": "Delete Project", "tags": [ "projects" ], "parameters": [ { "name": "orgId", "description": "Organization ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "projectId", "description": "Project ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "Authorization", "description": "Access token", "in": "header", "required": true, "schema": { "type": "string" } }, { "name": "x-api-key", "description": "API key", "in": "header", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Delete project success" }, "500": { "description": "Error deleting project" } }, "x-codeSamples": [ { "lang": "shell", "source": "curl --request DELETE \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" }, { "lang": "node", "source": "const request = require('request');\n\nconst options = {\n method: 'DELETE',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" }, { "lang": "php", "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D');\n$request->setMethod(HTTP_METH_DELETE);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", "source": "HttpResponse response = Unirest.delete(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D\"\n\n\treq, _ := http.NewRequest(\"DELETE\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"DELETE\", \"/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D\");\nvar request = new RestRequest(Method.DELETE);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Delete.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] }, "patch": { "summary": "Edit Project", "tags": [ "projects" ], "parameters": [ { "name": "orgId", "description": "Org ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "projectId", "description": "Project ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "Authorization", "description": "Access token", "in": "header", "required": true, "schema": { "type": "string" } }, { "name": "x-api-key", "description": "API key", "in": "header", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "required": [ "name", "title" ], "properties": { "name": { "type": "string" }, "title": { "type": "string" }, "description": { "type": "string" } } } } }, "description": "New project info" }, "responses": { "200": { "description": "Edit project success" }, "500": { "description": "Error editing project" } }, "x-codeSamples": [ { "lang": "shell", "source": "curl --request PATCH \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE' \\\n --data '{\"name\":\"string\",\"title\":\"string\",\"description\":\"string\"}'" }, { "lang": "node", "source": "const request = require('request');\n\nconst options = {\n method: 'PATCH',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n },\n body: {name: 'string', title: 'string', description: 'string'},\n json: true\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" }, { "lang": "php", "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D');\n$request->setMethod(HttpRequest::HTTP_METH_PATCH);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\n$request->setBody('{\"name\":\"string\",\"title\":\"string\",\"description\":\"string\"}');\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", "source": "HttpResponse response = Unirest.patch(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .body(\"{\\\"name\\\":\\\"string\\\",\\\"title\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\"}\")\n .asString();" }, { "lang": "go", "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"strings\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D\"\n\n\tpayload := strings.NewReader(\"{\\\"name\\\":\\\"string\\\",\\\"title\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\"}\")\n\n\treq, _ := http.NewRequest(\"PATCH\", url, payload)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\npayload = \"{\\\"name\\\":\\\"string\\\",\\\"title\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\"}\"\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"PATCH\", \"/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D\", payload, headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D\");\nvar request = new RestRequest(Method.PATCH);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nrequest.AddParameter(\"application/json\", \"{\\\"name\\\":\\\"string\\\",\\\"title\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\"}\", ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Patch.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\nrequest.body = \"{\\\"name\\\":\\\"string\\\",\\\"title\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body" } ] }, "get": { "summary": "Get project by ID", "tags": [ "projects" ], "parameters": [ { "name": "orgId", "description": "Organization ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "projectId", "description": "Project ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "Authorization", "description": "Access token", "in": "header", "required": true, "schema": { "type": "string" } }, { "name": "x-api-key", "description": "API key", "in": "header", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Found project", "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "string", "description": "Project id" }, "name": { "type": "string", "description": "Project name" }, "description": { "type": "string", "description": "Project description" }, "type": { "type": "string", "description": "Project type" }, "enabled": { "type": "boolean", "description": "Is project enabled" }, "deleted": { "type": "boolean", "description": "Is project deleted" }, "title": { "type": "string", "description": "Project title" }, "org_id": { "type": "string", "description": "Org id" }, "date_created": { "type": "string", "format": "date", "description": "Project create date" }, "date_last_modified": { "type": "string", "format": "date", "description": "Project last modify date" }, "who_created": { "type": "string", "description": "Created by" }, "who_last_modified": { "type": "string", "description": "Last modified by" } } } } } }, "500": { "description": "Error getting project" } }, "x-codeSamples": [ { "lang": "shell", "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" }, { "lang": "node", "source": "const request = require('request');\n\nconst options = {\n method: 'GET',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" }, { "lang": "php", "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, "/console/organizations/{orgId}/projects/{projectId}/workspaces/{workspaceId}/namespace": { "post": { "summary": "Create runtime namespace", "tags": [ "runtime" ], "parameters": [ { "name": "orgId", "description": "Organization ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "projectId", "description": "Project ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "workspaceId", "description": "Workspace ID", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Create runtime namespace success", "content": { "application/json": { "schema": { "type": "object", "properties": { "name": { "type": "string", "description": "Namespace name" }, "auth": { "type": "string", "description": "Auth key" } } } } } }, "500": { "description": "Error creating runtime namespace" } }, "x-codeSamples": [ { "lang": "shell", "source": "curl --request POST \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/namespace \\\n --header 'content-type: application/json'" }, { "lang": "node", "source": "const request = require('request');\n\nconst options = {\n method: 'POST',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/namespace',\n headers: {'content-type': 'application/json'}\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" }, { "lang": "php", "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/namespace');\n$request->setMethod(HTTP_METH_POST);\n\n$request->setHeaders([\n 'content-type' => 'application/json'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", "source": "HttpResponse response = Unirest.post(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/namespace\")\n .header(\"content-type\", \"application/json\")\n .asString();" }, { "lang": "go", "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/namespace\"\n\n\treq, _ := http.NewRequest(\"POST\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = { 'content-type': \"application/json\" }\n\nconn.request(\"POST\", \"/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/namespace\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/namespace\");\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"content-type\", \"application/json\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/namespace\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"content-type\"] = 'application/json'\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, "/console/organizations/{orgId}/projects/{projectId}/workspaces/{workspaceId}": { "patch": { "summary": "Edit Workspace", "tags": [ "workspaces" ], "parameters": [ { "name": "orgId", "description": "Organization ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "projectId", "description": "Project ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "workspaceId", "description": "Workspace ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "Authorization", "description": "Access token", "in": "header", "required": true, "schema": { "type": "string" } }, { "name": "x-api-key", "description": "API key", "in": "header", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "required": [ "name" ], "properties": { "name": { "type": "string" }, "title": { "type": "string" }, "whoLastModified": { "type": "string" }, "description": { "type": "string" } } } } }, "description": "New workspace info" }, "responses": { "200": { "description": "Edit workspace success" }, "500": { "description": "Error editing workspace" } }, "x-codeSamples": [ { "lang": "shell", "source": "curl --request PATCH \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE' \\\n --data '{\"name\":\"string\",\"title\":\"string\",\"whoLastModified\":\"string\",\"description\":\"string\"}'" }, { "lang": "node", "source": "const request = require('request');\n\nconst options = {\n method: 'PATCH',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n },\n body: {\n name: 'string',\n title: 'string',\n whoLastModified: 'string',\n description: 'string'\n },\n json: true\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" }, { "lang": "php", "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D');\n$request->setMethod(HttpRequest::HTTP_METH_PATCH);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\n$request->setBody('{\"name\":\"string\",\"title\":\"string\",\"whoLastModified\":\"string\",\"description\":\"string\"}');\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", "source": "HttpResponse response = Unirest.patch(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .body(\"{\\\"name\\\":\\\"string\\\",\\\"title\\\":\\\"string\\\",\\\"whoLastModified\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\"}\")\n .asString();" }, { "lang": "go", "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"strings\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D\"\n\n\tpayload := strings.NewReader(\"{\\\"name\\\":\\\"string\\\",\\\"title\\\":\\\"string\\\",\\\"whoLastModified\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\"}\")\n\n\treq, _ := http.NewRequest(\"PATCH\", url, payload)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\npayload = \"{\\\"name\\\":\\\"string\\\",\\\"title\\\":\\\"string\\\",\\\"whoLastModified\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\"}\"\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"PATCH\", \"/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D\", payload, headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D\");\nvar request = new RestRequest(Method.PATCH);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nrequest.AddParameter(\"application/json\", \"{\\\"name\\\":\\\"string\\\",\\\"title\\\":\\\"string\\\",\\\"whoLastModified\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\"}\", ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Patch.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\nrequest.body = \"{\\\"name\\\":\\\"string\\\",\\\"title\\\":\\\"string\\\",\\\"whoLastModified\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body" } ] }, "get": { "summary": "Get Workspace", "tags": [ "workspaces" ], "parameters": [ { "name": "orgId", "description": "Organization ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "projectId", "description": "Project ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "workspaceId", "description": "Workspace ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "Authorization", "description": "Access token", "in": "header", "required": true, "schema": { "type": "string" } }, { "name": "x-api-key", "description": "API key", "in": "header", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Found workspace", "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "string", "description": "Workspace id" }, "name": { "type": "string", "description": "Workspace name" }, "title": { "type": "string", "description": "Workspace title" }, "description": { "type": "string", "description": "Workspace description" }, "quota_usage": { "type": "string", "description": "Quota usage for workspace" }, "enabled": { "type": "boolean", "description": "Is project enabled" }, "runtime_enabled": { "type": "boolean", "description": "Is runtime enabled" }, "date_created": { "type": "string", "format": "date", "description": "Workspace create date" }, "date_last_modified": { "type": "string", "format": "date", "description": "Workspace last modify date" }, "who_created": { "type": "string", "description": "Created by" }, "who_last_modified": { "type": "string", "description": "Last modified by" } } } } } }, "500": { "description": "Error getting workspace" } }, "x-codeSamples": [ { "lang": "shell", "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" }, { "lang": "node", "source": "const request = require('request');\n\nconst options = {\n method: 'GET',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" }, { "lang": "php", "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] }, "delete": { "summary": "Delete a workspace", "tags": [ "workspaces" ], "parameters": [ { "name": "orgId", "description": "Organization ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "projectId", "description": "Project ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "workspaceId", "description": "Workspace ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "Authorization", "description": "Access token", "in": "header", "required": true, "schema": { "type": "string" } }, { "name": "x-api-key", "description": "API key", "in": "header", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Delete workspace success" }, "500": { "description": "Error deleting workspace" } }, "x-codeSamples": [ { "lang": "shell", "source": "curl --request DELETE \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" }, { "lang": "node", "source": "const request = require('request');\n\nconst options = {\n method: 'DELETE',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" }, { "lang": "php", "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D');\n$request->setMethod(HTTP_METH_DELETE);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", "source": "HttpResponse response = Unirest.delete(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D\"\n\n\treq, _ := http.NewRequest(\"DELETE\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"DELETE\", \"/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D\");\nvar request = new RestRequest(Method.DELETE);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Delete.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, "/console/organizations/{orgId}/projects/{projectId}/workspaces/{workspaceId}/plugins": { "get": { "summary": "Get plugins for workspace", "tags": [ "workspaces" ], "parameters": [ { "name": "orgId", "description": "Org ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "projectId", "description": "Project ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "workspaceId", "description": "Workspace ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "Authorization", "description": "Access token", "in": "header", "required": true, "schema": { "type": "string" } }, { "name": "x-api-key", "description": "API key", "in": "header", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Return list of plugins", "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "id_workspace": { "type": "string", "description": "Workspace id" }, "id_plugin": { "type": "string", "description": "Plugin id" } } } } } } }, "500": { "description": "Error getting plugins for workspace" } }, "x-codeSamples": [ { "lang": "shell", "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/plugins \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" }, { "lang": "node", "source": "const request = require('request');\n\nconst options = {\n method: 'GET',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/plugins',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" }, { "lang": "php", "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/plugins');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/plugins\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/plugins\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/plugins\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/plugins\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/plugins\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, "/console/organizations/{orgId}/projects/{projectId}/workspaces/{workspaceId}/credentials": { "get": { "summary": "Get Credentials", "tags": [ "workspaces" ], "parameters": [ { "name": "orgId", "description": "Org ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "projectId", "description": "Project ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "workspaceId", "description": "Workspace ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "Authorization", "description": "Access token", "in": "header", "required": true, "schema": { "type": "string" } }, { "name": "x-api-key", "description": "API key", "in": "header", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Return list of credentials", "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "id_workspace": { "type": "string", "description": "Workspace id" }, "id_credential": { "type": "string", "description": "Credential id" }, "flow_type": { "type": "string", "description": "Flow type" }, "credential_type": { "type": "string", "description": "Credential type" } } } } } } }, "500": { "description": "Error getting credentials for workspace" } }, "x-codeSamples": [ { "lang": "shell", "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" }, { "lang": "node", "source": "const request = require('request');\n\nconst options = {\n method: 'GET',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" }, { "lang": "php", "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, "/console/organizations/{orgId}/projects/{projectId}/workspaces/{workspaceId}/credentials/entp": { "post": { "summary": "Create Enterprise Credential", "tags": [ "workspaces" ], "parameters": [ { "name": "orgId", "description": "Org ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "projectId", "description": "Project ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "workspaceId", "description": "Workspace ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "Authorization", "description": "Access token", "in": "header", "required": true, "schema": { "type": "string" } }, { "name": "x-api-key", "description": "API key", "in": "header", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "multipart/form-data": { "schema": { "$ref": "#/components/schemas/components/credentials/Entp" } } }, "description": "Enterprise credential object", "required": true }, "responses": { "200": { "description": "Return enterprise credential details", "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Credential id" }, "apiKey": { "type": "string", "description": "Credential API Key" }, "orgId": { "type": "string", "description": "IMS Org ID" } } } } } } }, "500": { "description": "Error creating enterprise credential for workspace" } }, "x-codeSamples": [ { "lang": "shell", "source": "curl --request POST \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/entp \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'accept: multipart/form-data' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE' \\\n --data '{\"certificate\":null,\"name\":\"string\",\"description\":\"string\"}'" }, { "lang": "node", "source": "const request = require('request');\n\nconst options = {\n method: 'POST',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/entp',\n headers: {\n accept: 'multipart/form-data',\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n },\n body: {certificate: null, name: 'string', description: 'string'},\n json: true\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" }, { "lang": "php", "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/entp');\n$request->setMethod(HTTP_METH_POST);\n\n$request->setHeaders([\n 'accept' => 'multipart/form-data',\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\n$request->setBody('{\"certificate\":null,\"name\":\"string\",\"description\":\"string\"}');\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", "source": "HttpResponse response = Unirest.post(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/entp\")\n .header(\"accept\", \"multipart/form-data\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .body(\"{\\\"certificate\\\":null,\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\"}\")\n .asString();" }, { "lang": "go", "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"strings\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/entp\"\n\n\tpayload := strings.NewReader(\"{\\\"certificate\\\":null,\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\"}\")\n\n\treq, _ := http.NewRequest(\"POST\", url, payload)\n\n\treq.Header.Add(\"accept\", \"multipart/form-data\")\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\npayload = \"{\\\"certificate\\\":null,\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\"}\"\n\nheaders = {\n 'accept': \"multipart/form-data\",\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"POST\", \"/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/entp\", payload, headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/entp\");\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"accept\", \"multipart/form-data\");\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nrequest.AddParameter(\"application/json\", \"{\\\"certificate\\\":null,\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\"}\", ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/entp\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"accept\"] = 'multipart/form-data'\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\nrequest.body = \"{\\\"certificate\\\":null,\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, "/console/organizations/{orgId}/projects/{projectId}/workspaces/{workspaceId}/credentials/analytics": { "post": { "summary": "Create Analytics Credential", "tags": [ "workspaces" ], "parameters": [ { "name": "orgId", "description": "Org ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "projectId", "description": "Project ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "workspaceId", "description": "Workspace ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "Authorization", "description": "Access token", "in": "header", "required": true, "schema": { "type": "string" } }, { "name": "x-api-key", "description": "API key", "in": "header", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/components/credentials/Adobeid" } } }, "description": "Analytics credential object", "required": true }, "responses": { "200": { "description": "Return analytics credential details", "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Credential id" }, "apiKey": { "type": "string", "description": "Credential API Key" }, "orgId": { "type": "string", "description": "IMS Org ID" } } } } } } }, "500": { "description": "Error creating analytics credential for workspace" } }, "x-codeSamples": [ { "lang": "shell", "source": "curl --request POST \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/analytics \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE' \\\n --data '{\"name\":\"string\",\"description\":\"string\",\"platform\":\"string\",\"urlScheme\":\"string\",\"redirectUriList\":[\"string\"],\"defaultRedirectUri\":\"string\",\"domain\":\"string\",\"approvalInfo\":{\"websiteUrl\":\"string\",\"companyWebsiteUrl\":\"string\",\"integrationWebsiteUrl\":\"string\",\"contactEmail\":\"string\",\"integrationDescription\":\"string\",\"descriptionTypekit\":\"string\",\"descriptionCCStorage\":\"string\",\"otherCreativeSDK\":\"string\",\"domain\":\"string\",\"sdkComponents\":[\"string\"],\"requestState\":\"string\",\"requestStateList\":[{\"rejectReasons\":\"string\",\"requestState\":\"string\",\"created\":\"string\",\"comments\":\"string\"}]}}'" }, { "lang": "node", "source": "const request = require('request');\n\nconst options = {\n method: 'POST',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/analytics',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n },\n body: {\n name: 'string',\n description: 'string',\n platform: 'string',\n urlScheme: 'string',\n redirectUriList: ['string'],\n defaultRedirectUri: 'string',\n domain: 'string',\n approvalInfo: {\n websiteUrl: 'string',\n companyWebsiteUrl: 'string',\n integrationWebsiteUrl: 'string',\n contactEmail: 'string',\n integrationDescription: 'string',\n descriptionTypekit: 'string',\n descriptionCCStorage: 'string',\n otherCreativeSDK: 'string',\n domain: 'string',\n sdkComponents: ['string'],\n requestState: 'string',\n requestStateList: [\n {\n rejectReasons: 'string',\n requestState: 'string',\n created: 'string',\n comments: 'string'\n }\n ]\n }\n },\n json: true\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" }, { "lang": "php", "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/analytics');\n$request->setMethod(HTTP_METH_POST);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\n$request->setBody('{\"name\":\"string\",\"description\":\"string\",\"platform\":\"string\",\"urlScheme\":\"string\",\"redirectUriList\":[\"string\"],\"defaultRedirectUri\":\"string\",\"domain\":\"string\",\"approvalInfo\":{\"websiteUrl\":\"string\",\"companyWebsiteUrl\":\"string\",\"integrationWebsiteUrl\":\"string\",\"contactEmail\":\"string\",\"integrationDescription\":\"string\",\"descriptionTypekit\":\"string\",\"descriptionCCStorage\":\"string\",\"otherCreativeSDK\":\"string\",\"domain\":\"string\",\"sdkComponents\":[\"string\"],\"requestState\":\"string\",\"requestStateList\":[{\"rejectReasons\":\"string\",\"requestState\":\"string\",\"created\":\"string\",\"comments\":\"string\"}]}}');\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", "source": "HttpResponse response = Unirest.post(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/analytics\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .body(\"{\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"platform\\\":\\\"string\\\",\\\"urlScheme\\\":\\\"string\\\",\\\"redirectUriList\\\":[\\\"string\\\"],\\\"defaultRedirectUri\\\":\\\"string\\\",\\\"domain\\\":\\\"string\\\",\\\"approvalInfo\\\":{\\\"websiteUrl\\\":\\\"string\\\",\\\"companyWebsiteUrl\\\":\\\"string\\\",\\\"integrationWebsiteUrl\\\":\\\"string\\\",\\\"contactEmail\\\":\\\"string\\\",\\\"integrationDescription\\\":\\\"string\\\",\\\"descriptionTypekit\\\":\\\"string\\\",\\\"descriptionCCStorage\\\":\\\"string\\\",\\\"otherCreativeSDK\\\":\\\"string\\\",\\\"domain\\\":\\\"string\\\",\\\"sdkComponents\\\":[\\\"string\\\"],\\\"requestState\\\":\\\"string\\\",\\\"requestStateList\\\":[{\\\"rejectReasons\\\":\\\"string\\\",\\\"requestState\\\":\\\"string\\\",\\\"created\\\":\\\"string\\\",\\\"comments\\\":\\\"string\\\"}]}}\")\n .asString();" }, { "lang": "go", "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"strings\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/analytics\"\n\n\tpayload := strings.NewReader(\"{\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"platform\\\":\\\"string\\\",\\\"urlScheme\\\":\\\"string\\\",\\\"redirectUriList\\\":[\\\"string\\\"],\\\"defaultRedirectUri\\\":\\\"string\\\",\\\"domain\\\":\\\"string\\\",\\\"approvalInfo\\\":{\\\"websiteUrl\\\":\\\"string\\\",\\\"companyWebsiteUrl\\\":\\\"string\\\",\\\"integrationWebsiteUrl\\\":\\\"string\\\",\\\"contactEmail\\\":\\\"string\\\",\\\"integrationDescription\\\":\\\"string\\\",\\\"descriptionTypekit\\\":\\\"string\\\",\\\"descriptionCCStorage\\\":\\\"string\\\",\\\"otherCreativeSDK\\\":\\\"string\\\",\\\"domain\\\":\\\"string\\\",\\\"sdkComponents\\\":[\\\"string\\\"],\\\"requestState\\\":\\\"string\\\",\\\"requestStateList\\\":[{\\\"rejectReasons\\\":\\\"string\\\",\\\"requestState\\\":\\\"string\\\",\\\"created\\\":\\\"string\\\",\\\"comments\\\":\\\"string\\\"}]}}\")\n\n\treq, _ := http.NewRequest(\"POST\", url, payload)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\npayload = \"{\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"platform\\\":\\\"string\\\",\\\"urlScheme\\\":\\\"string\\\",\\\"redirectUriList\\\":[\\\"string\\\"],\\\"defaultRedirectUri\\\":\\\"string\\\",\\\"domain\\\":\\\"string\\\",\\\"approvalInfo\\\":{\\\"websiteUrl\\\":\\\"string\\\",\\\"companyWebsiteUrl\\\":\\\"string\\\",\\\"integrationWebsiteUrl\\\":\\\"string\\\",\\\"contactEmail\\\":\\\"string\\\",\\\"integrationDescription\\\":\\\"string\\\",\\\"descriptionTypekit\\\":\\\"string\\\",\\\"descriptionCCStorage\\\":\\\"string\\\",\\\"otherCreativeSDK\\\":\\\"string\\\",\\\"domain\\\":\\\"string\\\",\\\"sdkComponents\\\":[\\\"string\\\"],\\\"requestState\\\":\\\"string\\\",\\\"requestStateList\\\":[{\\\"rejectReasons\\\":\\\"string\\\",\\\"requestState\\\":\\\"string\\\",\\\"created\\\":\\\"string\\\",\\\"comments\\\":\\\"string\\\"}]}}\"\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"POST\", \"/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/analytics\", payload, headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/analytics\");\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nrequest.AddParameter(\"application/json\", \"{\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"platform\\\":\\\"string\\\",\\\"urlScheme\\\":\\\"string\\\",\\\"redirectUriList\\\":[\\\"string\\\"],\\\"defaultRedirectUri\\\":\\\"string\\\",\\\"domain\\\":\\\"string\\\",\\\"approvalInfo\\\":{\\\"websiteUrl\\\":\\\"string\\\",\\\"companyWebsiteUrl\\\":\\\"string\\\",\\\"integrationWebsiteUrl\\\":\\\"string\\\",\\\"contactEmail\\\":\\\"string\\\",\\\"integrationDescription\\\":\\\"string\\\",\\\"descriptionTypekit\\\":\\\"string\\\",\\\"descriptionCCStorage\\\":\\\"string\\\",\\\"otherCreativeSDK\\\":\\\"string\\\",\\\"domain\\\":\\\"string\\\",\\\"sdkComponents\\\":[\\\"string\\\"],\\\"requestState\\\":\\\"string\\\",\\\"requestStateList\\\":[{\\\"rejectReasons\\\":\\\"string\\\",\\\"requestState\\\":\\\"string\\\",\\\"created\\\":\\\"string\\\",\\\"comments\\\":\\\"string\\\"}]}}\", ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/analytics\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\nrequest.body = \"{\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"platform\\\":\\\"string\\\",\\\"urlScheme\\\":\\\"string\\\",\\\"redirectUriList\\\":[\\\"string\\\"],\\\"defaultRedirectUri\\\":\\\"string\\\",\\\"domain\\\":\\\"string\\\",\\\"approvalInfo\\\":{\\\"websiteUrl\\\":\\\"string\\\",\\\"companyWebsiteUrl\\\":\\\"string\\\",\\\"integrationWebsiteUrl\\\":\\\"string\\\",\\\"contactEmail\\\":\\\"string\\\",\\\"integrationDescription\\\":\\\"string\\\",\\\"descriptionTypekit\\\":\\\"string\\\",\\\"descriptionCCStorage\\\":\\\"string\\\",\\\"otherCreativeSDK\\\":\\\"string\\\",\\\"domain\\\":\\\"string\\\",\\\"sdkComponents\\\":[\\\"string\\\"],\\\"requestState\\\":\\\"string\\\",\\\"requestStateList\\\":[{\\\"rejectReasons\\\":\\\"string\\\",\\\"requestState\\\":\\\"string\\\",\\\"created\\\":\\\"string\\\",\\\"comments\\\":\\\"string\\\"}]}}\"\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, "/console/organizations/{orgId}/projects/{projectId}/workspaces/{workspaceId}/credentials/adobeId": { "post": { "summary": "Create AdobeId Credential", "tags": [ "workspaces" ], "parameters": [ { "name": "orgId", "description": "Org ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "projectId", "description": "Project ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "workspaceId", "description": "Workspace ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "Authorization", "description": "Access token", "in": "header", "required": true, "schema": { "type": "string" } }, { "name": "x-api-key", "description": "API key", "in": "header", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/components/credentials/Adobeid" } } }, "description": "AdobeId credential object", "required": true }, "responses": { "200": { "description": "Return adobeid credential details", "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Credential id" }, "apiKey": { "type": "string", "description": "Credential API Key" }, "orgId": { "type": "string", "description": "IMS Org ID" } } } } } } }, "500": { "description": "Error creating adobeId credential for workspace" } }, "x-codeSamples": [ { "lang": "shell", "source": "curl --request POST \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/adobeId \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE' \\\n --data '{\"name\":\"string\",\"description\":\"string\",\"platform\":\"string\",\"urlScheme\":\"string\",\"redirectUriList\":[\"string\"],\"defaultRedirectUri\":\"string\",\"domain\":\"string\",\"approvalInfo\":{\"websiteUrl\":\"string\",\"companyWebsiteUrl\":\"string\",\"integrationWebsiteUrl\":\"string\",\"contactEmail\":\"string\",\"integrationDescription\":\"string\",\"descriptionTypekit\":\"string\",\"descriptionCCStorage\":\"string\",\"otherCreativeSDK\":\"string\",\"domain\":\"string\",\"sdkComponents\":[\"string\"],\"requestState\":\"string\",\"requestStateList\":[{\"rejectReasons\":\"string\",\"requestState\":\"string\",\"created\":\"string\",\"comments\":\"string\"}]}}'" }, { "lang": "node", "source": "const request = require('request');\n\nconst options = {\n method: 'POST',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/adobeId',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n },\n body: {\n name: 'string',\n description: 'string',\n platform: 'string',\n urlScheme: 'string',\n redirectUriList: ['string'],\n defaultRedirectUri: 'string',\n domain: 'string',\n approvalInfo: {\n websiteUrl: 'string',\n companyWebsiteUrl: 'string',\n integrationWebsiteUrl: 'string',\n contactEmail: 'string',\n integrationDescription: 'string',\n descriptionTypekit: 'string',\n descriptionCCStorage: 'string',\n otherCreativeSDK: 'string',\n domain: 'string',\n sdkComponents: ['string'],\n requestState: 'string',\n requestStateList: [\n {\n rejectReasons: 'string',\n requestState: 'string',\n created: 'string',\n comments: 'string'\n }\n ]\n }\n },\n json: true\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" }, { "lang": "php", "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/adobeId');\n$request->setMethod(HTTP_METH_POST);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\n$request->setBody('{\"name\":\"string\",\"description\":\"string\",\"platform\":\"string\",\"urlScheme\":\"string\",\"redirectUriList\":[\"string\"],\"defaultRedirectUri\":\"string\",\"domain\":\"string\",\"approvalInfo\":{\"websiteUrl\":\"string\",\"companyWebsiteUrl\":\"string\",\"integrationWebsiteUrl\":\"string\",\"contactEmail\":\"string\",\"integrationDescription\":\"string\",\"descriptionTypekit\":\"string\",\"descriptionCCStorage\":\"string\",\"otherCreativeSDK\":\"string\",\"domain\":\"string\",\"sdkComponents\":[\"string\"],\"requestState\":\"string\",\"requestStateList\":[{\"rejectReasons\":\"string\",\"requestState\":\"string\",\"created\":\"string\",\"comments\":\"string\"}]}}');\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", "source": "HttpResponse response = Unirest.post(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/adobeId\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .body(\"{\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"platform\\\":\\\"string\\\",\\\"urlScheme\\\":\\\"string\\\",\\\"redirectUriList\\\":[\\\"string\\\"],\\\"defaultRedirectUri\\\":\\\"string\\\",\\\"domain\\\":\\\"string\\\",\\\"approvalInfo\\\":{\\\"websiteUrl\\\":\\\"string\\\",\\\"companyWebsiteUrl\\\":\\\"string\\\",\\\"integrationWebsiteUrl\\\":\\\"string\\\",\\\"contactEmail\\\":\\\"string\\\",\\\"integrationDescription\\\":\\\"string\\\",\\\"descriptionTypekit\\\":\\\"string\\\",\\\"descriptionCCStorage\\\":\\\"string\\\",\\\"otherCreativeSDK\\\":\\\"string\\\",\\\"domain\\\":\\\"string\\\",\\\"sdkComponents\\\":[\\\"string\\\"],\\\"requestState\\\":\\\"string\\\",\\\"requestStateList\\\":[{\\\"rejectReasons\\\":\\\"string\\\",\\\"requestState\\\":\\\"string\\\",\\\"created\\\":\\\"string\\\",\\\"comments\\\":\\\"string\\\"}]}}\")\n .asString();" }, { "lang": "go", "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"strings\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/adobeId\"\n\n\tpayload := strings.NewReader(\"{\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"platform\\\":\\\"string\\\",\\\"urlScheme\\\":\\\"string\\\",\\\"redirectUriList\\\":[\\\"string\\\"],\\\"defaultRedirectUri\\\":\\\"string\\\",\\\"domain\\\":\\\"string\\\",\\\"approvalInfo\\\":{\\\"websiteUrl\\\":\\\"string\\\",\\\"companyWebsiteUrl\\\":\\\"string\\\",\\\"integrationWebsiteUrl\\\":\\\"string\\\",\\\"contactEmail\\\":\\\"string\\\",\\\"integrationDescription\\\":\\\"string\\\",\\\"descriptionTypekit\\\":\\\"string\\\",\\\"descriptionCCStorage\\\":\\\"string\\\",\\\"otherCreativeSDK\\\":\\\"string\\\",\\\"domain\\\":\\\"string\\\",\\\"sdkComponents\\\":[\\\"string\\\"],\\\"requestState\\\":\\\"string\\\",\\\"requestStateList\\\":[{\\\"rejectReasons\\\":\\\"string\\\",\\\"requestState\\\":\\\"string\\\",\\\"created\\\":\\\"string\\\",\\\"comments\\\":\\\"string\\\"}]}}\")\n\n\treq, _ := http.NewRequest(\"POST\", url, payload)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\npayload = \"{\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"platform\\\":\\\"string\\\",\\\"urlScheme\\\":\\\"string\\\",\\\"redirectUriList\\\":[\\\"string\\\"],\\\"defaultRedirectUri\\\":\\\"string\\\",\\\"domain\\\":\\\"string\\\",\\\"approvalInfo\\\":{\\\"websiteUrl\\\":\\\"string\\\",\\\"companyWebsiteUrl\\\":\\\"string\\\",\\\"integrationWebsiteUrl\\\":\\\"string\\\",\\\"contactEmail\\\":\\\"string\\\",\\\"integrationDescription\\\":\\\"string\\\",\\\"descriptionTypekit\\\":\\\"string\\\",\\\"descriptionCCStorage\\\":\\\"string\\\",\\\"otherCreativeSDK\\\":\\\"string\\\",\\\"domain\\\":\\\"string\\\",\\\"sdkComponents\\\":[\\\"string\\\"],\\\"requestState\\\":\\\"string\\\",\\\"requestStateList\\\":[{\\\"rejectReasons\\\":\\\"string\\\",\\\"requestState\\\":\\\"string\\\",\\\"created\\\":\\\"string\\\",\\\"comments\\\":\\\"string\\\"}]}}\"\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"POST\", \"/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/adobeId\", payload, headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/adobeId\");\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nrequest.AddParameter(\"application/json\", \"{\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"platform\\\":\\\"string\\\",\\\"urlScheme\\\":\\\"string\\\",\\\"redirectUriList\\\":[\\\"string\\\"],\\\"defaultRedirectUri\\\":\\\"string\\\",\\\"domain\\\":\\\"string\\\",\\\"approvalInfo\\\":{\\\"websiteUrl\\\":\\\"string\\\",\\\"companyWebsiteUrl\\\":\\\"string\\\",\\\"integrationWebsiteUrl\\\":\\\"string\\\",\\\"contactEmail\\\":\\\"string\\\",\\\"integrationDescription\\\":\\\"string\\\",\\\"descriptionTypekit\\\":\\\"string\\\",\\\"descriptionCCStorage\\\":\\\"string\\\",\\\"otherCreativeSDK\\\":\\\"string\\\",\\\"domain\\\":\\\"string\\\",\\\"sdkComponents\\\":[\\\"string\\\"],\\\"requestState\\\":\\\"string\\\",\\\"requestStateList\\\":[{\\\"rejectReasons\\\":\\\"string\\\",\\\"requestState\\\":\\\"string\\\",\\\"created\\\":\\\"string\\\",\\\"comments\\\":\\\"string\\\"}]}}\", ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/adobeId\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\nrequest.body = \"{\\\"name\\\":\\\"string\\\",\\\"description\\\":\\\"string\\\",\\\"platform\\\":\\\"string\\\",\\\"urlScheme\\\":\\\"string\\\",\\\"redirectUriList\\\":[\\\"string\\\"],\\\"defaultRedirectUri\\\":\\\"string\\\",\\\"domain\\\":\\\"string\\\",\\\"approvalInfo\\\":{\\\"websiteUrl\\\":\\\"string\\\",\\\"companyWebsiteUrl\\\":\\\"string\\\",\\\"integrationWebsiteUrl\\\":\\\"string\\\",\\\"contactEmail\\\":\\\"string\\\",\\\"integrationDescription\\\":\\\"string\\\",\\\"descriptionTypekit\\\":\\\"string\\\",\\\"descriptionCCStorage\\\":\\\"string\\\",\\\"otherCreativeSDK\\\":\\\"string\\\",\\\"domain\\\":\\\"string\\\",\\\"sdkComponents\\\":[\\\"string\\\"],\\\"requestState\\\":\\\"string\\\",\\\"requestStateList\\\":[{\\\"rejectReasons\\\":\\\"string\\\",\\\"requestState\\\":\\\"string\\\",\\\"created\\\":\\\"string\\\",\\\"comments\\\":\\\"string\\\"}]}}\"\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, "/console/organizations/{orgId}/projects/{projectId}/workspaces/{workspaceId}/credentials/{credentialType}/{credentialId}/services": { "put": { "summary": "Subscribe Credential to Services", "tags": [ "workspaces" ], "parameters": [ { "name": "orgId", "description": "Org ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "projectId", "description": "Project ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "workspaceId", "description": "Workspace ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "credentialType", "description": "Type of credential (adobeid, analytics, entp)", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "credentialId", "description": "ID of credential", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "Authorization", "description": "Access token", "in": "header", "required": true, "schema": { "type": "string" } }, { "name": "x-api-key", "description": "API key", "in": "header", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/components/services/SubscribeToServices" } } }, "description": "SDK codes to add to credential" }, "responses": { "200": { "description": "List of services credential is subscribed to", "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "sdkList": { "type": "string", "description": "List of SDK codes associated with credential" } } } } } } }, "404": { "description": "Credential not found" } }, "x-codeSamples": [ { "lang": "shell", "source": "curl --request PUT \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/%7BintegrationType%7D/%7BcredentialId%7D/services \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE' \\\n --data '[{\"sdkCode\":\"string\",\"licenseConfigs\":[{\"productId\":\"string\",\"id\":\"string\",\"op\":\"string\"}],\"roles\":[{\"id\":0,\"code\":\"string\",\"name\":\"string\"}]}]'" }, { "lang": "node", "source": "const request = require('request');\n\nconst options = {\n method: 'PUT',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/%7BintegrationType%7D/%7BcredentialId%7D/services',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n },\n body: [\n {\n sdkCode: 'string',\n licenseConfigs: [{productId: 'string', id: 'string', op: 'string'}],\n roles: [{id: 0, code: 'string', name: 'string'}]\n }\n ],\n json: true\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" }, { "lang": "php", "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/%7BintegrationType%7D/%7BcredentialId%7D/services');\n$request->setMethod(HTTP_METH_PUT);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\n$request->setBody('[{\"sdkCode\":\"string\",\"licenseConfigs\":[{\"productId\":\"string\",\"id\":\"string\",\"op\":\"string\"}],\"roles\":[{\"id\":0,\"code\":\"string\",\"name\":\"string\"}]}]');\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", "source": "HttpResponse response = Unirest.put(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/%7BintegrationType%7D/%7BcredentialId%7D/services\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .body(\"[{\\\"sdkCode\\\":\\\"string\\\",\\\"licenseConfigs\\\":[{\\\"productId\\\":\\\"string\\\",\\\"id\\\":\\\"string\\\",\\\"op\\\":\\\"string\\\"}],\\\"roles\\\":[{\\\"id\\\":0,\\\"code\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\"}]}]\")\n .asString();" }, { "lang": "go", "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"strings\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/%7BintegrationType%7D/%7BcredentialId%7D/services\"\n\n\tpayload := strings.NewReader(\"[{\\\"sdkCode\\\":\\\"string\\\",\\\"licenseConfigs\\\":[{\\\"productId\\\":\\\"string\\\",\\\"id\\\":\\\"string\\\",\\\"op\\\":\\\"string\\\"}],\\\"roles\\\":[{\\\"id\\\":0,\\\"code\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\"}]}]\")\n\n\treq, _ := http.NewRequest(\"PUT\", url, payload)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\npayload = \"[{\\\"sdkCode\\\":\\\"string\\\",\\\"licenseConfigs\\\":[{\\\"productId\\\":\\\"string\\\",\\\"id\\\":\\\"string\\\",\\\"op\\\":\\\"string\\\"}],\\\"roles\\\":[{\\\"id\\\":0,\\\"code\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\"}]}]\"\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"PUT\", \"/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/%7BintegrationType%7D/%7BcredentialId%7D/services\", payload, headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/%7BintegrationType%7D/%7BcredentialId%7D/services\");\nvar request = new RestRequest(Method.PUT);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nrequest.AddParameter(\"application/json\", \"[{\\\"sdkCode\\\":\\\"string\\\",\\\"licenseConfigs\\\":[{\\\"productId\\\":\\\"string\\\",\\\"id\\\":\\\"string\\\",\\\"op\\\":\\\"string\\\"}],\\\"roles\\\":[{\\\"id\\\":0,\\\"code\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\"}]}]\", ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/%7BintegrationType%7D/%7BcredentialId%7D/services\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Put.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\nrequest.body = \"[{\\\"sdkCode\\\":\\\"string\\\",\\\"licenseConfigs\\\":[{\\\"productId\\\":\\\"string\\\",\\\"id\\\":\\\"string\\\",\\\"op\\\":\\\"string\\\"}],\\\"roles\\\":[{\\\"id\\\":0,\\\"code\\\":\\\"string\\\",\\\"name\\\":\\\"string\\\"}]}]\"\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, "/console/organizations/{orgId}/projects_workspaces/credentials/{credentialId}": { "get": { "summary": "Get project/workspace IDs for an credentials", "tags": [ "workspaces" ], "parameters": [ { "name": "orgId", "description": "Organization ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "credentialId", "description": "Credential ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "Authorization", "description": "Access token", "in": "header", "required": true, "schema": { "type": "string" } }, { "name": "x-api-key", "description": "API key", "in": "header", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Project/workspace IDs", "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "projectId": { "type": "string", "description": "Project id" }, "workspaceId": { "type": "string", "description": "Workspace id" }, "credentialId": { "type": "string", "description": "Credential id" } } } } } } }, "404": { "description": "Credential not found / Project not found" }, "500": { "description": "Error retrieving workspace/project info" } }, "x-codeSamples": [ { "lang": "shell", "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects_workspaces/credentials/%7BcredentialId%7D \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" }, { "lang": "node", "source": "const request = require('request');\n\nconst options = {\n method: 'GET',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects_workspaces/credentials/%7BcredentialId%7D',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" }, { "lang": "php", "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects_workspaces/credentials/%7BcredentialId%7D');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects_workspaces/credentials/%7BcredentialId%7D\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects_workspaces/credentials/%7BcredentialId%7D\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/projects_workspaces/credentials/%7BcredentialId%7D\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects_workspaces/credentials/%7BcredentialId%7D\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects_workspaces/credentials/%7BcredentialId%7D\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, "/console/organizations/{orgId}/projects_workspaces/workspaces/{workspaceId}": { "get": { "summary": "Get project ID for a workspace", "tags": [ "workspaces" ], "parameters": [ { "name": "orgId", "description": "Organization ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "workspaceId", "description": "Workspace ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "Authorization", "description": "Access token", "in": "header", "required": true, "schema": { "type": "string" } }, { "name": "x-api-key", "description": "API key", "in": "header", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Project ID", "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "projectId": { "type": "string", "description": "Project id" }, "workspaceId": { "type": "string", "description": "Workspace id" } } } } } } }, "404": { "description": "Project not found" }, "500": { "description": "Error retrieving project info" } }, "x-codeSamples": [ { "lang": "shell", "source": "curl --request GET \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects_workspaces/workspaces/%7BworkspaceId%7D \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" }, { "lang": "node", "source": "const request = require('request');\n\nconst options = {\n method: 'GET',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects_workspaces/workspaces/%7BworkspaceId%7D',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" }, { "lang": "php", "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects_workspaces/workspaces/%7BworkspaceId%7D');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", "source": "HttpResponse response = Unirest.get(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects_workspaces/workspaces/%7BworkspaceId%7D\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects_workspaces/workspaces/%7BworkspaceId%7D\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"GET\", \"/console/organizations/%7BorgId%7D/projects_workspaces/workspaces/%7BworkspaceId%7D\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects_workspaces/workspaces/%7BworkspaceId%7D\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects_workspaces/workspaces/%7BworkspaceId%7D\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, "/console/organizations/{orgId}/projects/{projectId}/workspaces/{workspaceId}/credentials/{credentialId}": { "delete": { "summary": "Delete Credential", "tags": [ "workspaces" ], "parameters": [ { "name": "orgId", "description": "Organization ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "projectId", "description": "Project ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "workspaceId", "description": "Workspace ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "credentialType", "description": "Type of credentials (adobeid, analytics, entp)", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "credentialId", "description": "ID of credential", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "Authorization", "description": "Access token", "in": "header", "required": true, "schema": { "type": "string" } }, { "name": "x-api-key", "description": "API key", "in": "header", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Delete credentials success" }, "500": { "description": "Error deleting credentials" } }, "x-codeSamples": [ { "lang": "shell", "source": "curl --request DELETE \\\n --url https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/%7BcredentialId%7D \\\n --header 'Authorization: SOME_STRING_VALUE' \\\n --header 'content-type: application/json' \\\n --header 'x-api-key: SOME_STRING_VALUE'" }, { "lang": "node", "source": "const request = require('request');\n\nconst options = {\n method: 'DELETE',\n url: 'https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/%7BcredentialId%7D',\n headers: {\n 'content-type': 'application/json',\n Authorization: 'SOME_STRING_VALUE',\n 'x-api-key': 'SOME_STRING_VALUE'\n }\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n" }, { "lang": "php", "source": "setUrl('https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/%7BcredentialId%7D');\n$request->setMethod(HTTP_METH_DELETE);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Authorization' => 'SOME_STRING_VALUE',\n 'x-api-key' => 'SOME_STRING_VALUE'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}" }, { "lang": "java", "source": "HttpResponse response = Unirest.delete(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/%7BcredentialId%7D\")\n .header(\"content-type\", \"application/json\")\n .header(\"Authorization\", \"SOME_STRING_VALUE\")\n .header(\"x-api-key\", \"SOME_STRING_VALUE\")\n .asString();" }, { "lang": "go", "source": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/%7BcredentialId%7D\"\n\n\treq, _ := http.NewRequest(\"DELETE\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Authorization\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"x-api-key\", \"SOME_STRING_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}" }, { "lang": "python", "source": "import http.client\n\nconn = http.client.HTTPSConnection(\"developers-stage.adobe.io\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'Authorization': \"SOME_STRING_VALUE\",\n 'x-api-key': \"SOME_STRING_VALUE\"\n }\n\nconn.request(\"DELETE\", \"/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/%7BcredentialId%7D\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))" }, { "lang": "csharp", "source": "var client = new RestClient(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/%7BcredentialId%7D\");\nvar request = new RestRequest(Method.DELETE);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Authorization\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"x-api-key\", \"SOME_STRING_VALUE\");\nIRestResponse response = client.Execute(request);" }, { "lang": "ruby", "source": "require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://developers-stage.adobe.io/console/organizations/%7BorgId%7D/projects/%7BprojectId%7D/workspaces/%7BworkspaceId%7D/credentials/%7BcredentialId%7D\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Delete.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Authorization\"] = 'SOME_STRING_VALUE'\nrequest[\"x-api-key\"] = 'SOME_STRING_VALUE'\n\nresponse = http.request(request)\nputs response.read_body" } ] } }, "/console/organizations/{orgId}/projects/{projectId}/workspaces/{workspaceId}/endpoints": { "put": { "summary": "Update endpoints in a workspace", "tags": [ "Extensions" ], "parameters": [ { "name": "orgId", "description": "Org ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "projectId", "description": "Project ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "workspaceId", "description": "Workspace ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "Authorization", "description": "Access token", "in": "header", "required": true, "schema": { "type": "string" } }, { "name": "x-api-key", "description": "API key", "in": "header", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "endpoints": { "type": "object" } } } } } }, "responses": { "200": { "description": "Endpoints added to the workspace", "content": { "application/json": { "schema": { "type": "object", "properties": { "endpoints": { "type": "object" } } } } } } } }, "get": { "summary": "Get endpoints in a workspace", "tags": [ "Extensions" ], "parameters": [ { "name": "orgId", "description": "Org ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "projectId", "description": "Project ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "workspaceId", "description": "Workspace ID", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "Authorization", "description": "Access token", "in": "header", "required": true, "schema": { "type": "string" } }, { "name": "x-api-key", "description": "API key", "in": "header", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Endpoints added to the workspace", "content": { "application/json": { "schema": { "type": "object", "properties": { "endpoints": { "type": "object" } } } } } } } } }, "/console/organizations/{orgId}/xp/{xpId}": { "get": { "summary": "Get all available extension points", "tags": [ "Extensions" ], "parameters": [ { "name": "Authorization", "description": "Authorization", "in": "header", "required": true, "schema": { "type": "string" } }, { "name": "x-api-key", "description": "API key", "in": "header", "required": true, "schema": { "type": "string" } }, { "name": "orgId", "description": "AMS org id", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "xpId", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "offset", "in": "query", "required": false, "schema": { "type": "string" } }, { "name": "pageSize", "in": "query", "required": false, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "serviceCode": { "type": "string" }, "version": { "type": "string" }, "idVer": { "type": "string" }, "title": { "type": "string" }, "specVersion": { "type": "string" }, "operations": { "type": "array", "items": { "type": "string" } }, "ficodes": { "type": "array", "items": { "type": "string" } }, "state": { "type": "string" }, "publisherId": { "type": "string" }, "lifecycle": { "type": "object", "properties": { "created": { "type": "object", "properties": { "by": { "type": "object", "properties": { "guid": { "type": "string" } } }, "notes": { "type": "string" }, "on": { "type": "string" } } }, "lastModified": { "type": "object", "properties": { "by": { "type": "object", "properties": { "guid": { "type": "string" } } }, "notes": { "type": "string" }, "on": { "type": "string" } } }, "submitted": { "type": "object", "properties": { "by": { "type": "object", "properties": { "guid": { "type": "string" } } }, "notes": { "type": "string" }, "on": { "type": "string" } } }, "published": { "type": "object", "properties": { "by": { "type": "object", "properties": { "guid": { "type": "string" } } }, "notes": { "type": "string" }, "on": { "type": "string" } } }, "reviewed": { "type": "object", "properties": { "by": { "type": "object", "properties": { "guid": { "type": "string" } } }, "notes": { "type": "string" }, "on": { "type": "string" } } }, "unpublished": { "type": "object", "properties": { "by": { "type": "object", "properties": { "guid": { "type": "string" } } }, "notes": { "type": "string" }, "on": { "type": "string" } } } } } } } } } }, "404": { "description": "If service code or EP ID is not found" }, "405": { "description": "Invalid Input" } } } } }, "servers": [ { "url": "https://developers-stage.adobe.io/" } ], "components": { "requestBodies": { "Form": { "content": { "application/json": { "schema": {} } }, "description": "form", "required": true }, "Subscriptionlist": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "sdkCode": { "type": "string" }, "licenseConfigs": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "name" }, "productId": { "type": "string" }, "description": { "type": "string" }, "selected": { "type": "boolean" } } } }, "roles": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "code": { "type": "string" }, "name": { "type": "string" } } } } } } } } }, "description": "form data", "required": true } }, "schemas": { "components": { "credentials": { "Adobeid": { "type": "object", "required": [ "name", "description", "platform" ], "properties": { "name": { "type": "string" }, "description": { "type": "string" }, "platform": { "type": "string" }, "urlScheme": { "type": "string" }, "redirectUriList": { "type": "array", "items": { "type": "string" } }, "defaultRedirectUri": { "type": "string" }, "domain": { "type": "string" }, "approvalInfo": { "type": "object", "properties": { "websiteUrl": { "type": "string" }, "companyWebsiteUrl": { "type": "string" }, "integrationWebsiteUrl": { "type": "string" }, "contactEmail": { "type": "string" }, "integrationDescription": { "type": "string" }, "descriptionTypekit": { "type": "string" }, "descriptionCCStorage": { "type": "string" }, "otherCreativeSDK": { "type": "string" }, "domain": { "type": "string" }, "sdkComponents": { "type": "array", "items": { "type": "string" } }, "requestState": { "type": "string" }, "requestStateList": { "type": "array", "items": { "type": "object", "properties": { "rejectReasons": { "type": "string" }, "requestState": { "type": "string" }, "created": { "type": "string" }, "comments": { "type": "string" } } } } } } } }, "Entp": { "type": "object", "required": [ "certificate", "name", "description" ], "properties": { "certificate": { "type": "file" }, "name": { "type": "string" }, "description": { "type": "string" } } } }, "services": { "SubscribeToServices": { "type": "array", "items": { "type": "object", "properties": { "sdkCode": { "type": "string" }, "licenseConfigs": { "type": "array", "items": { "type": "object", "properties": { "productId": { "type": "string" }, "id": { "type": "string" }, "op": { "type": "string" } } } }, "roles": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "integer" }, "code": { "type": "string" }, "name": { "type": "string" } } } } } } } } } } } }