v2
presets

Setup Trigger

Sets up a webhook-triggered LibraryAgentPreset for a LibraryAgent. Returns the correspondingly created LibraryAgentPreset with webhook_id set.

post/api/library/presets/setup-trigger

Request body

namestring required
descriptionstring
graph_idstring required
graph_versioninteger required
trigger_configobject required
agent_credentialsobject

Response

Successful Response

graph_idstring required
graph_versioninteger required
inputsobject required
credentialsobject required
namestring required
descriptionstring required
is_activeboolean
idstring required
user_idstring required
created_atstring date-time required
updated_atstring date-time required
organization_idstring nullable
team_idstring nullable
webhook_idstring nullable
expert_idstring nullable

Changes

Changed in 4 of the 92 revisions of this API.56

  • ae1be5efc67a11See the full diff
    • added the new device_code enum value to the credentials/additionalProperties/type response property for the response status 200

      response-property-enum-value-added

    • added the new device_code enum value to the request property agent_credentials/additionalProperties/type

      request-property-enum-value-added

    • added the optional property expert_id to the response with the 200 status

      response-optional-property-added

    • added the optional property organization_id to the response with the 200 status

      response-optional-property-added

    • added the optional property team_id to the response with the 200 status

      response-optional-property-added

    • added the optional property webhook/anyOf[subschema #1: Webhook]/organization_id to the response with the 200 status

      response-optional-property-added

    • added the optional property webhook/anyOf[subschema #1: Webhook]/team_id to the response with the 200 status

      response-optional-property-added

    • removed the optional property organization_id from the response with the 200 status

      response-optional-property-removed

    • removed the optional property team_id from the response with the 200 status

      response-optional-property-removed

    • removed the optional property webhook/anyOf[subschema #1: Webhook]/organization_id from the response with the 200 status

      response-optional-property-removed

    • removed the optional property webhook/anyOf[subschema #1: Webhook]/team_id from the response with the 200 status

      response-optional-property-removed

    This revision also has 96 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog