Create Components
POST
{{url}}/api/portal/external/components
Body Parameters
- bodyComponentDTO[]required
- idstring
- namestring
- componentTypeComponentTypeDTO
- categoryNamestring
- vendorNamestring
- elementTypeIdstring
- elementTypeNamestring
- propertiesobject
- emptyboolean
- totalCountinteger<int32>
- activeCountinteger<int32>
- isActiveboolean
- propertiesobject
- activeboolean
Responses
200
curl
curl --request POST \
--url {{url}}/api/portal/external/components \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '[
{}
]'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("content-type", "application/json");
var raw = JSON.stringify([
{}
]);
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch("{{url}}/api/portal/external/components", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));ruby
require "uri"
require "json"
require "net/http"
url = URI("{{url}}/api/portal/external/components")
http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Post.new(url)
request["accept"] = "application/json"
request["content-type"] = "application/json"
request.body = JSON.dump([
{}
])
response = http.request(request)
puts response.read_body
python
import requests
import json
url = "{{url}}/api/portal/external/components"
payload = json.dumps([
{}
])
headers = {
'accept': 'application/json',
'content-type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
200
// OK
This API empowers users to create source and destination components on the Kron DSP platform.