Skip to main content

MacOS API

All URIs are relative to http://localhost:1000

MethodHTTP requestDescription
assetsCreateNewAssetFromMacosPOST /macos/assets/create/macos/assets/create [Post]

assetsCreateNewAssetFromMacos

Asset assetsCreateNewAssetFromMacos(seededMacOSAsset)

/macos/assets/create [Post]

Exposes an endpoint for the MacOS Services plugin to send over MacOS Specific Data

Example

// Import classes:
import app.pieces.pieces-os-client.infrastructure.*
import app.pieces.pieces-os-client.models.*

val apiInstance = MacOSApi()
val seededMacOSAsset : SeededMacOSAsset = // SeededMacOSAsset | A SeededMacosApplication which contains the value and an Application Instance
try {
val result : Asset = apiInstance.assetsCreateNewAssetFromMacos(seededMacOSAsset)
println(result)
} catch (e: ClientException) {
println("4xx response calling MacOSApi#assetsCreateNewAssetFromMacos")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling MacOSApi#assetsCreateNewAssetFromMacos")
e.printStackTrace()
}

Parameters

NameTypeDescriptionNotes
seededMacOSAssetSeededMacOSAssetA SeededMacosApplication which contains the value and an Application Instance[optional]

Return type

Asset

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json