Clone platform
POST
/api/platforms/{id}/clone
const url = 'http://localhost:3000/api/platforms/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/clone';const options = { method: 'POST', headers: {cookie: 'session=<session>', 'Content-Type': 'application/json'}, body: '{"name":"example","slug":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:3000/api/platforms/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/clone \ --header 'Content-Type: application/json' \ --cookie session=<session> \ --data '{ "name": "example", "slug": "example" }'Clone a platform (typically a read-only vendor catalog row) into a customer-owned copy.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string format: uuid
Request Body
Section titled “Request Body ” Media type application/json
object
name
string
slug
string
Example generated
{ "name": "example", "slug": "example"}Responses
Section titled “ Responses ”Platform cloned
Media type application/json
object
data
object
id
required
string format: uuid
name
required
string
slug
string
manufacturerId
string format: uuid
description
string
nosFamily
string
typicalDevices
string
keyFeatures
string
commonUseCases
string
commercialStatus
string
automationApis
Array<string>
popular
boolean
source
string
createdAt
required
string format: date-time
updatedAt
required
string format: date-time
Example
{ "data": { "source": "vendor" }}Not authenticated
Media type application/json
object
error
required
string
Example
{ "error": "Not found"}Platform not found
Media type application/json
object
error
required
string
Example
{ "error": "Not found"}