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()

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

Example

import * as Pieces from '@pieces.app/pieces-os-client'

const configuration = Pieces.Configuration()
const apiInstance = new Pieces.MacOSApi(configuration)

const body: Pieces.AssetsCreateNewAssetFromMacosRequest = {
// SeededMacOSAsset | A SeededMacosApplication which contains the value and an Application Instance (optional)
seededMacOSAsset: ,
};

apiInstance.assetsCreateNewAssetFromMacos(body).then((data: Asset) => {
console.log('API called successfully. Returned data: ' + data)
}).catch((error: unknown) => console.error(error))

Parameters

NameTypeDescriptionNotes
seededMacOSAssetSeededMacOSAssetA SeededMacosApplication which contains the value and an Application Instance

Return type

Asset

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200OK-