Skip to main content
POST
/
v1
/
config-objects
Create config object
curl --request POST \
  --url https://api.openworklabs.com/v1/config-objects \
  --header 'Content-Type: application/json' \
  --data '
{
  "type": "skill",
  "sourceMode": "cloud",
  "input": {
    "rawSourceText": "<string>",
    "normalizedPayloadJson": {},
    "parserMode": "<string>",
    "schemaVersion": "<string>",
    "metadata": {}
  },
  "pluginIds": [
    "<string>"
  ]
}
'
{
  "ok": true,
  "item": {
    "id": "<string>",
    "organizationId": "<string>",
    "objectType": "skill",
    "sourceMode": "cloud",
    "title": "<string>",
    "description": "<string>",
    "searchText": "<string>",
    "currentFileName": "<string>",
    "currentFileExtension": "<string>",
    "currentRelativePath": "<string>",
    "status": "active",
    "createdByOrgMembershipId": "<string>",
    "connectorInstanceId": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "deletedAt": "2023-11-07T05:31:56Z",
    "latestVersion": {
      "id": "<string>",
      "configObjectId": "<string>",
      "schemaVersion": "<string>",
      "normalizedPayloadJson": {},
      "rawSourceText": "<string>",
      "createdVia": "cloud",
      "createdByOrgMembershipId": "<string>",
      "connectorSyncEventId": "<string>",
      "sourceRevisionRef": "<string>",
      "isDeletedVersion": true,
      "createdAt": "2023-11-07T05:31:56Z"
    }
  }
}

Body

application/json
type
enum<string>
required
Available options:
skill,
agent,
command,
tool,
mcp,
hook,
context,
custom
sourceMode
enum<string>
required
Available options:
cloud,
import,
connector
input
object
required
pluginIds
string<typeid>[]
Maximum array length: 100

Den TypeID with 'plg_' prefix and a 26-character base32 suffix.

Required string length: 30
Pattern: ^plg_.*

Response

Config object created successfully.

ok
boolean
required
item
object
required