{"swagger":"2.0","info":{"title":"Main API","version":"3.5.2"},"basePath":"/","paths":{"/":{"get":{"tags":["Info"],"description":"","responses":{"200":{"description":"Returns the basic api details"}},"parameters":[]}},"/swagger.json":{"get":{"tags":["Info"],"description":"","responses":{"200":{"description":"Returns the swagger.json document"}},"parameters":[]}},"/v1/orgs":{"post":{"tags":["Orgs"],"summary":"Create a new org while logged in","description":"","responses":{"200":{"description":"Create a new org while logged in"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"409":{"description":"Conflict, item exists"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/portal-variables":{"get":{"tags":["Home"],"summary":"Returns the portal variables for the current user","description":"","responses":{"200":{"description":"The portal-variables"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]},"post":{"tags":["Home"],"summary":"Updates a set of portal variables for the current user","description":"","responses":{"204":{"description":"No content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/portal-variables/{variable}":{"get":{"tags":["Home"],"summary":"Returns a portal variable for the current user","description":"","responses":{"200":{"description":"The portal-variable"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"variable","in":"path","type":"string","required":true}]},"post":{"tags":["Home"],"summary":"Updates a portal variables for the current user","description":"","responses":{"204":{"description":"No content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"variable","in":"path","type":"string","required":true}]}},"/v1/organizations(?:/([^/]+?))/components/search":{"get":{"tags":["Home"],"summary":"Returns the components given the search string","description":"","responses":{"200":{"description":"The components"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))":{"get":{"tags":["Home"],"summary":"Returns the logged in organization info","description":"","responses":{"200":{"description":"The organization info"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]},"patch":{"tags":["Home"],"summary":"Patches org details","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/apiKey":{"post":{"tags":["Home"],"summary":"Resets the API key","description":"","responses":{"200":{"description":"The new api key"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/portaloptions":{"get":{"tags":["Home"],"summary":"Returns the portal options for the current organization","description":"","responses":{"200":{"description":"The portal options"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]},"post":{"tags":["Home"],"summary":"Updates a set of portal options for the current organization","description":"","responses":{"204":{"description":"No content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/portaloptions/{option}":{"get":{"tags":["Home"],"summary":"Returns a portal option for the current organization","description":"","responses":{"200":{"description":"The portal option"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"option","in":"path","type":"string","required":true}]},"post":{"tags":["Home"],"summary":"Updates a portal option for the current organization","description":"","responses":{"204":{"description":"No content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"option","in":"path","type":"string","required":true}]}},"/v1/organizations(?:/([^/]+?))/users-permissions":{"get":{"tags":["Users Permissions"],"summary":"Get users permissions","description":"","responses":{"200":{"description":"A list of available users permissions"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/users/usergroups":{"get":{"tags":["Users"],"summary":"Queries user groups","description":"","responses":{"200":{"description":"A list of user groups"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]},"post":{"tags":["Users"],"summary":"Updates the user groups","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/users/usergroups/{userGroupId}":{"delete":{"tags":["User"],"summary":"Deletes a user group by ID","description":"","responses":{"204":{"description":"No content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"userGroupId","in":"path","type":"string","required":true}]}},"/v1/organizations(?:/([^/]+?))/users/usergroups/delete":{"post":{"tags":["Users"],"summary":"Deletes the user groups by IDs","description":"","responses":{"204":{"description":"No content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/users":{"get":{"tags":["Users"],"summary":"Queries users","description":"","responses":{"200":{"description":"A list of users"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]},"post":{"tags":["User"],"summary":"Create user","description":"","responses":{"200":{"description":"Create a new user"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/users/link":{"post":{"tags":["User"],"summary":"Link a user account to a synatic account","description":"","responses":{"200":{"description":"Link a Synatic user to a user created using an external identity provider."},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/users/{userId}":{"get":{"tags":["User"],"summary":"Get user","description":"","responses":{"200":{"description":"Get a user by their id"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"userId","in":"path","type":"string","required":true}]},"patch":{"tags":["User"],"summary":"Update user","description":"","responses":{"200":{"description":"Update a users details"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"userId","in":"path","type":"string","required":true}]},"delete":{"tags":["User"],"summary":"Remove user","description":"","responses":{"200":{"description":"Remove a user from an org"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"userId","in":"path","type":"string","required":true}]}},"/v1/organizations(?:/([^/]+?))/users/{userId}/set-user-active-status":{"post":{"tags":["User Service Security"],"summary":"Reactivate user via UserId","description":"","responses":{"200":{"description":"Reactivate user by id"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"userId","in":"path","type":"string","required":true}]}},"/v1/organizations(?:/([^/]+?))/users/{userId}/set-user-inactive-status":{"post":{"tags":["User Service Security"],"summary":"Deactivate user via UserId","description":"","responses":{"200":{"description":"Deactivate user by id"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"userId","in":"path","type":"string","required":true}]}},"/v1/organizations(?:/([^/]+?))/users/{userId}/generate-service-view-api-key":{"post":{"tags":["User Service View API Key"],"summary":"Get users service view API key","description":"","responses":{"200":{"description":"Generate a users service view API key"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"userId","in":"path","type":"string","required":true}]}},"/v1/organizations(?:/([^/]+?))/users/{userId}/auth-stats":{"get":{"tags":["User Auth Stats"],"summary":"Get users auth stats","description":"","responses":{"200":{"description":"Get a users auth stats by their id"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"userId","in":"path","type":"string","required":true}]}},"/v1/organizations(?:/([^/]+?))/users/{userId}/intercom-user-hash":{"get":{"tags":["Users"],"summary":"Intercom auth code","description":"","responses":{"200":{"description":"The intercom authentication code for a user"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"403":{"description":"Forbidden"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"userId","in":"path","type":"string","required":true}]}},"/v1/organizations(?:/([^/]+?))/parameters/{parameterId}/test":{"patch":{"tags":["Parameters"],"summary":"Tests a Parameter Template with Patch","description":"","responses":{"200":{"description":"The results of the test"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"405":{"description":"Method not Allowed"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"parameterId","description":"The unique name of the Parameter","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"parameterId":true}}}},"/v1/organizations(?:/([^/]+?))/parameters/{parameterId}/list/{listName}":{"get":{"tags":["Parameters"],"summary":"Gets a Parameter Template list","description":"","responses":{"200":{"description":"The contents of the list"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"405":{"description":"Method not Allowed"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"listName","in":"path","type":"string","required":true},{"name":"parameterId","description":"The unique name of the Parameter","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"parameterId":true}}}},"/v1/organizations(?:/([^/]+?))/parameters/templates":{"get":{"tags":["Parameters"],"summary":"Gets a list of all the parameter templates","description":"","responses":{"200":{"description":"Returns an array of Parameter Templates"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/parameters/templates/{templateId}":{"get":{"tags":["Parameters"],"summary":"Gets a Parameter Template","description":"","responses":{"200":{"description":"Returns a specific parameter template"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"templateId","in":"path","type":"string","required":true}]}},"/v1/organizations(?:/([^/]+?))/parameters/templates/{templateId}/test":{"post":{"tags":["Parameters"],"summary":"Tests a Parameter Template","description":"","responses":{"200":{"description":"The results of the test"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"405":{"description":"Method not Allowed"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"templateId","in":"path","type":"string","required":true}]}},"/v1/organizations(?:/([^/]+?))/parameters/templates/{templateId}/list/{listName}":{"post":{"tags":["Parameters"],"summary":"Gets a Parameter Template list","description":"","responses":{"200":{"description":"The contents of the list"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"405":{"description":"Method not Allowed"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"templateId","in":"path","type":"string","required":true},{"name":"listName","in":"path","type":"string","required":true}]}},"/v1/organizations(?:/([^/]+?))/parameters/{parameterId}/versions":{"get":{"tags":["Parameters"],"summary":"Queries the Parameter History","description":"","responses":{"200":{"description":"Returns an array of parameter history"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"$filter","description":"The odata formatted filter e.g. $filter=field eq value","required":false,"type":"string","in":"query"},{"name":"$select","description":"The fields to select e.g. $select=field1,field2","required":false,"type":"string","in":"query"},{"name":"$sort","description":"The sort order of records e.g. $sort=field1,-field2","required":false,"type":"string","in":"query"},{"name":"$limit","description":"The number of records to return","default":50,"required":false,"type":"integer","in":"query"},{"name":"$rawQuery","description":"A mongodb json find statement as a string. e.g. {\"field1\": 1}","required":false,"type":"string","in":"query"},{"name":"$skip","description":"The records to skip","default":0,"required":false,"type":"integer","in":"query"},{"name":"parameterId","description":"The unique name of the Parameter","required":true,"type":"string","in":"path"}],"addedParameters":{"query":{"$filter":true,"$select":true,"$sort":true,"$limit":true,"$rawQuery":true,"$skip":true},"path":{"parameterId":true}}},"post":{"tags":["Parameters"],"summary":"Commits a new version of the Parameter","description":"","responses":{"201":{"description":"The version commit response"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"$filter","description":"The odata formatted filter e.g. $filter=field eq value","required":false,"type":"string","in":"query"},{"name":"$select","description":"The fields to select e.g. $select=field1,field2","required":false,"type":"string","in":"query"},{"name":"$sort","description":"The sort order of records e.g. $sort=field1,-field2","required":false,"type":"string","in":"query"},{"name":"$limit","description":"The number of records to return","default":50,"required":false,"type":"integer","in":"query"},{"name":"$rawQuery","description":"A mongodb json find statement as a string. e.g. {\"field1\": 1}","required":false,"type":"string","in":"query"},{"name":"$skip","description":"The records to skip","default":0,"required":false,"type":"integer","in":"query"},{"name":"parameterId","description":"The unique name of the Parameter","required":true,"type":"string","in":"path"}],"addedParameters":{"query":{"$filter":true,"$select":true,"$sort":true,"$limit":true,"$rawQuery":true,"$skip":true},"path":{"parameterId":true}}}},"/v1/organizations(?:/([^/]+?))/parameters/{parameterId}/versions/{versionId}":{"get":{"tags":["Parameters"],"summary":"Returns a version of a Parameter","description":"","responses":{"200":{"description":"A version of a Parameter"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"versionId","in":"path","type":"string","required":true},{"name":"$filter","description":"The odata formatted filter e.g. $filter=field eq value","required":false,"type":"string","in":"query"},{"name":"$select","description":"The fields to select e.g. $select=field1,field2","required":false,"type":"string","in":"query"},{"name":"$sort","description":"The sort order of records e.g. $sort=field1,-field2","required":false,"type":"string","in":"query"},{"name":"$limit","description":"The number of records to return","default":50,"required":false,"type":"integer","in":"query"},{"name":"$rawQuery","description":"A mongodb json find statement as a string. e.g. {\"field1\": 1}","required":false,"type":"string","in":"query"},{"name":"$skip","description":"The records to skip","default":0,"required":false,"type":"integer","in":"query"},{"name":"parameterId","description":"The unique name of the Parameter","required":true,"type":"string","in":"path"}],"addedParameters":{"query":{"$filter":true,"$select":true,"$sort":true,"$limit":true,"$rawQuery":true,"$skip":true},"path":{"parameterId":true}}}},"/v1/organizations(?:/([^/]+?))/parameters/{parameterId}/versions/{versionId}/checkout":{"post":{"tags":["Parameters"],"summary":"Checkout an existing version of the parameter","description":"","responses":{"204":{"description":"The version checkout response"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"versionId","in":"path","type":"string","required":true},{"name":"$filter","description":"The odata formatted filter e.g. $filter=field eq value","required":false,"type":"string","in":"query"},{"name":"$select","description":"The fields to select e.g. $select=field1,field2","required":false,"type":"string","in":"query"},{"name":"$sort","description":"The sort order of records e.g. $sort=field1,-field2","required":false,"type":"string","in":"query"},{"name":"$limit","description":"The number of records to return","default":50,"required":false,"type":"integer","in":"query"},{"name":"$rawQuery","description":"A mongodb json find statement as a string. e.g. {\"field1\": 1}","required":false,"type":"string","in":"query"},{"name":"$skip","description":"The records to skip","default":0,"required":false,"type":"integer","in":"query"},{"name":"parameterId","description":"The unique name of the Parameter","required":true,"type":"string","in":"path"}],"addedParameters":{"query":{"$filter":true,"$select":true,"$sort":true,"$limit":true,"$rawQuery":true,"$skip":true},"path":{"parameterId":true}}}},"/v1/organizations(?:/([^/]+?))/parameters/{parameterId}/export":{"get":{"tags":["Parameters"],"summary":"Export a Parameter","description":"","responses":{"200":{"description":"The exported Parameter"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"parameterId","description":"The unique name of the Parameter","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"parameterId":true}}}},"/v1/organizations(?:/([^/]+?))/parameters":{"get":{"tags":["Parameters"],"summary":"Queries the Parameters","description":"","responses":{"200":{"description":"Returns an array of Parameters"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"$filter","description":"The odata formatted filter e.g. $filter=field eq value","required":false,"type":"string","in":"query"},{"name":"$select","description":"The fields to select e.g. $select=field1,field2","required":false,"type":"string","in":"query"},{"name":"$sort","description":"The sort order of records e.g. $sort=field1,-field2","required":false,"type":"string","in":"query"},{"name":"$limit","description":"The number of records to return","default":50,"required":false,"type":"integer","in":"query"},{"name":"$rawQuery","description":"A mongodb json find statement as a string. e.g. {\"field1\": 1}","required":false,"type":"string","in":"query"},{"name":"$skip","description":"The records to skip","default":0,"required":false,"type":"integer","in":"query"}],"addedParameters":{"query":{"$filter":true,"$select":true,"$sort":true,"$limit":true,"$rawQuery":true,"$skip":true}}},"post":{"tags":["Parameters"],"summary":"Creates a Parameter","description":"","responses":{"201":{"description":"Returns the created Parameter"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"409":{"description":"Conflict, item exists"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/parameters/{parameterId}":{"get":{"tags":["Parameters"],"summary":"Retrieves a Parameter","description":"","responses":{"200":{"description":"Returns a Parameter"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"parameterId","description":"The unique name of the Parameter","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"parameterId":true}}},"put":{"tags":["Parameters"],"summary":"Updates a Parameter","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"parameterId","description":"The unique name of the Parameter","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"parameterId":true}}},"delete":{"tags":["Parameters"],"summary":"Deletes a Parameter","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"parameterId","description":"The unique name of the Parameter","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"parameterId":true}}},"patch":{"tags":["Parameters"],"summary":"Patches a Parameter given the JSON Patch","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"parameterId","description":"The unique name of the Parameter","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"parameterId":true}}},"merge":{"tags":["Parameters"],"summary":"Merges the object on the body with the Parameter","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"parameterId","description":"The unique name of the Parameter","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"parameterId":true}}}},"/v1/organizations(?:/([^/]+?))/flows/usedby":{"get":{"tags":["Flows"],"summary":"Queries the flows that use a certain items","description":"","responses":{"200":{"description":"Returns an array of flows linked to the specified items"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/flows/common-steps":{"get":{"tags":["Flows"],"summary":"Returns an array of commonly used steps","description":"","responses":{"200":{"description":"Commonly used steps"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/flows/{flowId}/full":{"put":{"tags":["Flows"],"summary":"Updates a flow full","description":"","responses":{"204":{"description":"No content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/organizations(?:/([^/]+?))/flows/{flowId}/watchFiles":{"get":{"tags":["Flows"],"summary":"Gets the flows watch files","description":"","responses":{"200":{"description":"Returns an array of file that will be run with the watch"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/organizations(?:/([^/]+?))/flows/{flowId}/runs":{"get":{"tags":["Flows"],"summary":"Queries the Runs for the Flow","description":"","responses":{"200":{"description":"Returns an array of Runs"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"$filter","description":"The odata formatted filter e.g. $filter=field eq value","required":false,"type":"string","in":"query"},{"name":"$select","description":"The fields to select e.g. $select=field1,field2","required":false,"type":"string","in":"query"},{"name":"$sort","description":"The sort order of records e.g. $sort=field1,-field2","required":false,"type":"string","in":"query"},{"name":"$limit","description":"The number of records to return","default":50,"required":false,"type":"integer","in":"query"},{"name":"$rawQuery","description":"A mongodb json find statement as a string. e.g. {\"field1\": 1}","required":false,"type":"string","in":"query"},{"name":"$skip","description":"The records to skip","default":0,"required":false,"type":"integer","in":"query"},{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"query":{"$filter":true,"$select":true,"$sort":true,"$limit":true,"$rawQuery":true,"$skip":true},"path":{"flowId":true}}},"post":{"tags":["Flows"],"summary":"Executes a Flow and creates a run","description":"","responses":{"200":{"description":"The results of the synchronous Flows Run results."},"202":{"description":"The details of the run being executed. "},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"412":{"description":"Precondition failed"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/organizations(?:/([^/]+?))/flows/{flowId}/validations":{"get":{"tags":["Flows"],"summary":"Retrieves validations for the flow","description":"","responses":{"200":{"description":"Returns the validations for a flow"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/organizations(?:/([^/]+?))/flows/{flowId}/validate-step":{"post":{"tags":["Flows"],"summary":"Validates the step","description":"","responses":{"200":{"description":"Validations of the step"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/organizations(?:/([^/]+?))/flows/{flowId}/triggers":{"get":{"tags":["Flow Triggers"],"summary":"Queries the Flow Triggers","description":"","responses":{"200":{"description":"Returns an array of Flow Triggers"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"$filter","description":"The odata formatted filter e.g. $filter=field eq value","required":false,"type":"string","in":"query"},{"name":"$select","description":"The fields to select e.g. $select=field1,field2","required":false,"type":"string","in":"query"},{"name":"$sort","description":"The sort order of records e.g. $sort=field1,-field2","required":false,"type":"string","in":"query"},{"name":"$limit","description":"The number of records to return","default":50,"required":false,"type":"integer","in":"query"},{"name":"$rawQuery","description":"A mongodb json find statement as a string. e.g. {\"field1\": 1}","required":false,"type":"string","in":"query"},{"name":"$skip","description":"The records to skip","default":0,"required":false,"type":"integer","in":"query"},{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"query":{"$filter":true,"$select":true,"$sort":true,"$limit":true,"$rawQuery":true,"$skip":true},"path":{"flowId":true}}},"post":{"tags":["Flow Triggers"],"summary":"Creates a Flow Triggers","description":"","responses":{"201":{"description":"Returns the created Flow Trigger"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"409":{"description":"Conflict, item exists"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/organizations(?:/([^/]+?))/flows/{flowId}/steps":{"post":{"tags":["Flows"],"summary":"Saves the steps","description":"","responses":{"200":{"description":"No content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/organizations(?:/([^/]+?))/flows/{flowId}/map/insert":{"post":{"tags":["Flows"],"summary":"Inserts a step into the flow map","description":"","responses":{"200":{"description":"The inserted step"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/organizations(?:/([^/]+?))/flows/{flowId}/control-step/swap/{swapOption}":{"put":{"tags":["Flows"],"summary":"Swaps a control step in the flow","description":"","responses":{"204":{"description":"No content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"swapOption","in":"path","type":"string","required":true},{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/organizations(?:/([^/]+?))/flows/{flowId}/control-step/copy":{"put":{"tags":["Flows"],"summary":"Gets the copied control step","description":"","responses":{"200":{"description":"Returns a copied control step"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/organizations(?:/([^/]+?))/flows/{flowId}/control-step/copy/add":{"put":{"tags":["Flows"],"summary":"Adds a copied control step to the flow","description":"","responses":{"204":{"description":"No content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/organizations(?:/([^/]+?))/flows/{flowId}/map/steps/{mapStepId}":{"put":{"tags":["Flows"],"summary":"Updates a step in the map","description":"","responses":{"200":{"description":"The new map"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"mapStepId","in":"path","type":"string","required":true},{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}},"delete":{"tags":["Flows"],"summary":"Deletes a step in the map","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"mapStepId","in":"path","type":"string","required":true},{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/organizations(?:/([^/]+?))/flows/{flowId}/map/returns/{endStepId}":{"put":{"tags":["Flows"],"summary":"Updates the returns in a subflow","description":"","responses":{"200":{"description":"The new subflow returns"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"endStepId","in":"path","type":"string","required":true},{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/organizations(?:/([^/]+?))/flows/{flowId}/map/{subFlowStepId}/parentField/{field}":{"put":{"tags":["Flows"],"summary":"Updates the returns in a subflow","description":"","responses":{"200":{"description":"The new subflow returns"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"subFlowStepId","in":"path","type":"string","required":true},{"name":"field","in":"path","type":"string","required":true},{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/organizations(?:/([^/]+?))/flows/{flowId}/map/{startStepId}/properties":{"put":{"tags":["Flows"],"summary":"Updates the subflow properties","description":"","responses":{"200":{"description":"The new subflow map"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"startStepId","in":"path","type":"string","required":true},{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/organizations(?:/([^/]+?))/flows/{flowId}/map":{"put":{"tags":["Flows"],"summary":"Saves the Steps Map","description":"","responses":{"200":{"description":"Updated map"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/organizations(?:/([^/]+?))/flows/{flowId}/flowTriggers":{"post":{"tags":["Flows"],"summary":"Saves the Flow Triggers","description":"","responses":{"200":{"description":"No content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/organizations(?:/([^/]+?))/flows/{flowId}/runs/stats":{"get":{"tags":["Flows"],"summary":"Gets the Run stats for a Flow","description":"","responses":{"200":{"description":"The Flow Run stats"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/organizations(?:/([^/]+?))/flows/{flowId}/runs/stats/{targetDate}":{"get":{"tags":["Flows"],"summary":"Gets the Run stats for a Flow for a specific target date","description":"","responses":{"200":{"description":"The Flow Run stats"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"targetDate","in":"path","type":"string","required":true},{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/organizations(?:/([^/]+?))/flows/{flowId}/export":{"get":{"tags":["Flows"],"summary":"Export a Flow","description":"","responses":{"200":{"description":"The exported Flow"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/organizations(?:/([^/]+?))/flows/import":{"post":{"tags":["Flows"],"summary":"Imports a flow","description":"","responses":{"201":{"description":"Returns the imported flow and its components"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"409":{"description":"Conflict, item exists"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/flows/import/update":{"post":{"tags":["Flows"],"summary":"Imports a flow","description":"","responses":{"201":{"description":"Returns the updated import flow and its components"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"409":{"description":"Conflict, item exists"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/flows/{flowId}/parentFlows":{"get":{"tags":["Flows"],"summary":"Get the Parent Flows","description":"","responses":{"200":{"description":"A list of parent flows"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/organizations(?:/([^/]+?))/flows/{flowId}/runs/{runId}":{"get":{"tags":["Flows"],"summary":"Retrieves a Run for a flow","description":"","responses":{"200":{"description":"Returns a specific Run"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"},{"name":"runId","description":"The unique id of the run","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true,"runId":true}}}},"/v1/organizations(?:/([^/]+?))/flows/{flowId}/copy":{"post":{"tags":["Flows"],"summary":"Copies a flow","description":"","responses":{"201":{"description":"The copied Flow"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/organizations(?:/([^/]+?))/flows/{flowId}/checkStepsAllowed":{"get":{"tags":["Flows"],"summary":"Checks flow for blacklisted steps","description":"","responses":{"201":{"description":"The Flow steps are valid"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/organizations(?:/([^/]+?))/flows/{flowId}/execute":{"post":{"tags":["Flows"],"summary":"Executes a Flow and creates a run","description":"","responses":{"200":{"description":"The results of the synchronous Flows Run results."},"202":{"description":"The details of the run being executed. "},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"412":{"description":"Precondition failed"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}},"get":{"tags":["Flows"],"summary":"Executes a synchronous Flow and returns the results.","description":"","responses":{"200":{"description":"The Flows synchronous results"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/organizations(?:/([^/]+?))/flows/{flowId}/test/{toMapStepId}":{"post":{"tags":["Flows"],"summary":"Runs a flow without source and destination as a test","description":"","responses":{"200":{"description":"Runs a flow as a test with given input"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"toMapStepId","in":"path","type":"string","required":true},{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/organizations(?:/([^/]+?))/flows/{flowId}/purge":{"post":{"tags":["Flows"],"summary":"Purges flow items like runes, records and events","description":"","responses":{"200":{"description":"The number of records purged"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/organizations(?:/([^/]+?))/flows/{flowId}/resetSequence":{"put":{"tags":["Flows"],"summary":"Resets a Flows sequence number","description":"","responses":{"204":{"description":"No content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/organizations(?:/([^/]+?))/flows/{flowId}/records":{"delete":{"tags":["Flows"],"summary":"Deletes all the Run Records associated with this Flow.","description":"","responses":{"200":{"description":"The result of the purge."},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/organizations(?:/([^/]+?))/flows/{flowId}/steps/{stepId}":{"delete":{"tags":["Flows"],"summary":"Deletes a specific step.","description":"","responses":{"204":{"description":"No content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"stepId","in":"path","type":"string","required":true},{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/organizations(?:/([^/]+?))/flows/{flowId}/triggers/{flowTriggerId}":{"get":{"tags":["Flow Triggers"],"summary":"Retrieves a Flow Trigger","description":"","responses":{"200":{"description":"Returns a Flow Trigger"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowTriggerId","in":"path","type":"string","required":true},{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}},"put":{"tags":["Flow Triggers"],"summary":"Updates a Flow Trigger","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowTriggerId","in":"path","type":"string","required":true},{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}},"delete":{"tags":["Flow Triggers"],"summary":"Deletes a Flow Trigger","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowTriggerId","in":"path","type":"string","required":true},{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}},"patch":{"tags":["Flow Triggers"],"summary":"Patches a Flow Trigger given the JSON Patch","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowTriggerId","in":"path","type":"string","required":true},{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}},"merge":{"tags":["Flow Triggers"],"summary":"Merges the object on the body with the Flow Trigger","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowTriggerId","in":"path","type":"string","required":true},{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/organizations(?:/([^/]+?))/flows/{flowId}/triggers/{flowTriggerId}/attach":{"put":{"tags":["Flow Triggers"],"summary":"Attaches a Flow Trigger","description":"","responses":{"204":{"description":"No content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowTriggerId","in":"path","type":"string","required":true},{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/organizations(?:/([^/]+?))/flows/{flowId}/triggers/{flowTriggerId}/detach":{"put":{"tags":["Flow Triggers"],"summary":"Detaches a Flow Trigger","description":"","responses":{"204":{"description":"No content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowTriggerId","in":"path","type":"string","required":true},{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/organizations(?:/([^/]+?))/flows/{flowId}/triggers/{flowTriggerId}/reattach":{"put":{"tags":["Flow Triggers"],"summary":"Detaches and Attaches a Flow Trigger","description":"","responses":{"204":{"description":"No content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowTriggerId","in":"path","type":"string","required":true},{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/organizations(?:/([^/]+?))/flows/{flowId}/triggers/{flowTriggerId}/enable":{"put":{"tags":["Flow Triggers"],"summary":"Enables a Flow Trigger","description":"","responses":{"204":{"description":"No content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowTriggerId","in":"path","type":"string","required":true},{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/organizations(?:/([^/]+?))/flows/{flowId}/triggers/{flowTriggerId}/disable":{"put":{"tags":["Flow Triggers"],"summary":"Disables a Flow Trigger","description":"","responses":{"204":{"description":"No content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowTriggerId","in":"path","type":"string","required":true},{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/organizations(?:/([^/]+?))/flows/{flowId}/records/clean":{"post":{"tags":["Flows"],"summary":"Cleans all the Run Records associated with this Flow.","description":"","responses":{"200":{"description":"The results of the clean"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/organizations(?:/([^/]+?))/flows/{flowId}/versions":{"get":{"tags":["Flows"],"summary":"Queries a Flows Versions","description":"","responses":{"200":{"description":"An array of flow versions"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"$filter","description":"The odata formatted filter e.g. $filter=field eq value","required":false,"type":"string","in":"query"},{"name":"$select","description":"The fields to select e.g. $select=field1,field2","required":false,"type":"string","in":"query"},{"name":"$sort","description":"The sort order of records e.g. $sort=field1,-field2","required":false,"type":"string","in":"query"},{"name":"$limit","description":"The number of records to return","default":50,"required":false,"type":"integer","in":"query"},{"name":"$rawQuery","description":"A mongodb json find statement as a string. e.g. {\"field1\": 1}","required":false,"type":"string","in":"query"},{"name":"$skip","description":"The records to skip","default":0,"required":false,"type":"integer","in":"query"},{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"query":{"$filter":true,"$select":true,"$sort":true,"$limit":true,"$rawQuery":true,"$skip":true},"path":{"flowId":true}}},"post":{"tags":["Flows"],"summary":"Commits a new version of a Flow","description":"","responses":{"201":{"description":"Returns a response from the flow version commit"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"$filter","description":"The odata formatted filter e.g. $filter=field eq value","required":false,"type":"string","in":"query"},{"name":"$select","description":"The fields to select e.g. $select=field1,field2","required":false,"type":"string","in":"query"},{"name":"$sort","description":"The sort order of records e.g. $sort=field1,-field2","required":false,"type":"string","in":"query"},{"name":"$limit","description":"The number of records to return","default":50,"required":false,"type":"integer","in":"query"},{"name":"$rawQuery","description":"A mongodb json find statement as a string. e.g. {\"field1\": 1}","required":false,"type":"string","in":"query"},{"name":"$skip","description":"The records to skip","default":0,"required":false,"type":"integer","in":"query"},{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"query":{"$filter":true,"$select":true,"$sort":true,"$limit":true,"$rawQuery":true,"$skip":true},"path":{"flowId":true}}}},"/v1/organizations(?:/([^/]+?))/flows/{flowId}/versions/{versionId}":{"get":{"tags":["Flows"],"summary":"Returns a version of a Flow","description":"","responses":{"200":{"description":"A version of a Flow"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"versionId","in":"path","type":"string","required":true},{"name":"$filter","description":"The odata formatted filter e.g. $filter=field eq value","required":false,"type":"string","in":"query"},{"name":"$select","description":"The fields to select e.g. $select=field1,field2","required":false,"type":"string","in":"query"},{"name":"$sort","description":"The sort order of records e.g. $sort=field1,-field2","required":false,"type":"string","in":"query"},{"name":"$limit","description":"The number of records to return","default":50,"required":false,"type":"integer","in":"query"},{"name":"$rawQuery","description":"A mongodb json find statement as a string. e.g. {\"field1\": 1}","required":false,"type":"string","in":"query"},{"name":"$skip","description":"The records to skip","default":0,"required":false,"type":"integer","in":"query"},{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"query":{"$filter":true,"$select":true,"$sort":true,"$limit":true,"$rawQuery":true,"$skip":true},"path":{"flowId":true}}}},"/v1/organizations(?:/([^/]+?))/flows/{flowId}/versions/{versionId}/checkout":{"post":{"tags":["Flows"],"summary":"Checks out a version of a FLow","description":"","responses":{"204":{"description":"Returns a response from the flow version checkout"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"versionId","in":"path","type":"string","required":true},{"name":"$filter","description":"The odata formatted filter e.g. $filter=field eq value","required":false,"type":"string","in":"query"},{"name":"$select","description":"The fields to select e.g. $select=field1,field2","required":false,"type":"string","in":"query"},{"name":"$sort","description":"The sort order of records e.g. $sort=field1,-field2","required":false,"type":"string","in":"query"},{"name":"$limit","description":"The number of records to return","default":50,"required":false,"type":"integer","in":"query"},{"name":"$rawQuery","description":"A mongodb json find statement as a string. e.g. {\"field1\": 1}","required":false,"type":"string","in":"query"},{"name":"$skip","description":"The records to skip","default":0,"required":false,"type":"integer","in":"query"},{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"query":{"$filter":true,"$select":true,"$sort":true,"$limit":true,"$rawQuery":true,"$skip":true},"path":{"flowId":true}}}},"/v1/organizations(?:/([^/]+?))/flows/{flowId}/versions/{versionId}/deploy":{"post":{"tags":["Flows"],"summary":"Deploys a version of a flow that will run by default when a flow is run","description":"","responses":{"204":{"description":"Returns a response from the flow version deployment"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"versionId","in":"path","type":"string","required":true},{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/organizations(?:/([^/]+?))/flows/{flowId}/discard-changes":{"post":{"tags":["Flows"],"summary":"Discard changes on a flow and checks out the last deployed version","description":"","responses":{"204":{"description":"Returns a response from discarding a changes on a flow"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/organizations(?:/([^/]+?))/flows":{"get":{"tags":["Flows"],"summary":"Queries the Flows","description":"","responses":{"200":{"description":"Returns an array of Flows"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"$filter","description":"The odata formatted filter e.g. $filter=field eq value","required":false,"type":"string","in":"query"},{"name":"$select","description":"The fields to select e.g. $select=field1,field2","required":false,"type":"string","in":"query"},{"name":"$sort","description":"The sort order of records e.g. $sort=field1,-field2","required":false,"type":"string","in":"query"},{"name":"$limit","description":"The number of records to return","default":50,"required":false,"type":"integer","in":"query"},{"name":"$rawQuery","description":"A mongodb json find statement as a string. e.g. {\"field1\": 1}","required":false,"type":"string","in":"query"},{"name":"$skip","description":"The records to skip","default":0,"required":false,"type":"integer","in":"query"}],"addedParameters":{"query":{"$filter":true,"$select":true,"$sort":true,"$limit":true,"$rawQuery":true,"$skip":true}}},"post":{"tags":["Flows"],"summary":"Creates a Flow","description":"","responses":{"201":{"description":"Returns the created Flow"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"409":{"description":"Conflict, item exists"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/flows/{flowId}":{"get":{"tags":["Flows"],"summary":"Retrieves a Flow","description":"","responses":{"200":{"description":"Returns a Flow"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}},"put":{"tags":["Flows"],"summary":"Updates a Flow","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}},"delete":{"tags":["Flows"],"summary":"Deletes a Flow","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}},"patch":{"tags":["Flows"],"summary":"Patches a Flow given the JSON Patch","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}},"merge":{"tags":["Flows"],"summary":"Merges the object on the body with the Flow","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/organizations(?:/([^/]+?))/flow-triggers":{"get":{"tags":["Flow Triggers"],"summary":"Queries the Flow Triggers","description":"","responses":{"200":{"description":"Returns an array of Flow Triggers"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"$filter","description":"The odata formatted filter e.g. $filter=field eq value","required":false,"type":"string","in":"query"},{"name":"$select","description":"The fields to select e.g. $select=field1,field2","required":false,"type":"string","in":"query"},{"name":"$sort","description":"The sort order of records e.g. $sort=field1,-field2","required":false,"type":"string","in":"query"},{"name":"$limit","description":"The number of records to return","default":50,"required":false,"type":"integer","in":"query"},{"name":"$rawQuery","description":"A mongodb json find statement as a string. e.g. {\"field1\": 1}","required":false,"type":"string","in":"query"},{"name":"$skip","description":"The records to skip","default":0,"required":false,"type":"integer","in":"query"}],"addedParameters":{"query":{"$filter":true,"$select":true,"$sort":true,"$limit":true,"$rawQuery":true,"$skip":true}}}},"/v1/organizations(?:/([^/]+?))/runs":{"get":{"tags":["Runs"],"summary":"Queries the Runs","description":"","responses":{"200":{"description":"Returns an array of Runs"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"$filter","description":"The odata formatted filter e.g. $filter=field eq value","required":false,"type":"string","in":"query"},{"name":"$select","description":"The fields to select e.g. $select=field1,field2","required":false,"type":"string","in":"query"},{"name":"$sort","description":"The sort order of records e.g. $sort=field1,-field2","required":false,"type":"string","in":"query"},{"name":"$limit","description":"The number of records to return","default":50,"required":false,"type":"integer","in":"query"},{"name":"$rawQuery","description":"A mongodb json find statement as a string. e.g. {\"field1\": 1}","required":false,"type":"string","in":"query"},{"name":"$skip","description":"The records to skip","default":0,"required":false,"type":"integer","in":"query"}],"addedParameters":{"query":{"$filter":true,"$select":true,"$sort":true,"$limit":true,"$rawQuery":true,"$skip":true}}}},"/v1/organizations(?:/([^/]+?))/runs/storage-stats":{"get":{"tags":["Runs"],"summary":"Retrieves the storage statistics for a run","description":"","responses":{"200":{"description":"The storage stats"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/runs/stats":{"get":{"tags":["Runs"],"summary":"Retrieves the statistics for a run","description":"","responses":{"200":{"description":"Gets the run statistics for the current date"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/runs/stats/{targetDate}":{"get":{"tags":["Runs"],"summary":"Retrieves the statistics for a run","description":"","responses":{"200":{"description":"Gets the run statistics for a specific target date"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"targetDate","in":"path","type":"string","required":true}]}},"/v1/organizations(?:/([^/]+?))/runs/analysis":{"get":{"tags":["Runs"],"summary":"Retrieves the statistics for a run","description":"","responses":{"200":{"description":"Gets the run analysis"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/runs/records/{recordId}":{"get":{"tags":["Runs"],"summary":"Retrieves a Runs Records","description":"","responses":{"200":{"description":"Returns the records for a run"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"recordId","in":"path","type":"string","required":true}]}},"/v1/organizations(?:/([^/]+?))/runs/{runId}":{"get":{"tags":["Runs"],"summary":"Retrieves a Run","description":"","responses":{"200":{"description":"Returns a specific Run"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"runId","description":"The unique id of the run","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"runId":true}}}},"/v1/organizations(?:/([^/]+?))/runs/{runId}/rerun":{"post":{"tags":["Runs"],"summary":"Reruns a run.","description":"","responses":{"202":{"description":"The new run"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"runId","description":"The unique id of the run","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"runId":true}}}},"/v1/organizations(?:/([^/]+?))/runs/{runId}/cancel":{"post":{"tags":["Runs"],"summary":"Cancels a run.","description":"","responses":{"204":{"description":"No Content"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"runId","description":"The unique id of the run","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"runId":true}}}},"/v1/organizations(?:/([^/]+?))/runs/{runId}/records":{"get":{"tags":["Runs"],"summary":"Retrieves a Runs Records","description":"","responses":{"200":{"description":"Returns the records for a run"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"runId","description":"The unique id of the run","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"runId":true}}},"delete":{"tags":["Runs"],"summary":"Deletes all the Run Records associated with this Run.","description":"","responses":{"200":{"description":"The result of the purge."},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"runId","description":"The unique id of the run","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"runId":true}}}},"/v1/organizations(?:/([^/]+?))/runs/{runId}/records/clean":{"post":{"tags":["Runs"],"summary":"Cleans all the Run Records associated with this Run.","description":"","responses":{"200":{"description":"The results of the clean"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"runId","description":"The unique id of the run","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"runId":true}}}},"/v1/organizations(?:/([^/]+?))/runs/{runId}/records/count":{"get":{"tags":["Runs"],"summary":"Retrieves a count of the Runs Records","description":"","responses":{"200":{"description":"Returns the total number records for a run"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"runId","description":"The unique id of the run","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"runId":true}}}},"/v1/organizations(?:/([^/]+?))/runs/{runId}/records/{recordId}":{"get":{"tags":["Runs"],"summary":"Retrieves a Runs Records","description":"","responses":{"200":{"description":"Returns the records for a run"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"recordId","in":"path","type":"string","required":true},{"name":"runId","description":"The unique id of the run","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"runId":true}}}},"/v1/organizations(?:/([^/]+?))/runs/{runId}/events":{"get":{"tags":["Runs"],"summary":"Retrieves a Runs Events","description":"","responses":{"200":{"description":"Returns the events for a run"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"runId","description":"The unique id of the run","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"runId":true}}}},"/v1/organizations(?:/([^/]+?))/runs/{runId}/events/{eventId}":{"get":{"tags":["Runs"],"summary":"Retrieves a Runs Events","description":"","responses":{"200":{"description":"Returns the Events for a run"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"eventId","in":"path","type":"string","required":true},{"name":"runId","description":"The unique id of the run","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"runId":true}}}},"/v1/organizations(?:/([^/]+?))/runs/{runId}/map":{"get":{"tags":["Runs"],"summary":"Gets a run map detailing runs run from another run","description":"","responses":{"200":{"description":"Returns the map for the run"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"runId","description":"The unique id of the run","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"runId":true}}}},"/v1/organizations(?:/([^/]+?))/steps":{"get":{"tags":["Steps"],"summary":"Gets a list of all the steps","description":"","responses":{"200":{"description":"Returns an array of Steps"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/steps/{stepId}":{"get":{"tags":["Steps"],"summary":"Gets a Step","description":"","responses":{"200":{"description":"Returns a specific step type"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"stepId","in":"path","type":"string","required":true}]}},"/v1/organizations(?:/([^/]+?))/steps/{stepId}/entities":{"get":{"tags":["Steps"],"summary":"Gets the entities for a Step","description":"","responses":{"200":{"description":"The list of available step entities"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"412":{"description":"Precondition failed"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"stepId","in":"path","type":"string","required":true}]}},"/v1/organizations(?:/([^/]+?))/steps/{stepId}/entitySchema":{"get":{"tags":["Steps"],"summary":"Gets the entities for a Step","description":"","responses":{"200":{"description":"The JSON schema that defines the entities schema"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"412":{"description":"Precondition failed"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"stepId","in":"path","type":"string","required":true}]}},"/v1/organizations(?:/([^/]+?))/steps/{stepId}/execute-source":{"post":{"tags":["Steps"],"summary":"Executes a source step and returns the values","description":"","responses":{"200":{"description":"The JSON array of results"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"412":{"description":"Precondition failed"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"stepId","in":"path","type":"string","required":true}]}},"/v1/organizations(?:/([^/]+?))/steps/{stepId}/execute-mapper":{"post":{"tags":["Steps"],"summary":"Executes a mapper step and returns the results","description":"","responses":{"200":{"description":"The JSON array of results"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"412":{"description":"Precondition failed"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"stepId","in":"path","type":"string","required":true}]}},"/v1/organizations(?:/([^/]+?))/validator/functions":{"get":{"tags":["Validator"],"summary":"Gets a list of all the steps","description":"","responses":{"200":{"description":"Returns an array of validator function definitions"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/validator/schemas":{"get":{"tags":["Validator"],"summary":"Gets a list of all the steps","description":"","responses":{"200":{"description":"Returns the json schema definitions for validators"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/validator/validate-map":{"post":{"tags":["Validator"],"summary":"Validates a validation map","description":"","responses":{"200":{"description":"Returns the result of the validation"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/validator/validate-map-output":{"post":{"tags":["Validator"],"summary":"Validates a validation map output","description":"","responses":{"200":{"description":"Returns the result of the validation"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/validator/map-output-to-object":{"post":{"tags":["Validator"],"summary":"Converts a validation map output to object","description":"","responses":{"200":{"description":"Returns the mapped output"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/validator/validate":{"post":{"tags":["Validator"],"summary":"Validates a map against an output","description":"","responses":{"200":{"description":"The validation output"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/content/whatsnew":{"get":{"tags":["Content"],"summary":"Gets whats new from webflow","description":"","responses":{"200":{"description":"Array of whats new"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/content":{"get":{"tags":["Content"],"summary":"Queries the content","description":"","responses":{"200":{"description":"A list of content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"$filter","description":"The odata formatted filter e.g. $filter=field eq value","required":false,"type":"string","in":"query"},{"name":"$select","description":"The fields to select e.g. $select=field1,field2","required":false,"type":"string","in":"query"},{"name":"$sort","description":"The sort order of records e.g. $sort=field1,-field2","required":false,"type":"string","in":"query"},{"name":"$limit","description":"The number of records to return","default":50,"required":false,"type":"integer","in":"query"},{"name":"$rawQuery","description":"A mongodb json find statement as a string. e.g. {\"field1\": 1}","required":false,"type":"string","in":"query"},{"name":"$skip","description":"The records to skip","default":0,"required":false,"type":"integer","in":"query"}],"addedParameters":{"query":{"$filter":true,"$select":true,"$sort":true,"$limit":true,"$rawQuery":true,"$skip":true}}}},"/v1/organizations(?:/([^/]+?))/content/{contentId}":{"get":{"tags":["Content"],"summary":"Gets the content by ID","description":"","responses":{"200":{"description":"The content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"contentId","in":"path","type":"string","required":true}]}},"/v1/organizations(?:/([^/]+?))/eventlogs":{"get":{"tags":["Event Logs"],"summary":"Queries the event log","description":"","responses":{"200":{"description":"A list of events"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"$filter","description":"The odata formatted filter e.g. $filter=field eq value","required":false,"type":"string","in":"query"},{"name":"$select","description":"The fields to select e.g. $select=field1,field2","required":false,"type":"string","in":"query"},{"name":"$sort","description":"The sort order of records e.g. $sort=field1,-field2","required":false,"type":"string","in":"query"},{"name":"$limit","description":"The number of records to return","default":50,"required":false,"type":"integer","in":"query"},{"name":"$rawQuery","description":"A mongodb json find statement as a string. e.g. {\"field1\": 1}","required":false,"type":"string","in":"query"},{"name":"$skip","description":"The records to skip","default":0,"required":false,"type":"integer","in":"query"}],"addedParameters":{"query":{"$filter":true,"$select":true,"$sort":true,"$limit":true,"$rawQuery":true,"$skip":true}}}},"/v1/organizations(?:/([^/]+?))/eventlogs/{eventId}":{"get":{"tags":["Event Logs"],"summary":"Gets the event by ID","description":"","responses":{"200":{"description":"The event"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"eventId","in":"path","type":"string","required":true}]}},"/v1/organizations(?:/([^/]+?))/buffers/storage-stats":{"get":{"tags":["Buffers"],"summary":"Retrieves a Buffers storage stats","description":"","responses":{"200":{"description":"The buffer storage stats"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/buffers/query":{"post":{"tags":["Buffers"],"summary":"Returns the result of a buffer sql query","description":"","responses":{"200":{"description":"The results of a buffer sql query"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/buffers/generate-aggregation-pipeline":{"post":{"tags":["Buffers"],"summary":"Returns the result of a buffer noql query","description":"","responses":{"200":{"description":"The generated aggregation pipeline of a buffer noql query"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/buffers/optimisation-context":{"post":{"tags":["Buffers"],"summary":"Builds optimisation context for a buffer NoQL query or aggregation pipeline","description":"","responses":{"200":{"description":"Context pack for AI NoQL/pipeline optimisation (collections, sizes, indexes, compiled pipelines)"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/buffers/validate-query":{"post":{"tags":["Buffers"],"summary":"Returns validated aggregate","description":"","responses":{"200":{"description":"The parses and validates a sql query"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/buffers/{bufferId}/stats":{"get":{"tags":["Buffers"],"summary":"Retrieves the buffer stats","description":"","responses":{"200":{"description":"The buffer stats"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"bufferId","description":"The unique name of the Buffer","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"bufferId":true}}}},"/v1/organizations(?:/([^/]+?))/buffers/{bufferId}/purge":{"post":{"tags":["Buffers"],"summary":"Purges the buffer","description":"","responses":{"204":{"description":"No content"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"bufferId","description":"The unique name of the Buffer","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"bufferId":true}}}},"/v1/organizations(?:/([^/]+?))/buffers/{bufferId}/values":{"post":{"tags":["Buffers"],"summary":"Loads values into the Buffer","description":"","responses":{"204":{"description":"No content"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"412":{"description":"Precondition failed"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"bufferId","description":"The unique name of the Buffer","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"bufferId":true}}},"get":{"tags":["Buffers"],"summary":"Retrieves a Buffers Flush Logs","description":"","responses":{"200":{"description":"Returns the flush logs for a run"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"bufferId","description":"The unique name of the Buffer","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"bufferId":true}}},"put":{"tags":["Buffers"],"summary":"Creates a Buffer Value","description":"","responses":{"201":{"description":"The created buffer value"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"bufferId","description":"The unique name of the Buffer","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"bufferId":true}}}},"/v1/organizations(?:/([^/]+?))/buffers/{bufferId}/recalcsize":{"post":{"tags":["Buffers"],"summary":"Forces a recalculation of the Buffer size","description":"","responses":{"200":{"description":"The correct size of the Buffer."},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"bufferId","description":"The unique name of the Buffer","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"bufferId":true}}}},"/v1/organizations(?:/([^/]+?))/buffers/{bufferId}/restore":{"post":{"tags":["Buffers"],"summary":"Restores the Buffers previous entries","description":"","responses":{"200":{"description":"The number restored"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"bufferId","description":"The unique name of the Buffer","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"bufferId":true}}}},"/v1/organizations(?:/([^/]+?))/buffers/{bufferId}/generateSchema":{"post":{"tags":["Buffers"],"summary":"Generates a buffer schema","description":"","responses":{"200":{"description":"The generated Schema"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"bufferId","description":"The unique name of the Buffer","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"bufferId":true}}}},"/v1/organizations(?:/([^/]+?))/buffers/{bufferId}/schema":{"put":{"tags":["Buffers"],"summary":"Updates a buffer schema","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"bufferId","description":"The unique name of the Buffer","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"bufferId":true}}}},"/v1/organizations(?:/([^/]+?))/buffers/{bufferId}/values/aggregate":{"post":{"tags":["Buffers"],"summary":"Queries the buffer values using a mongodb aggregate pipeline","description":"","responses":{"200":{"description":"The result of the aggregation query"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"bufferId","description":"The unique name of the Buffer","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"bufferId":true}}}},"/v1/organizations(?:/([^/]+?))/buffers/{bufferId}/values/count":{"get":{"tags":["Buffers"],"summary":"Retrieves a Count of Values Matching Query","description":"","responses":{"200":{"description":"Returns the number of results in query"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"bufferId","description":"The unique name of the Buffer","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"bufferId":true}}}},"/v1/organizations(?:/([^/]+?))/buffers/{bufferId}/values/{id}":{"get":{"tags":["Buffers"],"summary":"Retrieves a Buffer Value","description":"","responses":{"200":{"description":"The buffer value for the provided id"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"id","in":"path","type":"string","required":true},{"name":"bufferId","description":"The unique name of the Buffer","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"bufferId":true}}},"put":{"tags":["Buffers"],"summary":"Updates a Buffer Value","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"id","in":"path","type":"string","required":true},{"name":"bufferId","description":"The unique name of the Buffer","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"bufferId":true}}},"delete":{"tags":["Buffers"],"summary":"Deletes a Buffer Value","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"id","in":"path","type":"string","required":true},{"name":"bufferId","description":"The unique name of the Buffer","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"bufferId":true}}}},"/v1/organizations(?:/([^/]+?))/buffers/{bufferId}/versions":{"get":{"tags":["Buffers"],"summary":"Queries a Buffers Versions","description":"","responses":{"200":{"description":"An array of buffer versions"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"$filter","description":"The odata formatted filter e.g. $filter=field eq value","required":false,"type":"string","in":"query"},{"name":"$select","description":"The fields to select e.g. $select=field1,field2","required":false,"type":"string","in":"query"},{"name":"$sort","description":"The sort order of records e.g. $sort=field1,-field2","required":false,"type":"string","in":"query"},{"name":"$limit","description":"The number of records to return","default":50,"required":false,"type":"integer","in":"query"},{"name":"$rawQuery","description":"A mongodb json find statement as a string. e.g. {\"field1\": 1}","required":false,"type":"string","in":"query"},{"name":"$skip","description":"The records to skip","default":0,"required":false,"type":"integer","in":"query"},{"name":"bufferId","description":"The unique name of the Buffer","required":true,"type":"string","in":"path"}],"addedParameters":{"query":{"$filter":true,"$select":true,"$sort":true,"$limit":true,"$rawQuery":true,"$skip":true},"path":{"bufferId":true}}},"post":{"tags":["Buffers"],"summary":"Commits a new version of a Buffer","description":"","responses":{"201":{"description":"Returns a response from the buffer version commit"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"$filter","description":"The odata formatted filter e.g. $filter=field eq value","required":false,"type":"string","in":"query"},{"name":"$select","description":"The fields to select e.g. $select=field1,field2","required":false,"type":"string","in":"query"},{"name":"$sort","description":"The sort order of records e.g. $sort=field1,-field2","required":false,"type":"string","in":"query"},{"name":"$limit","description":"The number of records to return","default":50,"required":false,"type":"integer","in":"query"},{"name":"$rawQuery","description":"A mongodb json find statement as a string. e.g. {\"field1\": 1}","required":false,"type":"string","in":"query"},{"name":"$skip","description":"The records to skip","default":0,"required":false,"type":"integer","in":"query"},{"name":"bufferId","description":"The unique name of the Buffer","required":true,"type":"string","in":"path"}],"addedParameters":{"query":{"$filter":true,"$select":true,"$sort":true,"$limit":true,"$rawQuery":true,"$skip":true},"path":{"bufferId":true}}}},"/v1/organizations(?:/([^/]+?))/buffers/{bufferId}/versions/{versionId}":{"get":{"tags":["Buffers"],"summary":"Returns a Buffer History entity","description":"","responses":{"200":{"description":"A buffer version"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"versionId","in":"path","type":"string","required":true},{"name":"$filter","description":"The odata formatted filter e.g. $filter=field eq value","required":false,"type":"string","in":"query"},{"name":"$select","description":"The fields to select e.g. $select=field1,field2","required":false,"type":"string","in":"query"},{"name":"$sort","description":"The sort order of records e.g. $sort=field1,-field2","required":false,"type":"string","in":"query"},{"name":"$limit","description":"The number of records to return","default":50,"required":false,"type":"integer","in":"query"},{"name":"$rawQuery","description":"A mongodb json find statement as a string. e.g. {\"field1\": 1}","required":false,"type":"string","in":"query"},{"name":"$skip","description":"The records to skip","default":0,"required":false,"type":"integer","in":"query"},{"name":"bufferId","description":"The unique name of the Buffer","required":true,"type":"string","in":"path"}],"addedParameters":{"query":{"$filter":true,"$select":true,"$sort":true,"$limit":true,"$rawQuery":true,"$skip":true},"path":{"bufferId":true}}}},"/v1/organizations(?:/([^/]+?))/buffers/{bufferId}/versions/{versionId}/checkout":{"post":{"tags":["Buffers"],"summary":"Checks out a version of a Buffer","description":"","responses":{"204":{"description":"Returns a response from the buffer version checkout"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"versionId","in":"path","type":"string","required":true},{"name":"$filter","description":"The odata formatted filter e.g. $filter=field eq value","required":false,"type":"string","in":"query"},{"name":"$select","description":"The fields to select e.g. $select=field1,field2","required":false,"type":"string","in":"query"},{"name":"$sort","description":"The sort order of records e.g. $sort=field1,-field2","required":false,"type":"string","in":"query"},{"name":"$limit","description":"The number of records to return","default":50,"required":false,"type":"integer","in":"query"},{"name":"$rawQuery","description":"A mongodb json find statement as a string. e.g. {\"field1\": 1}","required":false,"type":"string","in":"query"},{"name":"$skip","description":"The records to skip","default":0,"required":false,"type":"integer","in":"query"},{"name":"bufferId","description":"The unique name of the Buffer","required":true,"type":"string","in":"path"}],"addedParameters":{"query":{"$filter":true,"$select":true,"$sort":true,"$limit":true,"$rawQuery":true,"$skip":true},"path":{"bufferId":true}}}},"/v1/organizations(?:/([^/]+?))/buffers/{bufferId}/export":{"get":{"tags":["Buffers"],"summary":"Export a Buffer","description":"","responses":{"200":{"description":"The exported Buffer"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"bufferId","description":"The unique name of the Buffer","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"bufferId":true}}}},"/v1/organizations(?:/([^/]+?))/buffers/{bufferId}/indexes":{"get":{"tags":["Buffers"],"summary":"Get buffer indexes","description":"","responses":{"200":{"description":"Buffer indexes"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"bufferId","description":"The unique name of the Buffer","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"bufferId":true}}},"post":{"tags":["Buffers"],"summary":"Create new buffer index","description":"","responses":{"200":{"description":"No content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"bufferId","description":"The unique name of the Buffer","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"bufferId":true}}}},"/v1/organizations(?:/([^/]+?))/buffers/{bufferId}/indexes/{indexId}":{"delete":{"tags":["Buffers"],"summary":"Deletes a buffer index Value","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"indexId","in":"path","type":"string","required":true},{"name":"bufferId","description":"The unique name of the Buffer","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"bufferId":true}}}},"/v1/organizations(?:/([^/]+?))/buffers/materializeViews":{"post":{"tags":["Buffers"],"summary":"Materializes one or more materialized views","description":"","responses":{"200":{"description":"Results of materialized view execution"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/buffers":{"get":{"tags":["Buffers"],"summary":"Queries the Buffers","description":"","responses":{"200":{"description":"Returns an array of Buffers"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"$filter","description":"The odata formatted filter e.g. $filter=field eq value","required":false,"type":"string","in":"query"},{"name":"$select","description":"The fields to select e.g. $select=field1,field2","required":false,"type":"string","in":"query"},{"name":"$sort","description":"The sort order of records e.g. $sort=field1,-field2","required":false,"type":"string","in":"query"},{"name":"$limit","description":"The number of records to return","default":50,"required":false,"type":"integer","in":"query"},{"name":"$rawQuery","description":"A mongodb json find statement as a string. e.g. {\"field1\": 1}","required":false,"type":"string","in":"query"},{"name":"$skip","description":"The records to skip","default":0,"required":false,"type":"integer","in":"query"}],"addedParameters":{"query":{"$filter":true,"$select":true,"$sort":true,"$limit":true,"$rawQuery":true,"$skip":true}}},"post":{"tags":["Buffers"],"summary":"Creates a Buffer","description":"","responses":{"201":{"description":"Returns the created Buffer"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"409":{"description":"Conflict, item exists"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/buffers/{bufferId}":{"get":{"tags":["Buffers"],"summary":"Retrieves a Buffer","description":"","responses":{"200":{"description":"Returns a Buffer"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"bufferId","description":"The unique name of the Buffer","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"bufferId":true}}},"put":{"tags":["Buffers"],"summary":"Updates a Buffer","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"bufferId","description":"The unique name of the Buffer","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"bufferId":true}}},"delete":{"tags":["Buffers"],"summary":"Deletes a Buffer","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"bufferId","description":"The unique name of the Buffer","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"bufferId":true}}},"patch":{"tags":["Buffers"],"summary":"Patches a Buffer given the JSON Patch","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"bufferId","description":"The unique name of the Buffer","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"bufferId":true}}},"merge":{"tags":["Buffers"],"summary":"Merges the object on the body with the Buffer","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"bufferId","description":"The unique name of the Buffer","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"bufferId":true}}}},"/v1/organizations(?:/([^/]+?))/datastores/{dataStoreId}/sync":{"post":{"tags":["DataStores"],"summary":"Syncs the data store to retrieve indexes, schema and collection info","description":"","responses":{"200":{"description":"The synced data store"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"dataStoreId","description":"The unique name of the DataStore","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"dataStoreId":true}}}},"/v1/organizations(?:/([^/]+?))/datastores/test-connection":{"post":{"tags":["DataStores"],"summary":"Tests the connection to ensure it is valid","description":"","responses":{"200":{"description":"The result of the test"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/datastores/{dataStoreId}/test-connection":{"get":{"tags":["DataStores"],"summary":"Tests the mongodb connection to ensure it is valid","description":"","responses":{"200":{"description":"The result of the test"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"dataStoreId","description":"The unique name of the DataStore","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"dataStoreId":true}}}},"/v1/organizations(?:/([^/]+?))/datastores/validate-query":{"post":{"tags":["Buffers"],"summary":"Returns validated aggregate","description":"","responses":{"200":{"description":"The parses and validates a sql query"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/datastores/{dataStoreId}/collections":{"post":{"tags":["DataStores"],"summary":"Saves data store collections","description":"","responses":{"201":{"description":"The saved data store collection"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"dataStoreId","description":"The unique name of the DataStore","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"dataStoreId":true}}},"get":{"tags":["DataStores"],"summary":"Searches for data store collections","description":"","responses":{"200":{"description":"The DataStore collections"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"dataStoreId","description":"The unique name of the DataStore","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"dataStoreId":true}}}},"/v1/organizations(?:/([^/]+?))/datastores/{dataStoreId}/collections/{collectionIdentifier}":{"get":{"tags":["DataStores"],"summary":"Gets a data store collection","description":"","responses":{"200":{"description":"The DataStore collection"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"collectionIdentifier","in":"path","type":"string","required":true},{"name":"dataStoreId","description":"The unique name of the DataStore","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"dataStoreId":true}}},"put":{"tags":["DataStores"],"summary":"Updates a data store collection","description":"","responses":{"204":{"description":"indicates a successful update"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"collectionIdentifier","in":"path","type":"string","required":true},{"name":"dataStoreId","description":"The unique name of the DataStore","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"dataStoreId":true}}},"patch":{"tags":["DataStores"],"summary":"Patches a DataStore collection given the JSON Patch","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"collectionIdentifier","in":"path","type":"string","required":true},{"name":"dataStoreId","description":"The unique name of the DataStore","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"dataStoreId":true}}},"merge":{"tags":["DataStores"],"summary":"Merges the object on the body with the DataStore Collection","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"collectionIdentifier","in":"path","type":"string","required":true},{"name":"dataStoreId","description":"The unique name of the DataStore","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"dataStoreId":true}}},"delete":{"tags":["DataStores"],"summary":"Updates a data store collection","description":"","responses":{"204":{"description":"indicates a successful update"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"collectionIdentifier","in":"path","type":"string","required":true},{"name":"dataStoreId","description":"The unique name of the DataStore","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"dataStoreId":true}}}},"/v1/organizations(?:/([^/]+?))/datastores/{dataStoreId}/collections/{collectionIdentifier}/soft-purge":{"delete":{"tags":["DataStores"],"summary":"Deletes all documents in the collection without dropping the collection","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"collectionIdentifier","in":"path","type":"string","required":true},{"name":"dataStoreId","description":"The unique name of the DataStore","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"dataStoreId":true}}}},"/v1/organizations(?:/([^/]+?))/datastores/{dataStoreId}/collections/{collectionIdentifier}/stats":{"get":{"tags":["DataStores"],"summary":"Gets the stats of a DataStore collection","description":"","responses":{"200":{"description":"The document representing the stats for the collection"},"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"collectionIdentifier","in":"path","type":"string","required":true},{"name":"dataStoreId","description":"The unique name of the DataStore","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"dataStoreId":true}}}},"/v1/organizations(?:/([^/]+?))/datastores/{dataStoreId}/collections/{collectionIdentifier}/values":{"post":{"tags":["DataStores"],"summary":"Saves data store values","description":"","responses":{"201":{"description":"The saved data store value"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"collectionIdentifier","in":"path","type":"string","required":true},{"name":"dataStoreId","description":"The unique name of the DataStore","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"dataStoreId":true}}},"delete":{"tags":["DataStores"],"summary":"Deletes data store values based on the filter","description":"","responses":{"204":{"description":"Indicates that the delete was successful"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"collectionIdentifier","in":"path","type":"string","required":true},{"name":"dataStoreId","description":"The unique name of the DataStore","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"dataStoreId":true}}},"get":{"tags":["DataStores"],"summary":"Queries the data store values","description":"","responses":{"200":{"description":"The result of the query"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"collectionIdentifier","in":"path","type":"string","required":true},{"name":"dataStoreId","description":"The unique name of the DataStore","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"dataStoreId":true}}}},"/v1/organizations(?:/([^/]+?))/datastores/{dataStoreId}/collections/{collectionIdentifier}/values/raw":{"put":{"tags":["DataStores"],"summary":"Updates a data store value using a raw filter","description":"","responses":{"204":{"description":"The updated data store value result"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"collectionIdentifier","in":"path","type":"string","required":true},{"name":"dataStoreId","description":"The unique name of the DataStore","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"dataStoreId":true}}}},"/v1/organizations(?:/([^/]+?))/datastores/{dataStoreId}/collections/{collectionIdentifier}/values/{valueId}":{"put":{"tags":["DataStores"],"summary":"Updates a data store value","description":"","responses":{"204":{"description":"The updated data store value result"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"collectionIdentifier","in":"path","type":"string","required":true},{"name":"valueId","in":"path","type":"string","required":true},{"name":"dataStoreId","description":"The unique name of the DataStore","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"dataStoreId":true}}},"delete":{"tags":["DataStores"],"summary":"Deletes a data store value","description":"","responses":{"204":{"description":"Indicates that the delete was successful"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"collectionIdentifier","in":"path","type":"string","required":true},{"name":"valueId","in":"path","type":"string","required":true},{"name":"dataStoreId","description":"The unique name of the DataStore","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"dataStoreId":true}}},"get":{"tags":["DataStores"],"summary":"Gets a data store value","description":"","responses":{"200":{"description":"The result"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"collectionIdentifier","in":"path","type":"string","required":true},{"name":"valueId","in":"path","type":"string","required":true},{"name":"dataStoreId","description":"The unique name of the DataStore","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"dataStoreId":true}}}},"/v1/organizations(?:/([^/]+?))/datastores/{dataStoreId}/collections/{collectionIdentifier}/values/count":{"get":{"tags":["DataStores"],"summary":"Returns the count of the number of documents that match the filter","description":"","responses":{"200":{"description":"The number of documents"},"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"collectionIdentifier","in":"path","type":"string","required":true},{"name":"dataStoreId","description":"The unique name of the DataStore","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"dataStoreId":true}}}},"/v1/organizations(?:/([^/]+?))/datastores/{dataStoreId}/collections/{collectionIdentifier}/values/aggregate":{"post":{"tags":["DataStores"],"summary":"Queries the data store values using a mongodb aggregate","description":"","responses":{"200":{"description":"The result of the query"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"collectionIdentifier","in":"path","type":"string","required":true},{"name":"dataStoreId","description":"The unique name of the DataStore","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"dataStoreId":true}}}},"/v1/organizations(?:/([^/]+?))/datastores/{dataStoreId}/values/noql":{"post":{"tags":["DataStores"],"summary":"Queries the data store values using noql","description":"","responses":{"200":{"description":"The result of the query"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"dataStoreId","description":"The unique name of the DataStore","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"dataStoreId":true}}}},"/v1/organizations(?:/([^/]+?))/datastores/{dataStoreId}/values/generate-aggregation-pipeline":{"post":{"tags":["DataStores"],"summary":"Queries the data store values using noql","description":"","responses":{"200":{"description":"The result of the query"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"dataStoreId","description":"The unique name of the DataStore","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"dataStoreId":true}}}},"/v1/organizations(?:/([^/]+?))/datastores":{"get":{"tags":["DataStores"],"summary":"Queries the DataStores","description":"","responses":{"200":{"description":"Returns an array of DataStores"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"$filter","description":"The odata formatted filter e.g. $filter=field eq value","required":false,"type":"string","in":"query"},{"name":"$select","description":"The fields to select e.g. $select=field1,field2","required":false,"type":"string","in":"query"},{"name":"$sort","description":"The sort order of records e.g. $sort=field1,-field2","required":false,"type":"string","in":"query"},{"name":"$limit","description":"The number of records to return","default":50,"required":false,"type":"integer","in":"query"},{"name":"$rawQuery","description":"A mongodb json find statement as a string. e.g. {\"field1\": 1}","required":false,"type":"string","in":"query"},{"name":"$skip","description":"The records to skip","default":0,"required":false,"type":"integer","in":"query"}],"addedParameters":{"query":{"$filter":true,"$select":true,"$sort":true,"$limit":true,"$rawQuery":true,"$skip":true}}},"post":{"tags":["DataStores"],"summary":"Creates a DataStore","description":"","responses":{"201":{"description":"Returns the created DataStore"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"409":{"description":"Conflict, item exists"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/datastores/{dataStoreId}":{"get":{"tags":["DataStores"],"summary":"Retrieves a DataStore","description":"","responses":{"200":{"description":"Returns a DataStore"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"dataStoreId","description":"The unique name of the DataStore","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"dataStoreId":true}}},"put":{"tags":["DataStores"],"summary":"Updates a DataStore","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"dataStoreId","description":"The unique name of the DataStore","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"dataStoreId":true}}},"delete":{"tags":["DataStores"],"summary":"Deletes a DataStore","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"dataStoreId","description":"The unique name of the DataStore","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"dataStoreId":true}}},"patch":{"tags":["DataStores"],"summary":"Patches a DataStore given the JSON Patch","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"dataStoreId","description":"The unique name of the DataStore","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"dataStoreId":true}}},"merge":{"tags":["DataStores"],"summary":"Merges the object on the body with the DataStore","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"dataStoreId","description":"The unique name of the DataStore","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"dataStoreId":true}}}},"/v1/organizations(?:/([^/]+?))/relays/v3":{"post":{"tags":["Relays"],"summary":"Generates a new v3 relay.","description":"","responses":{"200":{"description":"The v3 Relay"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"408":{"description":"Request timed out"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/relays/{relayId}/rekey":{"post":{"tags":["Relays"],"summary":"Generates a new key pair for a relay.","description":"","responses":{"200":{"description":"The rekeyed Relay"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"408":{"description":"Request timed out"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"relayId","description":"The unique name of the Relay","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"relayId":true}}}},"/v1/organizations(?:/([^/]+?))/relays/{relayId}/exampleConfig":{"get":{"tags":["Relays"],"summary":"Generates a new key pair for a relay.","description":"","responses":{"200":{"description":"The rekeyed Relay"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"408":{"description":"Request timed out"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"relayId","description":"The unique name of the Relay","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"relayId":true}}}},"/v1/organizations(?:/([^/]+?))/relays/{relayId}/test":{"get":{"tags":["Relays"],"summary":"Tests that a relay is active.","description":"","responses":{"200":{"description":"The result of the Relay Test"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"408":{"description":"Request timed out"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"relayId","description":"The unique name of the Relay","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"relayId":true}}}},"/v1/organizations(?:/([^/]+?))/relays/{relayId}/test/sync":{"get":{"tags":["Relays"],"summary":"Tests an sync relay","description":"","responses":{"200":{"description":"The result of the Relay Test"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"408":{"description":"Request timed out"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"relayId","description":"The unique name of the Relay","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"relayId":true}}}},"/v1/organizations(?:/([^/]+?))/relays/{relayId}/test/async":{"get":{"tags":["Relays"],"summary":"Tests an async relay","description":"","responses":{"200":{"description":"The result of the Relay Test"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"408":{"description":"Request timed out"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"relayId","description":"The unique name of the Relay","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"relayId":true}}}},"/v1/organizations(?:/([^/]+?))/relays/connectionTypes/{connectionType}":{"get":{"tags":["Relays"],"summary":"Gets a list of relays for a connection type.","description":"","responses":{"200":{"description":"The relays available for the connection type"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"connectionType","in":"path","type":"string","required":true}]}},"/v1/organizations(?:/([^/]+?))/relays/{relayId}/restart":{"post":{"tags":["Relays"],"summary":"Restarts a Relay.","description":"","responses":{"200":{"description":"The result of the Relay Restart"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"relayId","description":"The unique name of the Relay","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"relayId":true}}}},"/v1/organizations(?:/([^/]+?))/relays/{relayId}/versions":{"get":{"tags":["Relays"],"summary":"Queries the Relay History","description":"","responses":{"200":{"description":"Returns an array of relay history"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"$filter","description":"The odata formatted filter e.g. $filter=field eq value","required":false,"type":"string","in":"query"},{"name":"$select","description":"The fields to select e.g. $select=field1,field2","required":false,"type":"string","in":"query"},{"name":"$sort","description":"The sort order of records e.g. $sort=field1,-field2","required":false,"type":"string","in":"query"},{"name":"$limit","description":"The number of records to return","default":50,"required":false,"type":"integer","in":"query"},{"name":"$rawQuery","description":"A mongodb json find statement as a string. e.g. {\"field1\": 1}","required":false,"type":"string","in":"query"},{"name":"$skip","description":"The records to skip","default":0,"required":false,"type":"integer","in":"query"},{"name":"relayId","description":"The unique name of the Relay","required":true,"type":"string","in":"path"}],"addedParameters":{"query":{"$filter":true,"$select":true,"$sort":true,"$limit":true,"$rawQuery":true,"$skip":true},"path":{"relayId":true}}},"post":{"tags":["Relays"],"summary":"Commits a new version of the Relay","description":"","responses":{"204":{"description":"The version commit response"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"$filter","description":"The odata formatted filter e.g. $filter=field eq value","required":false,"type":"string","in":"query"},{"name":"$select","description":"The fields to select e.g. $select=field1,field2","required":false,"type":"string","in":"query"},{"name":"$sort","description":"The sort order of records e.g. $sort=field1,-field2","required":false,"type":"string","in":"query"},{"name":"$limit","description":"The number of records to return","default":50,"required":false,"type":"integer","in":"query"},{"name":"$rawQuery","description":"A mongodb json find statement as a string. e.g. {\"field1\": 1}","required":false,"type":"string","in":"query"},{"name":"$skip","description":"The records to skip","default":0,"required":false,"type":"integer","in":"query"},{"name":"relayId","description":"The unique name of the Relay","required":true,"type":"string","in":"path"}],"addedParameters":{"query":{"$filter":true,"$select":true,"$sort":true,"$limit":true,"$rawQuery":true,"$skip":true},"path":{"relayId":true}}}},"/v1/organizations(?:/([^/]+?))/relays/{relayId}/versions/{versionId}":{"get":{"tags":["Relays"],"summary":"Returns a version of a Relay","description":"","responses":{"200":{"description":"A version of a Relay"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"versionId","in":"path","type":"string","required":true},{"name":"$filter","description":"The odata formatted filter e.g. $filter=field eq value","required":false,"type":"string","in":"query"},{"name":"$select","description":"The fields to select e.g. $select=field1,field2","required":false,"type":"string","in":"query"},{"name":"$sort","description":"The sort order of records e.g. $sort=field1,-field2","required":false,"type":"string","in":"query"},{"name":"$limit","description":"The number of records to return","default":50,"required":false,"type":"integer","in":"query"},{"name":"$rawQuery","description":"A mongodb json find statement as a string. e.g. {\"field1\": 1}","required":false,"type":"string","in":"query"},{"name":"$skip","description":"The records to skip","default":0,"required":false,"type":"integer","in":"query"},{"name":"relayId","description":"The unique name of the Relay","required":true,"type":"string","in":"path"}],"addedParameters":{"query":{"$filter":true,"$select":true,"$sort":true,"$limit":true,"$rawQuery":true,"$skip":true},"path":{"relayId":true}}}},"/v1/organizations(?:/([^/]+?))/relays/{relayId}/versions/{versionId}/checkout":{"post":{"tags":["Relays"],"summary":"Checkout an existing version of the relay","description":"","responses":{"204":{"description":"The version checkout response"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"versionId","in":"path","type":"string","required":true},{"name":"$filter","description":"The odata formatted filter e.g. $filter=field eq value","required":false,"type":"string","in":"query"},{"name":"$select","description":"The fields to select e.g. $select=field1,field2","required":false,"type":"string","in":"query"},{"name":"$sort","description":"The sort order of records e.g. $sort=field1,-field2","required":false,"type":"string","in":"query"},{"name":"$limit","description":"The number of records to return","default":50,"required":false,"type":"integer","in":"query"},{"name":"$rawQuery","description":"A mongodb json find statement as a string. e.g. {\"field1\": 1}","required":false,"type":"string","in":"query"},{"name":"$skip","description":"The records to skip","default":0,"required":false,"type":"integer","in":"query"},{"name":"relayId","description":"The unique name of the Relay","required":true,"type":"string","in":"path"}],"addedParameters":{"query":{"$filter":true,"$select":true,"$sort":true,"$limit":true,"$rawQuery":true,"$skip":true},"path":{"relayId":true}}}},"/v1/organizations(?:/([^/]+?))/relays/{relayId}/export":{"get":{"tags":["Relays"],"summary":"Export a Relay","description":"","responses":{"200":{"description":"The exported Relay"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"relayId","description":"The unique name of the Relay","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"relayId":true}}}},"/v1/organizations(?:/([^/]+?))/relays/{relayId}/queue-stats":{"get":{"tags":["Relays"],"summary":"Retrieves a relays queue stats","description":"","responses":{"200":{"description":"The relays queue stats"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"relayId","description":"The unique name of the Relay","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"relayId":true}}}},"/v1/organizations(?:/([^/]+?))/relays/{relayId}/clear-queue":{"post":{"tags":["Relays"],"summary":"Clears a relays queue","description":"","responses":{"204":{"description":"No response"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"relayId","description":"The unique name of the Relay","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"relayId":true}}}},"/v1/organizations(?:/([^/]+?))/relays/{relayId}/download-logs":{"get":{"tags":["Relays"],"summary":"Fetches logs from a relay","description":"","responses":{"200":{"description":"No response"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"relayId","description":"The unique name of the Relay","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"relayId":true}}}},"/v1/organizations(?:/([^/]+?))/relays":{"get":{"tags":["Relays"],"summary":"Queries the Relays","description":"","responses":{"200":{"description":"Returns an array of Relays"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"$filter","description":"The odata formatted filter e.g. $filter=field eq value","required":false,"type":"string","in":"query"},{"name":"$select","description":"The fields to select e.g. $select=field1,field2","required":false,"type":"string","in":"query"},{"name":"$sort","description":"The sort order of records e.g. $sort=field1,-field2","required":false,"type":"string","in":"query"},{"name":"$limit","description":"The number of records to return","default":50,"required":false,"type":"integer","in":"query"},{"name":"$rawQuery","description":"A mongodb json find statement as a string. e.g. {\"field1\": 1}","required":false,"type":"string","in":"query"},{"name":"$skip","description":"The records to skip","default":0,"required":false,"type":"integer","in":"query"}],"addedParameters":{"query":{"$filter":true,"$select":true,"$sort":true,"$limit":true,"$rawQuery":true,"$skip":true}}},"post":{"tags":["Relays"],"summary":"Creates a Relay","description":"","responses":{"201":{"description":"Returns the created Relay"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"409":{"description":"Conflict, item exists"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/relays/{relayId}":{"get":{"tags":["Relays"],"summary":"Retrieves a Relay","description":"","responses":{"200":{"description":"Returns a Relay"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"relayId","description":"The unique name of the Relay","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"relayId":true}}},"put":{"tags":["Relays"],"summary":"Updates a Relay","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"relayId","description":"The unique name of the Relay","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"relayId":true}}},"delete":{"tags":["Relays"],"summary":"Deletes a Relay","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"relayId","description":"The unique name of the Relay","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"relayId":true}}},"patch":{"tags":["Relays"],"summary":"Patches a Relay given the JSON Patch","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"relayId","description":"The unique name of the Relay","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"relayId":true}}},"merge":{"tags":["Relays"],"summary":"Merges the object on the body with the Relay","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"relayId","description":"The unique name of the Relay","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"relayId":true}}}},"/v1/organizations(?:/([^/]+?))/comments":{"get":{"tags":["Comments"],"summary":"Queries the Comments","description":"","responses":{"200":{"description":"Returns an array of Comments"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"$filter","description":"The odata formatted filter e.g. $filter=field eq value","required":false,"type":"string","in":"query"},{"name":"$select","description":"The fields to select e.g. $select=field1,field2","required":false,"type":"string","in":"query"},{"name":"$sort","description":"The sort order of records e.g. $sort=field1,-field2","required":false,"type":"string","in":"query"},{"name":"$limit","description":"The number of records to return","default":50,"required":false,"type":"integer","in":"query"},{"name":"$rawQuery","description":"A mongodb json find statement as a string. e.g. {\"field1\": 1}","required":false,"type":"string","in":"query"},{"name":"$skip","description":"The records to skip","default":0,"required":false,"type":"integer","in":"query"}],"addedParameters":{"query":{"$filter":true,"$select":true,"$sort":true,"$limit":true,"$rawQuery":true,"$skip":true}}},"post":{"tags":["Comments"],"summary":"Creates a Comments","description":"","responses":{"201":{"description":"Returns the created Comments"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"409":{"description":"Conflict, item exists"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/comments/{commentId}":{"get":{"tags":["Comments"],"summary":"Retrieves a Comments","description":"","responses":{"200":{"description":"Returns a Comments"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"commentId","description":"The unique name of the Comments","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"commentId":true}}},"put":{"tags":["Comments"],"summary":"Updates a Comments","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"commentId","description":"The unique name of the Comments","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"commentId":true}}},"delete":{"tags":["Comments"],"summary":"Deletes a Comments","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"commentId","description":"The unique name of the Comments","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"commentId":true}}},"patch":{"tags":["Comments"],"summary":"Patches a Comments given the JSON Patch","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"commentId","description":"The unique name of the Comments","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"commentId":true}}},"merge":{"tags":["Comments"],"summary":"Merges the object on the body with the Comments","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"commentId","description":"The unique name of the Comments","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"commentId":true}}}},"/v1/organizations(?:/([^/]+?))/user-files":{"get":{"tags":["UserFiles"],"summary":"Queries the UserFiles","description":"","responses":{"200":{"description":"Returns an array of UserFiles"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"$filter","description":"The odata formatted filter e.g. $filter=field eq value","required":false,"type":"string","in":"query"},{"name":"$select","description":"The fields to select e.g. $select=field1,field2","required":false,"type":"string","in":"query"},{"name":"$sort","description":"The sort order of records e.g. $sort=field1,-field2","required":false,"type":"string","in":"query"},{"name":"$limit","description":"The number of records to return","default":50,"required":false,"type":"integer","in":"query"},{"name":"$rawQuery","description":"A mongodb json find statement as a string. e.g. {\"field1\": 1}","required":false,"type":"string","in":"query"},{"name":"$skip","description":"The records to skip","default":0,"required":false,"type":"integer","in":"query"}],"addedParameters":{"query":{"$filter":true,"$select":true,"$sort":true,"$limit":true,"$rawQuery":true,"$skip":true}}},"post":{"tags":["UserFiles"],"summary":"Creates a UserFiles","description":"","responses":{"201":{"description":"Returns the created UserFiles"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"409":{"description":"Conflict, item exists"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/user-files/{userFileId}":{"get":{"tags":["UserFiles"],"summary":"Retrieves a UserFiles","description":"","responses":{"200":{"description":"Returns a UserFiles"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"userFileId","description":"The unique name of the UserFiles","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"userFileId":true}}},"put":{"tags":["UserFiles"],"summary":"Updates a UserFiles","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"userFileId","description":"The unique name of the UserFiles","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"userFileId":true}}},"delete":{"tags":["UserFiles"],"summary":"Deletes a UserFiles","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"userFileId","description":"The unique name of the UserFiles","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"userFileId":true}}},"patch":{"tags":["UserFiles"],"summary":"Patches a UserFiles given the JSON Patch","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"userFileId","description":"The unique name of the UserFiles","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"userFileId":true}}},"merge":{"tags":["UserFiles"],"summary":"Merges the object on the body with the UserFiles","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"userFileId","description":"The unique name of the UserFiles","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"userFileId":true}}}},"/v1/organizations(?:/([^/]+?))/billing":{"get":{"tags":["Billing"],"summary":"Retrieves the organizations billing details.","description":"","responses":{"200":{"description":"The current billing details"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/billing/availablePlans":{"get":{"tags":["Billing"],"summary":"Retrieves the available upgrade plans.","description":"","responses":{"200":{"description":"The available plans to upgrade to"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/billing/invoices":{"get":{"tags":["Billing"],"summary":"Retrieves a list of invoices.","description":"","responses":{"200":{"description":"The available plans to upgrade to"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/billing/overage":{"get":{"tags":["Billing"],"summary":"Retrieves the current overage.","description":"","responses":{"200":{"description":"The current overage"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/billing/card":{"post":{"tags":["Billing"],"summary":"Sets the card.","description":"","responses":{"204":{"description":"No content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]},"delete":{"tags":["Billing"],"summary":"Deletes the current card and downgrades the plan to free.","description":"","responses":{"204":{"description":"No content"},"401":{"description":"Not Authorised"},"412":{"description":"Precondition failed"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/billing/plan":{"put":{"tags":["Billing"],"summary":"Sets the plan.","description":"","responses":{"204":{"description":"No content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/billing/invoices/current":{"get":{"tags":["Billing"],"summary":"Gets the latest invoice for the current month.","description":"","responses":{"204":{"description":"No content"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/files/{fileKey}":{"get":{"tags":["Files"],"summary":"Downloads a File","description":"","responses":{"200":{"description":"The file downloaded"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"fileKey","in":"path","type":"string","required":true}]},"delete":{"tags":["Files"],"summary":"Deletes the file","description":"","responses":{"204":{"description":"The file was deleted"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"fileKey","in":"path","type":"string","required":true}]}},"/v1/organizations(?:/([^/]+?))/solutions/tree":{"get":{"tags":["Solutions"],"summary":"Gets the Solution tree","description":"","responses":{"200":{"description":"The Solution tree"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/solutions/summary":{"get":{"tags":["Solutions"],"summary":"Gets the Solution run summary","description":"","responses":{"200":{"description":"The solution summary"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/solutions/import":{"post":{"tags":["Solutions"],"summary":"Import a Solution","description":"","responses":{"201":{"description":"Returns the imported solution and its components"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/solutions/{solutionId}/related":{"get":{"tags":["Solutions"],"summary":"Gets an array of related modules for the Solution","description":"","responses":{"200":{"description":"An array of related modules"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"solutionId","description":"The unique name of the Solution","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"solutionId":true}}}},"/v1/organizations(?:/([^/]+?))/solutions/{solutionId}":{"delete":{"tags":["Solutions"],"summary":"Deletes a Solution","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"solutionId","description":"The unique name of the Solution","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"solutionId":true}}},"get":{"tags":["Solutions"],"summary":"Retrieves a Solution","description":"","responses":{"200":{"description":"Returns a Solution"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"solutionId","description":"The unique name of the Solution","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"solutionId":true}}},"put":{"tags":["Solutions"],"summary":"Updates a Solution","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"solutionId","description":"The unique name of the Solution","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"solutionId":true}}},"patch":{"tags":["Solutions"],"summary":"Patches a Solution given the JSON Patch","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"solutionId","description":"The unique name of the Solution","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"solutionId":true}}},"merge":{"tags":["Solutions"],"summary":"Merges the object on the body with the Solution","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"solutionId","description":"The unique name of the Solution","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"solutionId":true}}}},"/v1/organizations(?:/([^/]+?))/solutions/{solutionId}/export":{"get":{"tags":["Solutions"],"summary":"Export a Solution","description":"","responses":{"200":{"description":"The exported Solution"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"solutionId","description":"The unique name of the Solution","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"solutionId":true}}}},"/v1/organizations(?:/([^/]+?))/solutions/{solutionId}/versions":{"get":{"tags":["Solutions"],"summary":"Queries the Solution History","description":"","responses":{"200":{"description":"Returns an array of solution history"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"$filter","description":"The odata formatted filter e.g. $filter=field eq value","required":false,"type":"string","in":"query"},{"name":"$select","description":"The fields to select e.g. $select=field1,field2","required":false,"type":"string","in":"query"},{"name":"$sort","description":"The sort order of records e.g. $sort=field1,-field2","required":false,"type":"string","in":"query"},{"name":"$limit","description":"The number of records to return","default":50,"required":false,"type":"integer","in":"query"},{"name":"$rawQuery","description":"A mongodb json find statement as a string. e.g. {\"field1\": 1}","required":false,"type":"string","in":"query"},{"name":"$skip","description":"The records to skip","default":0,"required":false,"type":"integer","in":"query"},{"name":"solutionId","description":"The unique name of the Solution","required":true,"type":"string","in":"path"}],"addedParameters":{"query":{"$filter":true,"$select":true,"$sort":true,"$limit":true,"$rawQuery":true,"$skip":true},"path":{"solutionId":true}}},"post":{"tags":["Solutions"],"summary":"Commits a new version of the Solution","description":"","responses":{"204":{"description":"The version commit response"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"$filter","description":"The odata formatted filter e.g. $filter=field eq value","required":false,"type":"string","in":"query"},{"name":"$select","description":"The fields to select e.g. $select=field1,field2","required":false,"type":"string","in":"query"},{"name":"$sort","description":"The sort order of records e.g. $sort=field1,-field2","required":false,"type":"string","in":"query"},{"name":"$limit","description":"The number of records to return","default":50,"required":false,"type":"integer","in":"query"},{"name":"$rawQuery","description":"A mongodb json find statement as a string. e.g. {\"field1\": 1}","required":false,"type":"string","in":"query"},{"name":"$skip","description":"The records to skip","default":0,"required":false,"type":"integer","in":"query"},{"name":"solutionId","description":"The unique name of the Solution","required":true,"type":"string","in":"path"}],"addedParameters":{"query":{"$filter":true,"$select":true,"$sort":true,"$limit":true,"$rawQuery":true,"$skip":true},"path":{"solutionId":true}}}},"/v1/organizations(?:/([^/]+?))/solutions/{solutionId}/versions/{versionId}":{"get":{"tags":["Solutions"],"summary":"Returns a version of a Solution","description":"","responses":{"200":{"description":"A version of a Solution"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"versionId","in":"path","type":"string","required":true},{"name":"$filter","description":"The odata formatted filter e.g. $filter=field eq value","required":false,"type":"string","in":"query"},{"name":"$select","description":"The fields to select e.g. $select=field1,field2","required":false,"type":"string","in":"query"},{"name":"$sort","description":"The sort order of records e.g. $sort=field1,-field2","required":false,"type":"string","in":"query"},{"name":"$limit","description":"The number of records to return","default":50,"required":false,"type":"integer","in":"query"},{"name":"$rawQuery","description":"A mongodb json find statement as a string. e.g. {\"field1\": 1}","required":false,"type":"string","in":"query"},{"name":"$skip","description":"The records to skip","default":0,"required":false,"type":"integer","in":"query"},{"name":"solutionId","description":"The unique name of the Solution","required":true,"type":"string","in":"path"}],"addedParameters":{"query":{"$filter":true,"$select":true,"$sort":true,"$limit":true,"$rawQuery":true,"$skip":true},"path":{"solutionId":true}}}},"/v1/organizations(?:/([^/]+?))/solutions/{solutionId}/versions/{versionId}/checkout":{"post":{"tags":["Solutions"],"summary":"Checkout an existing version of the Solution","description":"","responses":{"204":{"description":"The version checkout response"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"versionId","in":"path","type":"string","required":true},{"name":"$filter","description":"The odata formatted filter e.g. $filter=field eq value","required":false,"type":"string","in":"query"},{"name":"$select","description":"The fields to select e.g. $select=field1,field2","required":false,"type":"string","in":"query"},{"name":"$sort","description":"The sort order of records e.g. $sort=field1,-field2","required":false,"type":"string","in":"query"},{"name":"$limit","description":"The number of records to return","default":50,"required":false,"type":"integer","in":"query"},{"name":"$rawQuery","description":"A mongodb json find statement as a string. e.g. {\"field1\": 1}","required":false,"type":"string","in":"query"},{"name":"$skip","description":"The records to skip","default":0,"required":false,"type":"integer","in":"query"},{"name":"solutionId","description":"The unique name of the Solution","required":true,"type":"string","in":"path"}],"addedParameters":{"query":{"$filter":true,"$select":true,"$sort":true,"$limit":true,"$rawQuery":true,"$skip":true},"path":{"solutionId":true}}}},"/v1/organizations(?:/([^/]+?))/solutions":{"get":{"tags":["Solutions"],"summary":"Queries the Solutions","description":"","responses":{"200":{"description":"Returns an array of Solutions"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"$filter","description":"The odata formatted filter e.g. $filter=field eq value","required":false,"type":"string","in":"query"},{"name":"$select","description":"The fields to select e.g. $select=field1,field2","required":false,"type":"string","in":"query"},{"name":"$sort","description":"The sort order of records e.g. $sort=field1,-field2","required":false,"type":"string","in":"query"},{"name":"$limit","description":"The number of records to return","default":50,"required":false,"type":"integer","in":"query"},{"name":"$rawQuery","description":"A mongodb json find statement as a string. e.g. {\"field1\": 1}","required":false,"type":"string","in":"query"},{"name":"$skip","description":"The records to skip","default":0,"required":false,"type":"integer","in":"query"}],"addedParameters":{"query":{"$filter":true,"$select":true,"$sort":true,"$limit":true,"$rawQuery":true,"$skip":true}}},"post":{"tags":["Solutions"],"summary":"Creates a Solution","description":"","responses":{"201":{"description":"Returns the created Solution"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"409":{"description":"Conflict, item exists"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/opsviews":{"get":{"tags":["OpsViews"],"summary":"Queries the Ops Views","description":"","responses":{"200":{"description":"Returns an array of Ops Views"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"$filter","description":"The odata formatted filter e.g. $filter=field eq value","required":false,"type":"string","in":"query"},{"name":"$select","description":"The fields to select e.g. $select=field1,field2","required":false,"type":"string","in":"query"},{"name":"$sort","description":"The sort order of records e.g. $sort=field1,-field2","required":false,"type":"string","in":"query"},{"name":"$limit","description":"The number of records to return","default":50,"required":false,"type":"integer","in":"query"},{"name":"$rawQuery","description":"A mongodb json find statement as a string. e.g. {\"field1\": 1}","required":false,"type":"string","in":"query"},{"name":"$skip","description":"The records to skip","default":0,"required":false,"type":"integer","in":"query"}],"addedParameters":{"query":{"$filter":true,"$select":true,"$sort":true,"$limit":true,"$rawQuery":true,"$skip":true}}},"post":{"tags":["OpsViews"],"summary":"Creates a Operations View","description":"","responses":{"201":{"description":"Returns the created Ops View"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"409":{"description":"Conflict, item exists"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/opsviews/viewsForUser":{"get":{"tags":["OpsViews"],"summary":"Queries the Ops Views","description":"","responses":{"200":{"description":"Returns an array of Ops Views"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"$filter","description":"The odata formatted filter e.g. $filter=field eq value","required":false,"type":"string","in":"query"},{"name":"$select","description":"The fields to select e.g. $select=field1,field2","required":false,"type":"string","in":"query"},{"name":"$sort","description":"The sort order of records e.g. $sort=field1,-field2","required":false,"type":"string","in":"query"},{"name":"$limit","description":"The number of records to return","default":50,"required":false,"type":"integer","in":"query"},{"name":"$rawQuery","description":"A mongodb json find statement as a string. e.g. {\"field1\": 1}","required":false,"type":"string","in":"query"},{"name":"$skip","description":"The records to skip","default":0,"required":false,"type":"integer","in":"query"}],"addedParameters":{"query":{"$filter":true,"$select":true,"$sort":true,"$limit":true,"$rawQuery":true,"$skip":true}}}},"/v1/organizations(?:/([^/]+?))/opsviews/control-definitions":{"get":{"tags":["OpsViews"],"summary":"Returns the Ops View Control Definitions","description":"","responses":{"200":{"description":"The Ops View Control Definitions"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/opsviews/ops-control-definitions":{"get":{"tags":["OpsViews"],"summary":"Returns the Ops View Control Definitions","description":"","responses":{"200":{"description":"The Ops View Control Definitions"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/opsviews/{opsViewId}":{"get":{"tags":["OpsViews"],"summary":"Retrieves a OpsView","description":"","responses":{"200":{"description":"An OpsView"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"opsViewId","description":"The unique name of the OpsView","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"opsViewId":true}}},"put":{"tags":["OpsViews"],"summary":"Updates a Operations View Info","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"opsViewId","description":"The unique name of the OpsView","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"opsViewId":true}}},"delete":{"tags":["OpsViews"],"summary":"Deletes a Operations View","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"opsViewId","description":"The unique name of the OpsView","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"opsViewId":true}}}},"/v1/organizations(?:/([^/]+?))/opsviews/{opsViewId}/users":{"put":{"tags":["OpsViews"],"summary":"Updates a Operations Views Users","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"opsViewId","description":"The unique name of the OpsView","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"opsViewId":true}}}},"/v1/organizations(?:/([^/]+?))/opsviews/{opsViewId}/userGroups":{"put":{"tags":["OpsViews"],"summary":"Updates a Operations Views User Groups List","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"opsViewId","description":"The unique name of the OpsView","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"opsViewId":true}}}},"/v1/organizations(?:/([^/]+?))/opsviews/{opsViewId}/views":{"post":{"tags":["OpsViews"],"summary":"Creates or Updates an Ops View View","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"opsViewId","description":"The unique name of the OpsView","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"opsViewId":true}}}},"/v1/organizations(?:/([^/]+?))/opsviews/{opsViewId}/views/{viewName}":{"delete":{"tags":["OpsViews"],"summary":"Deletes an Ops View View","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"viewName","in":"path","type":"string","required":true},{"name":"opsViewId","description":"The unique name of the OpsView","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"opsViewId":true}}}},"/v1/organizations(?:/([^/]+?))/opsviews/{opsViewId}/export":{"get":{"tags":["OpsViews"],"summary":"Export an Ops View","description":"","responses":{"200":{"description":"The exported Ops View"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"opsViewId","description":"The unique name of the OpsView","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"opsViewId":true}}}},"/v1/organizations(?:/([^/]+?))/opsviews/{opsViewId}/copy":{"post":{"tags":["OpsViews"],"summary":"Copies an Ops View","description":"","responses":{"200":{"description":"The copied Ops View"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"opsViewId","description":"The unique name of the OpsView","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"opsViewId":true}}}},"/v1/organizations(?:/([^/]+?))/opsviews/{opsViewId}/views/{viewName}/buffer":{"get":{"tags":["OpsViews"],"summary":"Retrieves a buffer definition","description":"","responses":{"200":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"403":{"description":"Forbidden"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"viewName","in":"path","type":"string","required":true},{"name":"opsViewId","description":"The unique name of the OpsView","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"opsViewId":true}}}},"/v1/organizations(?:/([^/]+?))/opsviews/{opsViewId}/views/{viewName}/buffer/{bufferId}":{"get":{"tags":["OpsViews"],"summary":"Retrieves a buffer definition","description":"","responses":{"200":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"403":{"description":"Forbidden"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"viewName","in":"path","type":"string","required":true},{"name":"opsViewId","description":"The unique name of the OpsView","required":true,"type":"string","in":"path"},{"name":"bufferId","description":"The unique name of the Buffer","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"opsViewId":true,"bufferId":true}}}},"/v1/organizations(?:/([^/]+?))/opsviews/{opsViewId}/views/{viewName}/buffer/{bufferId}/values":{"get":{"tags":["OpsViews"],"summary":"Retrieves buffer values","description":"","responses":{"200":{"description":"Returns buffer values"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"viewName","in":"path","type":"string","required":true},{"name":"opsViewId","description":"The unique name of the OpsView","required":true,"type":"string","in":"path"},{"name":"bufferId","description":"The unique name of the Buffer","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"opsViewId":true,"bufferId":true}}}},"/v1/organizations(?:/([^/]+?))/opsviews/{opsViewId}/views/{viewName}/buffer/values":{"post":{"tags":["OpsViews"],"summary":"Loads values into the Buffer","description":"","responses":{"204":{"description":"No content"},"401":{"description":"Not Authorised"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"},"412":{"description":"Precondition failed"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"viewName","in":"path","type":"string","required":true},{"name":"opsViewId","description":"The unique name of the OpsView","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"opsViewId":true}}},"patch":{"tags":["OpsViews"],"summary":"Updates existing buffer values","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"viewName","in":"path","type":"string","required":true},{"name":"opsViewId","description":"The unique name of the OpsView","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"opsViewId":true}}}},"/v1/organizations(?:/([^/]+?))/opsviews/{opsViewId}/views/{viewName}/buffer/{bufferId}/values/aggregate":{"post":{"tags":["OpsViews"],"summary":"Queries the buffer values using a mongodb aggregate pipeline","description":"","responses":{"200":{"description":"The result of the aggregation query"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"viewName","in":"path","type":"string","required":true},{"name":"opsViewId","description":"The unique name of the OpsView","required":true,"type":"string","in":"path"},{"name":"bufferId","description":"The unique name of the Buffer","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"opsViewId":true,"bufferId":true}}}},"/v1/organizations(?:/([^/]+?))/opsviews/{opsViewId}/views/{viewName}/buffer/query":{"post":{"tags":["Buffers"],"summary":"Returns the result of a buffer sql query","description":"","responses":{"200":{"description":"The results of a buffer sql query"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"viewName","in":"path","type":"string","required":true},{"name":"opsViewId","description":"The unique name of the OpsView","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"opsViewId":true}}}},"/v1/organizations(?:/([^/]+?))/opsviews/{opsViewId}/views/{viewName}/buffer/values/count":{"get":{"tags":["OpsViews"],"summary":"Retrieves buffer values count","description":"","responses":{"200":{"description":"Returns buffer values count"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"viewName","in":"path","type":"string","required":true},{"name":"opsViewId","description":"The unique name of the OpsView","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"opsViewId":true}}}},"/v1/organizations(?:/([^/]+?))/opsviews/{opsViewId}/views/{viewName}/buffer/values/{id}":{"get":{"tags":["OpsViews"],"summary":"Retrieves a Buffer Value","description":"","responses":{"200":{"description":"The buffer value for the provided id"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"viewName","in":"path","type":"string","required":true},{"name":"id","in":"path","type":"string","required":true},{"name":"opsViewId","description":"The unique name of the OpsView","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"opsViewId":true}}},"put":{"tags":["OpsViews"],"summary":"Updates a Buffer Value","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"viewName","in":"path","type":"string","required":true},{"name":"id","in":"path","type":"string","required":true},{"name":"opsViewId","description":"The unique name of the OpsView","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"opsViewId":true}}},"delete":{"tags":["OpsViews"],"summary":"Deletes a Buffer Value","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"viewName","in":"path","type":"string","required":true},{"name":"id","in":"path","type":"string","required":true},{"name":"opsViewId","description":"The unique name of the OpsView","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"opsViewId":true}}}},"/v1/organizations(?:/([^/]+?))/opsviews/{opsViewId}/views/{viewName}/linkedElements/buffer/{elementId}/values":{"get":{"tags":["OpsViews"],"summary":"Retrieves linked buffer values","description":"","responses":{"200":{"description":"Returns linked buffer values"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"viewName","in":"path","type":"string","required":true},{"name":"elementId","in":"path","type":"string","required":true},{"name":"opsViewId","description":"The unique name of the OpsView","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"opsViewId":true}}}},"/v1/organizations(?:/([^/]+?))/opsviews/{opsViewId}/views/{viewName}/flow":{"get":{"tags":["OpsViews"],"summary":"Retrieves a flow","description":"","responses":{"200":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"403":{"description":"Forbidden"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"viewName","in":"path","type":"string","required":true},{"name":"opsViewId","description":"The unique name of the OpsView","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"opsViewId":true}}}},"/v1/organizations(?:/([^/]+?))/opsviews/{opsViewId}/views/{viewName}/flow/execute":{"post":{"tags":["OpsViews"],"summary":"Executes a flow","description":"","responses":{"200":{"description":"The flow response"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"403":{"description":"Forbidden"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"viewName","in":"path","type":"string","required":true},{"name":"opsViewId","description":"The unique name of the OpsView","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"opsViewId":true}}}},"/v1/organizations(?:/([^/]+?))/opsviews/{opsViewId}/views/{viewName}/runs":{"get":{"tags":["OpsViews"],"summary":"Queries Runs","description":"","responses":{"200":{"description":"Runs"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"403":{"description":"Forbidden"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"viewName","in":"path","type":"string","required":true},{"name":"opsViewId","description":"The unique name of the OpsView","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"opsViewId":true}}}},"/v1/organizations(?:/([^/]+?))/opsviews/{opsViewId}/views/{viewName}/runs/{runId}":{"get":{"tags":["OpsViews"],"summary":"Queries Runs","description":"","responses":{"200":{"description":"Runs"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"403":{"description":"Forbidden"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"viewName","in":"path","type":"string","required":true},{"name":"opsViewId","description":"The unique name of the OpsView","required":true,"type":"string","in":"path"},{"name":"runId","description":"The unique id of the run","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"opsViewId":true,"runId":true}}}},"/v1/organizations(?:/([^/]+?))/opsviews/{opsViewId}/views/{viewName}/runs/{runId}/records":{"get":{"tags":["OpsViews"],"summary":"Queries Runs Records","description":"","responses":{"200":{"description":"Runs"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"403":{"description":"Forbidden"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"viewName","in":"path","type":"string","required":true},{"name":"opsViewId","description":"The unique name of the OpsView","required":true,"type":"string","in":"path"},{"name":"runId","description":"The unique id of the run","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"opsViewId":true,"runId":true}}}},"/v1/organizations(?:/([^/]+?))/opsviews/{opsViewId}/views/{viewName}/runs/{runId}/records/{recordId}":{"get":{"tags":["OpsViews"],"summary":"Retrieves a Runs Records","description":"","responses":{"200":{"description":"Returns the records for a run"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"viewName","in":"path","type":"string","required":true},{"name":"recordId","in":"path","type":"string","required":true},{"name":"opsViewId","description":"The unique name of the OpsView","required":true,"type":"string","in":"path"},{"name":"runId","description":"The unique id of the run","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"opsViewId":true,"runId":true}}}},"/v1/organizations(?:/([^/]+?))/opsviews/{opsViewId}/views/{viewName}/runs/{runId}/events":{"get":{"tags":["OpsViews"],"summary":"Retrieves a Runs Events","description":"","responses":{"200":{"description":"Returns the events for a run"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"viewName","in":"path","type":"string","required":true},{"name":"opsViewId","description":"The unique name of the OpsView","required":true,"type":"string","in":"path"},{"name":"runId","description":"The unique id of the run","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"opsViewId":true,"runId":true}}}},"/v1/organizations(?:/([^/]+?))/opsviews/{opsViewId}/views/{viewName}/runs/{runId}/events/{eventId}":{"get":{"tags":["OpsViews"],"summary":"Retrieves a Runs Events","description":"","responses":{"200":{"description":"Returns the Events for a run"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"viewName","in":"path","type":"string","required":true},{"name":"eventId","in":"path","type":"string","required":true},{"name":"opsViewId","description":"The unique name of the OpsView","required":true,"type":"string","in":"path"},{"name":"runId","description":"The unique id of the run","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"opsViewId":true,"runId":true}}}},"/v1/organizations(?:/([^/]+?))/opsviews/{opsViewId}/views/{viewName}/runs/{runId}/files/{fileKey}":{"get":{"tags":["OpsViews"],"summary":"Downloads a File","description":"","responses":{"200":{"description":"The file downloaded"},"401":{"description":"Not Authorised"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"viewName","in":"path","type":"string","required":true},{"name":"fileKey","in":"path","type":"string","required":true},{"name":"opsViewId","description":"The unique name of the OpsView","required":true,"type":"string","in":"path"},{"name":"runId","description":"The unique id of the run","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"opsViewId":true,"runId":true}}}},"/v1/organizations(?:/([^/]+?))/serviceviews/{serviceViewId}/logs":{"get":{"tags":["ServiceViews"],"summary":"Retrieves a Service Views Logs","description":"","responses":{"200":{"description":"Returns the log for the service view"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"serviceViewId","description":"The unique name of the ServiceView","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"serviceViewId":true}}}},"/v1/organizations(?:/([^/]+?))/serviceviews/{serviceViewId}/oData/info":{"post":{"tags":["ServiceViews"],"summary":"Updates an oData Views info","description":"","responses":{"204":{"description":"No content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"serviceViewId","description":"The unique name of the ServiceView","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"serviceViewId":true}}}},"/v1/organizations(?:/([^/]+?))/serviceviews/{serviceViewId}/oData/entity":{"post":{"tags":["ServiceViews"],"summary":"Saves an oData Views Entity","description":"","responses":{"204":{"description":"No content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"serviceViewId","description":"The unique name of the ServiceView","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"serviceViewId":true}}}},"/v1/organizations(?:/([^/]+?))/serviceviews/{serviceViewId}/oData/entity/{entityName}":{"delete":{"tags":["ServiceViews"],"summary":"Deletes an oData Views Entity","description":"","responses":{"204":{"description":"No content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"entityName","in":"path","type":"string","required":true},{"name":"serviceViewId","description":"The unique name of the ServiceView","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"serviceViewId":true}}}},"/v1/organizations(?:/([^/]+?))/serviceviews/{serviceViewId}/dataGateway/info":{"post":{"tags":["ServiceViews"],"summary":"Updates an Data Gateway Views info","description":"","responses":{"204":{"description":"No content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"serviceViewId","description":"The unique name of the ServiceView","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"serviceViewId":true}}}},"/v1/organizations(?:/([^/]+?))/serviceviews/{serviceViewId}/dataGateway/regenerate-schema":{"post":{"tags":["ServiceViews"],"summary":"Updates an Data Gateway Views info","description":"","responses":{"202":{"description":"The schema result"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"serviceViewId","description":"The unique name of the ServiceView","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"serviceViewId":true}}}},"/v1/organizations(?:/([^/]+?))/serviceviews/{serviceViewId}/dataGateway/item":{"post":{"tags":["ServiceViews"],"summary":"Saves an Data Gateway Views Item","description":"","responses":{"204":{"description":"No content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"serviceViewId","description":"The unique name of the ServiceView","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"serviceViewId":true}}}},"/v1/organizations(?:/([^/]+?))/serviceviews/{serviceViewId}/dataGateway/item/{externalName}":{"delete":{"tags":["ServiceViews"],"summary":"Deletes an Data Gateway Views Item","description":"","responses":{"204":{"description":"No content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"externalName","in":"path","type":"string","required":true},{"name":"serviceViewId","description":"The unique name of the ServiceView","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"serviceViewId":true}}}},"/v1/organizations(?:/([^/]+?))/serviceviews/{serviceViewId}/rest/info":{"post":{"tags":["ServiceViews"],"summary":"Updates an Rest Views info","description":"","responses":{"204":{"description":"No content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"serviceViewId","description":"The unique name of the ServiceView","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"serviceViewId":true}}}},"/v1/organizations(?:/([^/]+?))/serviceviews/{serviceViewId}/rest/tags":{"post":{"tags":["ServiceViews"],"summary":"Updates an Rest Views Tags","description":"","responses":{"204":{"description":"No content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"serviceViewId","description":"The unique name of the ServiceView","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"serviceViewId":true}}}},"/v1/organizations(?:/([^/]+?))/serviceviews/{serviceViewId}/rest/securityScheme":{"post":{"tags":["ServiceViews"],"summary":"Saves an Rest Views Security Scheme","description":"","responses":{"204":{"description":"No content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"serviceViewId","description":"The unique name of the ServiceView","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"serviceViewId":true}}}},"/v1/organizations(?:/([^/]+?))/serviceviews/{serviceViewId}/rest/securityScheme/{securitySchemeName}":{"delete":{"tags":["ServiceViews"],"summary":"Deletes an Rest View Security Scheme","description":"","responses":{"204":{"description":"No content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"securitySchemeName","in":"path","type":"string","required":true},{"name":"serviceViewId","description":"The unique name of the ServiceView","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"serviceViewId":true}}}},"/v1/organizations(?:/([^/]+?))/serviceviews/{serviceViewId}/rest/schema":{"post":{"tags":["ServiceViews"],"summary":"Saves an Rest Views Schema","description":"","responses":{"204":{"description":"No content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"serviceViewId","description":"The unique name of the ServiceView","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"serviceViewId":true}}}},"/v1/organizations(?:/([^/]+?))/serviceviews/{serviceViewId}/rest/schema/{schemaName}":{"delete":{"tags":["ServiceViews"],"summary":"Deletes an Rest View Schema","description":"","responses":{"204":{"description":"No content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"schemaName","in":"path","type":"string","required":true},{"name":"serviceViewId","description":"The unique name of the ServiceView","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"serviceViewId":true}}}},"/v1/organizations(?:/([^/]+?))/serviceviews/{serviceViewId}/rest/paths":{"post":{"tags":["ServiceViews"],"summary":"Saves an Rest View Path","description":"","responses":{"204":{"description":"No content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"serviceViewId","description":"The unique name of the ServiceView","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"serviceViewId":true}}}},"/v1/organizations(?:/([^/]+?))/serviceviews/{serviceViewId}/rest/logging":{"get":{"tags":["ServiceViews"],"summary":"Saves logging config for Rest service","description":"","responses":{"200":{"description":"The REST Logs for the service view."},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"serviceViewId","description":"The unique name of the ServiceView","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"serviceViewId":true}}}},"/v1/organizations(?:/([^/]+?))/serviceviews/{serviceViewId}/rest/paths/{pathSignature}":{"delete":{"tags":["ServiceViews"],"summary":"Deletes an Rest View Path","description":"","responses":{"204":{"description":"No content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"pathSignature","in":"path","type":"string","required":true},{"name":"serviceViewId","description":"The unique name of the ServiceView","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"serviceViewId":true}}}},"/v1/organizations(?:/([^/]+?))/serviceviews/{serviceViewId}/rest/rateLimit":{"put":{"tags":["ServiceViews"],"summary":"Update the Rest View rate limit config","description":"","responses":{"200":{"description":"Success status of rate limit update"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"serviceViewId","description":"The unique name of the ServiceView","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"serviceViewId":true}}}},"/v1/organizations(?:/([^/]+?))/serviceviews/{serviceViewId}/mcp/info":{"post":{"tags":["ServiceViews"],"summary":"Updates an MCP Views info","description":"","responses":{"204":{"description":"No content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"serviceViewId","description":"The unique name of the ServiceView","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"serviceViewId":true}}}},"/v1/organizations(?:/([^/]+?))/serviceviews/{serviceViewId}/mcp/prompts":{"post":{"tags":["ServiceViews"],"summary":"Updates an MCP View Prompt","description":"","responses":{"204":{"description":"No content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"serviceViewId","description":"The unique name of the ServiceView","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"serviceViewId":true}}}},"/v1/organizations(?:/([^/]+?))/serviceviews/{serviceViewId}/mcp/prompts/{promptName}":{"delete":{"tags":["ServiceViews"],"summary":"Deletes a MCP Prompt","description":"","responses":{"204":{"description":"No content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"promptName","in":"path","type":"string","required":true},{"name":"serviceViewId","description":"The unique name of the ServiceView","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"serviceViewId":true}}}},"/v1/organizations(?:/([^/]+?))/serviceviews/{serviceViewId}/mcp/resources":{"post":{"tags":["ServiceViews"],"summary":"Updates an MCP View Resource","description":"","responses":{"204":{"description":"No content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"serviceViewId","description":"The unique name of the ServiceView","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"serviceViewId":true}}}},"/v1/organizations(?:/([^/]+?))/serviceviews/{serviceViewId}/mcp/resources/{resourceName}":{"delete":{"tags":["ServiceViews"],"summary":"Deletes a MCP Resource","description":"","responses":{"204":{"description":"No content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"resourceName","in":"path","type":"string","required":true},{"name":"serviceViewId","description":"The unique name of the ServiceView","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"serviceViewId":true}}}},"/v1/organizations(?:/([^/]+?))/serviceviews/{serviceViewId}/mcp/tools":{"post":{"tags":["ServiceViews"],"summary":"Updates an MCP View Tool","description":"","responses":{"204":{"description":"No content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"serviceViewId","description":"The unique name of the ServiceView","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"serviceViewId":true}}}},"/v1/organizations(?:/([^/]+?))/serviceviews/{serviceViewId}/mcp/tools/{toolName}":{"delete":{"tags":["ServiceViews"],"summary":"Deletes a MCP Tool","description":"","responses":{"204":{"description":"No content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"toolName","in":"path","type":"string","required":true},{"name":"serviceViewId","description":"The unique name of the ServiceView","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"serviceViewId":true}}}},"/v1/organizations(?:/([^/]+?))/serviceviews/{serviceViewId}/ip-whitelist":{"put":{"tags":["ServiceViews"],"summary":"Saves the list of IPs that are allowed to access this API","description":"","responses":{"204":{"description":"No content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"serviceViewId","description":"The unique name of the ServiceView","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"serviceViewId":true}}}},"/v1/organizations(?:/([^/]+?))/serviceviews/{serviceViewId}/export":{"get":{"tags":["ServiceViews"],"summary":"Export a Service View","description":"","responses":{"200":{"description":"The exported Service View"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"serviceViewId","description":"The unique name of the ServiceView","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"serviceViewId":true}}}},"/v1/organizations(?:/([^/]+?))/serviceviews":{"get":{"tags":["ServiceViews"],"summary":"Queries the ServiceViews","description":"","responses":{"200":{"description":"Returns an array of ServiceViews"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"$filter","description":"The odata formatted filter e.g. $filter=field eq value","required":false,"type":"string","in":"query"},{"name":"$select","description":"The fields to select e.g. $select=field1,field2","required":false,"type":"string","in":"query"},{"name":"$sort","description":"The sort order of records e.g. $sort=field1,-field2","required":false,"type":"string","in":"query"},{"name":"$limit","description":"The number of records to return","default":50,"required":false,"type":"integer","in":"query"},{"name":"$rawQuery","description":"A mongodb json find statement as a string. e.g. {\"field1\": 1}","required":false,"type":"string","in":"query"},{"name":"$skip","description":"The records to skip","default":0,"required":false,"type":"integer","in":"query"}],"addedParameters":{"query":{"$filter":true,"$select":true,"$sort":true,"$limit":true,"$rawQuery":true,"$skip":true}}},"post":{"tags":["ServiceViews"],"summary":"Creates a ServiceView","description":"","responses":{"201":{"description":"Returns the created ServiceView"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"409":{"description":"Conflict, item exists"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/serviceviews/{serviceViewId}":{"get":{"tags":["ServiceViews"],"summary":"Retrieves a ServiceView","description":"","responses":{"200":{"description":"Returns a ServiceView"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"serviceViewId","description":"The unique name of the ServiceView","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"serviceViewId":true}}},"put":{"tags":["ServiceViews"],"summary":"Updates a ServiceView","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"serviceViewId","description":"The unique name of the ServiceView","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"serviceViewId":true}}},"delete":{"tags":["ServiceViews"],"summary":"Deletes a ServiceView","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"serviceViewId","description":"The unique name of the ServiceView","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"serviceViewId":true}}},"patch":{"tags":["ServiceViews"],"summary":"Patches a ServiceView given the JSON Patch","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"serviceViewId","description":"The unique name of the ServiceView","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"serviceViewId":true}}},"merge":{"tags":["ServiceViews"],"summary":"Merges the object on the body with the ServiceView","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"serviceViewId","description":"The unique name of the ServiceView","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"serviceViewId":true}}}},"/v1/organizations(?:/([^/]+?))/trees/solution":{"get":{"tags":["Solutions"],"summary":"Gets the Solution tree","description":"","responses":{"200":{"description":"The Solution tree"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/orglinks/{orgLinkId}/test":{"get":{"tags":["OrgLinks"],"summary":"Tests an org link","description":"","responses":{"200":{"description":"The results of the test"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"412":{"description":"Precondition failed"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"orgLinkId","description":"The unique name of the OrgLink","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"orgLinkId":true}}}},"/v1/organizations(?:/([^/]+?))/orglinks/{orgLinkId}/compare":{"get":{"tags":["OrgLinks"],"summary":"Compares an org link","description":"","responses":{"200":{"description":"The results of the compare"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"412":{"description":"Precondition failed"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"orgLinkId","description":"The unique name of the OrgLink","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"orgLinkId":true}}}},"/v1/organizations(?:/([^/]+?))/orglinks/{orgLinkId}/linkitems":{"get":{"tags":["OrgLinks"],"summary":"Retrieves link items","description":"","responses":{"200":{"description":"The link items"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"412":{"description":"Precondition failed"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"orgLinkId","description":"The unique name of the OrgLink","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"orgLinkId":true}}}},"/v1/organizations(?:/([^/]+?))/orglinks/{orgLinkId}/link":{"post":{"tags":["OrgLinks"],"summary":"Saves an org link","description":"","responses":{"204":{"description":"No contents"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"412":{"description":"Precondition failed"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"orgLinkId","description":"The unique name of the OrgLink","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"orgLinkId":true}}},"delete":{"tags":["OrgLinks"],"summary":"Saves an org link","description":"","responses":{"204":{"description":"No contents"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"412":{"description":"Precondition failed"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"orgLinkId","description":"The unique name of the OrgLink","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"orgLinkId":true}}}},"/v1/organizations(?:/([^/]+?))/orglinks/{orgLinkId}/sync":{"post":{"tags":["OrgLinks"],"summary":"Syncs an org link item","description":"","responses":{"204":{"description":"No content"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"412":{"description":"Precondition failed"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"orgLinkId","description":"The unique name of the OrgLink","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"orgLinkId":true}}}},"/v1/organizations(?:/([^/]+?))/orglinks":{"get":{"tags":["Org Links"],"summary":"Queries the Org Links","description":"","responses":{"200":{"description":"Returns an array of Org Links"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"$filter","description":"The odata formatted filter e.g. $filter=field eq value","required":false,"type":"string","in":"query"},{"name":"$select","description":"The fields to select e.g. $select=field1,field2","required":false,"type":"string","in":"query"},{"name":"$sort","description":"The sort order of records e.g. $sort=field1,-field2","required":false,"type":"string","in":"query"},{"name":"$limit","description":"The number of records to return","default":50,"required":false,"type":"integer","in":"query"},{"name":"$rawQuery","description":"A mongodb json find statement as a string. e.g. {\"field1\": 1}","required":false,"type":"string","in":"query"},{"name":"$skip","description":"The records to skip","default":0,"required":false,"type":"integer","in":"query"}],"addedParameters":{"query":{"$filter":true,"$select":true,"$sort":true,"$limit":true,"$rawQuery":true,"$skip":true}}},"post":{"tags":["Org Links"],"summary":"Creates a OrgLink","description":"","responses":{"201":{"description":"Returns the created OrgLink"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"409":{"description":"Conflict, item exists"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/orglinks/{orgLinkId}":{"get":{"tags":["Org Links"],"summary":"Retrieves a OrgLink","description":"","responses":{"200":{"description":"Returns a OrgLink"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"orgLinkId","description":"The unique name of the OrgLink","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"orgLinkId":true}}},"put":{"tags":["Org Links"],"summary":"Updates a OrgLink","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"orgLinkId","description":"The unique name of the OrgLink","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"orgLinkId":true}}},"delete":{"tags":["Org Links"],"summary":"Deletes a OrgLink","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"orgLinkId","description":"The unique name of the OrgLink","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"orgLinkId":true}}},"patch":{"tags":["Org Links"],"summary":"Patches a OrgLink given the JSON Patch","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"orgLinkId","description":"The unique name of the OrgLink","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"orgLinkId":true}}},"merge":{"tags":["Org Links"],"summary":"Merges the object on the body with the OrgLink","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"orgLinkId","description":"The unique name of the OrgLink","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"orgLinkId":true}}}},"/v1/organizations(?:/([^/]+?))/changelogs":{"get":{"tags":["OrgLinks"],"summary":"Queries change logs","description":"","responses":{"200":{"description":"The change logs"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"412":{"description":"Precondition failed"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/changelogs/{changeLogId}":{"get":{"tags":["ChangeLogs"],"summary":"Retrieves a change log","description":"","responses":{"200":{"description":"The change log"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"412":{"description":"Precondition failed"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"changeLogId","in":"path","type":"string","required":true}]}},"/v1/organizations(?:/([^/]+?))/hive-sync":{"post":{"tags":["HiveSync"],"summary":"Initiates the sync between hive and on-prem","description":"","responses":{"200":{"description":"Successful sync process"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/api-keys":{"get":{"tags":["API Keys"],"summary":"Get API keys for an organization","description":"","responses":{"200":{"description":"List of API keys for an organization"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]},"post":{"tags":["API Keys"],"summary":"Create new API key for an organization","description":"","responses":{"200":{"description":"Created new API key for an organization"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/api-keys/{type}":{"get":{"tags":["API Keys"],"summary":"Get API keys for a certain service for an organization","description":"","responses":{"200":{"description":"List of API keys for a certain service for an organization"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"type","in":"path","type":"string","required":true}]}},"/v1/organizations(?:/([^/]+?))/api-keys/{keyId}":{"patch":{"tags":["API Keys"],"summary":"Updates existing API key","description":"","responses":{"200":{"description":"Updated API key for an organization"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"keyId","in":"path","type":"string","required":true}]},"delete":{"tags":["API Keys"],"summary":"Delete existing API key","description":"","responses":{"200":{"description":"Deleted existing API key"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"keyId","in":"path","type":"string","required":true}]}},"/v1/organizations(?:/([^/]+?))/api-keys/{keyId}/invalidate":{"patch":{"tags":["API Keys"],"summary":"Invalidates existing API key","description":"","responses":{"200":{"description":"Invalidates existing API key, making it unusable"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"keyId","in":"path","type":"string","required":true}]}},"/v1/organizations(?:/([^/]+?))/file-stash/upload":{"post":{"tags":["FileStash"],"summary":"Upload a file to the file stash","description":"","responses":{"201":{"description":"File uploaded successfully"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/file-stash/create-folder":{"post":{"tags":["FileStash"],"summary":"Creates a folder on file stash","description":"","responses":{"201":{"description":"Folder created successfully"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/file-stash/files":{"get":{"tags":["FileStash"],"summary":"List files in the file stash","description":"","responses":{"200":{"description":"List of files in the file stash (array or paginated object)"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/file-stash/files/{fileName}":{"get":{"tags":["FileStash"],"summary":"Download a file from the file stash","description":"","responses":{"200":{"description":"File content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"fileName","in":"path","type":"string","required":true}]},"delete":{"tags":["FileStash"],"summary":"Delete a file from the file stash","description":"","responses":{"200":{"description":"File deleted successfully"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"fileName","in":"path","type":"string","required":true}]}},"/v1/organizations(?:/([^/]+?))/file-stash/files/{fileName}/download-url":{"get":{"tags":["FileStash"],"summary":"Get a signed download URL for a file","description":"","responses":{"200":{"description":"Signed download URL"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"fileName","in":"path","type":"string","required":true}]}},"/v1/organizations(?:/([^/]+?))/file-stash/files/{fileName}/upload-url":{"get":{"tags":["FileStash"],"summary":"Get a signed upload URL for a file","description":"","responses":{"200":{"description":"Signed upload URL"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"fileName","in":"path","type":"string","required":true}]}},"/v1/organizations(?:/([^/]+?))/file-stash/files/{sourceFileName}/copy":{"post":{"tags":["FileStash"],"summary":"Copy a file within the file stash","description":"","responses":{"200":{"description":"File copied successfully"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"sourceFileName","in":"path","type":"string","required":true}]}},"/v1/organizations(?:/([^/]+?))/file-stash/files/{sourceFileName}/move":{"post":{"tags":["FileStash"],"summary":"Move a file within the file stash","description":"","responses":{"200":{"description":"File moved successfully"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"sourceFileName","in":"path","type":"string","required":true}]}},"/v1/organizations(?:/([^/]+?))/mcp":{"get":{"tags":["MCPs"],"summary":"Queries the MCPs","description":"","responses":{"200":{"description":"Returns an array of MCPs"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"$filter","description":"The odata formatted filter e.g. $filter=field eq value","required":false,"type":"string","in":"query"},{"name":"$select","description":"The fields to select e.g. $select=field1,field2","required":false,"type":"string","in":"query"},{"name":"$sort","description":"The sort order of records e.g. $sort=field1,-field2","required":false,"type":"string","in":"query"},{"name":"$limit","description":"The number of records to return","default":50,"required":false,"type":"integer","in":"query"},{"name":"$rawQuery","description":"A mongodb json find statement as a string. e.g. {\"field1\": 1}","required":false,"type":"string","in":"query"},{"name":"$skip","description":"The records to skip","default":0,"required":false,"type":"integer","in":"query"}],"addedParameters":{"query":{"$filter":true,"$select":true,"$sort":true,"$limit":true,"$rawQuery":true,"$skip":true}}},"post":{"tags":["MCPs"],"summary":"Creates a MCP","description":"","responses":{"201":{"description":"Returns the created MCP"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"409":{"description":"Conflict, item exists"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/mcp/{mcpId}":{"get":{"tags":["MCPs"],"summary":"Retrieves a MCP","description":"","responses":{"200":{"description":"Returns a MCP"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"mcpId","description":"The unique name of the MCP","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"mcpId":true}}},"put":{"tags":["MCPs"],"summary":"Updates a MCP","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"mcpId","description":"The unique name of the MCP","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"mcpId":true}}},"delete":{"tags":["MCPs"],"summary":"Deletes a MCP","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"mcpId","description":"The unique name of the MCP","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"mcpId":true}}},"patch":{"tags":["MCPs"],"summary":"Patches a MCP given the JSON Patch","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"mcpId","description":"The unique name of the MCP","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"mcpId":true}}},"merge":{"tags":["MCPs"],"summary":"Merges the object on the body with the MCP","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"mcpId","description":"The unique name of the MCP","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"mcpId":true}}}},"/v1/organizations(?:/([^/]+?))/entity-sync/plan":{"post":{"tags":["Entity Sync"],"summary":"Generate an entity sync plan from a source org","description":"","responses":{"200":{"description":"Generated sync plan"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/entity-sync/preview":{"post":{"tags":["Entity Sync"],"summary":"Preview a sync plan against a destination org (optional execute options: exclude, entityPolicies; parameters skip on exist by default)","description":"","responses":{"200":{"description":"Preview report for a destination org"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/entity-sync/execute":{"post":{"tags":["Entity Sync"],"summary":"Execute a sync plan into a destination org (optional execute options: exclude, entityPolicies; parameters skip on exist by default)","description":"","responses":{"200":{"description":"Execution result with run id and summary"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/entity-sync/runs":{"get":{"tags":["Entity Sync"],"summary":"List entity sync runs for destination org","description":"","responses":{"200":{"description":"List of sync runs for the destination org"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/organizations(?:/([^/]+?))/entity-sync/runs/{runId}":{"get":{"tags":["Entity Sync"],"summary":"Get one entity sync run by id","description":"","responses":{"200":{"description":"Single sync run"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"runId","description":"The unique id of the run","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"runId":true}}}},"/v1/agencyfuse/orgs":{"post":{"tags":["Orgs"],"summary":"Create a new org while logged in","description":"","responses":{"200":{"description":"Create a new org while logged in"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"409":{"description":"Conflict, item exists"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/agencyfuse/organizations(?:/([^/]+?))/portal-variables":{"get":{"tags":["Home"],"summary":"Returns the portal variables for the current user","description":"","responses":{"200":{"description":"The portal-variables"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]},"post":{"tags":["Home"],"summary":"Updates a set of portal variables for the current user","description":"","responses":{"204":{"description":"No content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/agencyfuse/organizations(?:/([^/]+?))/portal-variables/{variable}":{"get":{"tags":["Home"],"summary":"Returns a portal variable for the current user","description":"","responses":{"200":{"description":"The portal-variable"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"variable","in":"path","type":"string","required":true}]},"post":{"tags":["Home"],"summary":"Updates a portal variables for the current user","description":"","responses":{"204":{"description":"No content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"variable","in":"path","type":"string","required":true}]}},"/v1/agencyfuse/organizations(?:/([^/]+?))/components/search":{"get":{"tags":["Home"],"summary":"Returns the components given the search string","description":"","responses":{"200":{"description":"The components"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/agencyfuse/organizations(?:/([^/]+?))":{"get":{"tags":["Home"],"summary":"Returns the logged in organization info","description":"","responses":{"200":{"description":"The organization info"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]},"patch":{"tags":["Home"],"summary":"Patches org details","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/agencyfuse/organizations(?:/([^/]+?))/apiKey":{"post":{"tags":["Home"],"summary":"Resets the API key","description":"","responses":{"200":{"description":"The new api key"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/agencyfuse/organizations(?:/([^/]+?))/portaloptions":{"get":{"tags":["Home"],"summary":"Returns the portal options for the current organization","description":"","responses":{"200":{"description":"The portal options"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]},"post":{"tags":["Home"],"summary":"Updates a set of portal options for the current organization","description":"","responses":{"204":{"description":"No content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/agencyfuse/organizations(?:/([^/]+?))/portaloptions/{option}":{"get":{"tags":["Home"],"summary":"Returns a portal option for the current organization","description":"","responses":{"200":{"description":"The portal option"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"option","in":"path","type":"string","required":true}]},"post":{"tags":["Home"],"summary":"Updates a portal option for the current organization","description":"","responses":{"204":{"description":"No content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"option","in":"path","type":"string","required":true}]}},"/v1/agencyfuse/organizations(?:/([^/]+?))/mcp":{"get":{"tags":["MCPs"],"summary":"Queries the MCPs","description":"","responses":{"200":{"description":"Returns an array of MCPs"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"$filter","description":"The odata formatted filter e.g. $filter=field eq value","required":false,"type":"string","in":"query"},{"name":"$select","description":"The fields to select e.g. $select=field1,field2","required":false,"type":"string","in":"query"},{"name":"$sort","description":"The sort order of records e.g. $sort=field1,-field2","required":false,"type":"string","in":"query"},{"name":"$limit","description":"The number of records to return","default":50,"required":false,"type":"integer","in":"query"},{"name":"$rawQuery","description":"A mongodb json find statement as a string. e.g. {\"field1\": 1}","required":false,"type":"string","in":"query"},{"name":"$skip","description":"The records to skip","default":0,"required":false,"type":"integer","in":"query"}],"addedParameters":{"query":{"$filter":true,"$select":true,"$sort":true,"$limit":true,"$rawQuery":true,"$skip":true}}},"post":{"tags":["MCPs"],"summary":"Creates a MCP","description":"","responses":{"201":{"description":"Returns the created MCP"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"409":{"description":"Conflict, item exists"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/agencyfuse/organizations(?:/([^/]+?))/mcp/{mcpId}":{"get":{"tags":["MCPs"],"summary":"Retrieves a MCP","description":"","responses":{"200":{"description":"Returns a MCP"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"mcpId","description":"The unique name of the MCP","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"mcpId":true}}},"put":{"tags":["MCPs"],"summary":"Updates a MCP","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"mcpId","description":"The unique name of the MCP","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"mcpId":true}}},"delete":{"tags":["MCPs"],"summary":"Deletes a MCP","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"mcpId","description":"The unique name of the MCP","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"mcpId":true}}},"patch":{"tags":["MCPs"],"summary":"Patches a MCP given the JSON Patch","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"mcpId","description":"The unique name of the MCP","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"mcpId":true}}},"merge":{"tags":["MCPs"],"summary":"Merges the object on the body with the MCP","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"mcpId","description":"The unique name of the MCP","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"mcpId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/buffers/storage-stats":{"get":{"tags":["Buffers"],"summary":"Retrieves a Buffers storage stats","description":"","responses":{"200":{"description":"The buffer storage stats"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/agencyfuse/organizations(?:/([^/]+?))/buffers/query":{"post":{"tags":["Buffers"],"summary":"Returns the result of a buffer sql query","description":"","responses":{"200":{"description":"The results of a buffer sql query"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/agencyfuse/organizations(?:/([^/]+?))/buffers/generate-aggregation-pipeline":{"post":{"tags":["Buffers"],"summary":"Returns the result of a buffer noql query","description":"","responses":{"200":{"description":"The generated aggregation pipeline of a buffer noql query"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/agencyfuse/organizations(?:/([^/]+?))/buffers/optimisation-context":{"post":{"tags":["Buffers"],"summary":"Builds optimisation context for a buffer NoQL query or aggregation pipeline","description":"","responses":{"200":{"description":"Context pack for AI NoQL/pipeline optimisation (collections, sizes, indexes, compiled pipelines)"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/agencyfuse/organizations(?:/([^/]+?))/buffers/validate-query":{"post":{"tags":["Buffers"],"summary":"Returns validated aggregate","description":"","responses":{"200":{"description":"The parses and validates a sql query"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/agencyfuse/organizations(?:/([^/]+?))/buffers/{bufferId}/stats":{"get":{"tags":["Buffers"],"summary":"Retrieves the buffer stats","description":"","responses":{"200":{"description":"The buffer stats"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"bufferId","description":"The unique name of the Buffer","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"bufferId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/buffers/{bufferId}/purge":{"post":{"tags":["Buffers"],"summary":"Purges the buffer","description":"","responses":{"204":{"description":"No content"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"bufferId","description":"The unique name of the Buffer","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"bufferId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/buffers/{bufferId}/values":{"post":{"tags":["Buffers"],"summary":"Loads values into the Buffer","description":"","responses":{"204":{"description":"No content"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"412":{"description":"Precondition failed"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"bufferId","description":"The unique name of the Buffer","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"bufferId":true}}},"get":{"tags":["Buffers"],"summary":"Retrieves a Buffers Flush Logs","description":"","responses":{"200":{"description":"Returns the flush logs for a run"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"bufferId","description":"The unique name of the Buffer","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"bufferId":true}}},"put":{"tags":["Buffers"],"summary":"Creates a Buffer Value","description":"","responses":{"201":{"description":"The created buffer value"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"bufferId","description":"The unique name of the Buffer","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"bufferId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/buffers/{bufferId}/recalcsize":{"post":{"tags":["Buffers"],"summary":"Forces a recalculation of the Buffer size","description":"","responses":{"200":{"description":"The correct size of the Buffer."},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"bufferId","description":"The unique name of the Buffer","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"bufferId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/buffers/{bufferId}/restore":{"post":{"tags":["Buffers"],"summary":"Restores the Buffers previous entries","description":"","responses":{"200":{"description":"The number restored"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"bufferId","description":"The unique name of the Buffer","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"bufferId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/buffers/{bufferId}/generateSchema":{"post":{"tags":["Buffers"],"summary":"Generates a buffer schema","description":"","responses":{"200":{"description":"The generated Schema"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"bufferId","description":"The unique name of the Buffer","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"bufferId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/buffers/{bufferId}/schema":{"put":{"tags":["Buffers"],"summary":"Updates a buffer schema","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"bufferId","description":"The unique name of the Buffer","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"bufferId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/buffers/{bufferId}/values/aggregate":{"post":{"tags":["Buffers"],"summary":"Queries the buffer values using a mongodb aggregate pipeline","description":"","responses":{"200":{"description":"The result of the aggregation query"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"bufferId","description":"The unique name of the Buffer","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"bufferId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/buffers/{bufferId}/values/count":{"get":{"tags":["Buffers"],"summary":"Retrieves a Count of Values Matching Query","description":"","responses":{"200":{"description":"Returns the number of results in query"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"bufferId","description":"The unique name of the Buffer","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"bufferId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/buffers/{bufferId}/values/{id}":{"get":{"tags":["Buffers"],"summary":"Retrieves a Buffer Value","description":"","responses":{"200":{"description":"The buffer value for the provided id"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"id","in":"path","type":"string","required":true},{"name":"bufferId","description":"The unique name of the Buffer","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"bufferId":true}}},"put":{"tags":["Buffers"],"summary":"Updates a Buffer Value","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"id","in":"path","type":"string","required":true},{"name":"bufferId","description":"The unique name of the Buffer","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"bufferId":true}}},"delete":{"tags":["Buffers"],"summary":"Deletes a Buffer Value","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"id","in":"path","type":"string","required":true},{"name":"bufferId","description":"The unique name of the Buffer","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"bufferId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/buffers/{bufferId}/versions":{"get":{"tags":["Buffers"],"summary":"Queries a Buffers Versions","description":"","responses":{"200":{"description":"An array of buffer versions"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"$filter","description":"The odata formatted filter e.g. $filter=field eq value","required":false,"type":"string","in":"query"},{"name":"$select","description":"The fields to select e.g. $select=field1,field2","required":false,"type":"string","in":"query"},{"name":"$sort","description":"The sort order of records e.g. $sort=field1,-field2","required":false,"type":"string","in":"query"},{"name":"$limit","description":"The number of records to return","default":50,"required":false,"type":"integer","in":"query"},{"name":"$rawQuery","description":"A mongodb json find statement as a string. e.g. {\"field1\": 1}","required":false,"type":"string","in":"query"},{"name":"$skip","description":"The records to skip","default":0,"required":false,"type":"integer","in":"query"},{"name":"bufferId","description":"The unique name of the Buffer","required":true,"type":"string","in":"path"}],"addedParameters":{"query":{"$filter":true,"$select":true,"$sort":true,"$limit":true,"$rawQuery":true,"$skip":true},"path":{"bufferId":true}}},"post":{"tags":["Buffers"],"summary":"Commits a new version of a Buffer","description":"","responses":{"201":{"description":"Returns a response from the buffer version commit"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"$filter","description":"The odata formatted filter e.g. $filter=field eq value","required":false,"type":"string","in":"query"},{"name":"$select","description":"The fields to select e.g. $select=field1,field2","required":false,"type":"string","in":"query"},{"name":"$sort","description":"The sort order of records e.g. $sort=field1,-field2","required":false,"type":"string","in":"query"},{"name":"$limit","description":"The number of records to return","default":50,"required":false,"type":"integer","in":"query"},{"name":"$rawQuery","description":"A mongodb json find statement as a string. e.g. {\"field1\": 1}","required":false,"type":"string","in":"query"},{"name":"$skip","description":"The records to skip","default":0,"required":false,"type":"integer","in":"query"},{"name":"bufferId","description":"The unique name of the Buffer","required":true,"type":"string","in":"path"}],"addedParameters":{"query":{"$filter":true,"$select":true,"$sort":true,"$limit":true,"$rawQuery":true,"$skip":true},"path":{"bufferId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/buffers/{bufferId}/versions/{versionId}":{"get":{"tags":["Buffers"],"summary":"Returns a Buffer History entity","description":"","responses":{"200":{"description":"A buffer version"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"versionId","in":"path","type":"string","required":true},{"name":"$filter","description":"The odata formatted filter e.g. $filter=field eq value","required":false,"type":"string","in":"query"},{"name":"$select","description":"The fields to select e.g. $select=field1,field2","required":false,"type":"string","in":"query"},{"name":"$sort","description":"The sort order of records e.g. $sort=field1,-field2","required":false,"type":"string","in":"query"},{"name":"$limit","description":"The number of records to return","default":50,"required":false,"type":"integer","in":"query"},{"name":"$rawQuery","description":"A mongodb json find statement as a string. e.g. {\"field1\": 1}","required":false,"type":"string","in":"query"},{"name":"$skip","description":"The records to skip","default":0,"required":false,"type":"integer","in":"query"},{"name":"bufferId","description":"The unique name of the Buffer","required":true,"type":"string","in":"path"}],"addedParameters":{"query":{"$filter":true,"$select":true,"$sort":true,"$limit":true,"$rawQuery":true,"$skip":true},"path":{"bufferId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/buffers/{bufferId}/versions/{versionId}/checkout":{"post":{"tags":["Buffers"],"summary":"Checks out a version of a Buffer","description":"","responses":{"204":{"description":"Returns a response from the buffer version checkout"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"versionId","in":"path","type":"string","required":true},{"name":"$filter","description":"The odata formatted filter e.g. $filter=field eq value","required":false,"type":"string","in":"query"},{"name":"$select","description":"The fields to select e.g. $select=field1,field2","required":false,"type":"string","in":"query"},{"name":"$sort","description":"The sort order of records e.g. $sort=field1,-field2","required":false,"type":"string","in":"query"},{"name":"$limit","description":"The number of records to return","default":50,"required":false,"type":"integer","in":"query"},{"name":"$rawQuery","description":"A mongodb json find statement as a string. e.g. {\"field1\": 1}","required":false,"type":"string","in":"query"},{"name":"$skip","description":"The records to skip","default":0,"required":false,"type":"integer","in":"query"},{"name":"bufferId","description":"The unique name of the Buffer","required":true,"type":"string","in":"path"}],"addedParameters":{"query":{"$filter":true,"$select":true,"$sort":true,"$limit":true,"$rawQuery":true,"$skip":true},"path":{"bufferId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/buffers/{bufferId}/export":{"get":{"tags":["Buffers"],"summary":"Export a Buffer","description":"","responses":{"200":{"description":"The exported Buffer"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"bufferId","description":"The unique name of the Buffer","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"bufferId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/buffers/{bufferId}/indexes":{"get":{"tags":["Buffers"],"summary":"Get buffer indexes","description":"","responses":{"200":{"description":"Buffer indexes"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"bufferId","description":"The unique name of the Buffer","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"bufferId":true}}},"post":{"tags":["Buffers"],"summary":"Create new buffer index","description":"","responses":{"200":{"description":"No content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"bufferId","description":"The unique name of the Buffer","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"bufferId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/buffers/{bufferId}/indexes/{indexId}":{"delete":{"tags":["Buffers"],"summary":"Deletes a buffer index Value","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"indexId","in":"path","type":"string","required":true},{"name":"bufferId","description":"The unique name of the Buffer","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"bufferId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/buffers/materializeViews":{"post":{"tags":["Buffers"],"summary":"Materializes one or more materialized views","description":"","responses":{"200":{"description":"Results of materialized view execution"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/agencyfuse/organizations(?:/([^/]+?))/buffers":{"get":{"tags":["Buffers"],"summary":"Queries the Buffers","description":"","responses":{"200":{"description":"Returns an array of Buffers"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"$filter","description":"The odata formatted filter e.g. $filter=field eq value","required":false,"type":"string","in":"query"},{"name":"$select","description":"The fields to select e.g. $select=field1,field2","required":false,"type":"string","in":"query"},{"name":"$sort","description":"The sort order of records e.g. $sort=field1,-field2","required":false,"type":"string","in":"query"},{"name":"$limit","description":"The number of records to return","default":50,"required":false,"type":"integer","in":"query"},{"name":"$rawQuery","description":"A mongodb json find statement as a string. e.g. {\"field1\": 1}","required":false,"type":"string","in":"query"},{"name":"$skip","description":"The records to skip","default":0,"required":false,"type":"integer","in":"query"}],"addedParameters":{"query":{"$filter":true,"$select":true,"$sort":true,"$limit":true,"$rawQuery":true,"$skip":true}}},"post":{"tags":["Buffers"],"summary":"Creates a Buffer","description":"","responses":{"201":{"description":"Returns the created Buffer"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"409":{"description":"Conflict, item exists"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/agencyfuse/organizations(?:/([^/]+?))/buffers/{bufferId}":{"get":{"tags":["Buffers"],"summary":"Retrieves a Buffer","description":"","responses":{"200":{"description":"Returns a Buffer"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"bufferId","description":"The unique name of the Buffer","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"bufferId":true}}},"put":{"tags":["Buffers"],"summary":"Updates a Buffer","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"bufferId","description":"The unique name of the Buffer","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"bufferId":true}}},"delete":{"tags":["Buffers"],"summary":"Deletes a Buffer","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"bufferId","description":"The unique name of the Buffer","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"bufferId":true}}},"patch":{"tags":["Buffers"],"summary":"Patches a Buffer given the JSON Patch","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"bufferId","description":"The unique name of the Buffer","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"bufferId":true}}},"merge":{"tags":["Buffers"],"summary":"Merges the object on the body with the Buffer","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"bufferId","description":"The unique name of the Buffer","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"bufferId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/parameters/{parameterId}/test":{"patch":{"tags":["Parameters"],"summary":"Tests a Parameter Template with Patch","description":"","responses":{"200":{"description":"The results of the test"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"405":{"description":"Method not Allowed"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"parameterId","description":"The unique name of the Parameter","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"parameterId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/parameters/{parameterId}/list/{listName}":{"get":{"tags":["Parameters"],"summary":"Gets a Parameter Template list","description":"","responses":{"200":{"description":"The contents of the list"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"405":{"description":"Method not Allowed"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"listName","in":"path","type":"string","required":true},{"name":"parameterId","description":"The unique name of the Parameter","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"parameterId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/parameters/templates":{"get":{"tags":["Parameters"],"summary":"Gets a list of all the parameter templates","description":"","responses":{"200":{"description":"Returns an array of Parameter Templates"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/agencyfuse/organizations(?:/([^/]+?))/parameters/templates/{templateId}":{"get":{"tags":["Parameters"],"summary":"Gets a Parameter Template","description":"","responses":{"200":{"description":"Returns a specific parameter template"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"templateId","in":"path","type":"string","required":true}]}},"/v1/agencyfuse/organizations(?:/([^/]+?))/parameters/templates/{templateId}/test":{"post":{"tags":["Parameters"],"summary":"Tests a Parameter Template","description":"","responses":{"200":{"description":"The results of the test"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"405":{"description":"Method not Allowed"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"templateId","in":"path","type":"string","required":true}]}},"/v1/agencyfuse/organizations(?:/([^/]+?))/parameters/templates/{templateId}/list/{listName}":{"post":{"tags":["Parameters"],"summary":"Gets a Parameter Template list","description":"","responses":{"200":{"description":"The contents of the list"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"405":{"description":"Method not Allowed"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"templateId","in":"path","type":"string","required":true},{"name":"listName","in":"path","type":"string","required":true}]}},"/v1/agencyfuse/organizations(?:/([^/]+?))/parameters/{parameterId}/versions":{"get":{"tags":["Parameters"],"summary":"Queries the Parameter History","description":"","responses":{"200":{"description":"Returns an array of parameter history"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"$filter","description":"The odata formatted filter e.g. $filter=field eq value","required":false,"type":"string","in":"query"},{"name":"$select","description":"The fields to select e.g. $select=field1,field2","required":false,"type":"string","in":"query"},{"name":"$sort","description":"The sort order of records e.g. $sort=field1,-field2","required":false,"type":"string","in":"query"},{"name":"$limit","description":"The number of records to return","default":50,"required":false,"type":"integer","in":"query"},{"name":"$rawQuery","description":"A mongodb json find statement as a string. e.g. {\"field1\": 1}","required":false,"type":"string","in":"query"},{"name":"$skip","description":"The records to skip","default":0,"required":false,"type":"integer","in":"query"},{"name":"parameterId","description":"The unique name of the Parameter","required":true,"type":"string","in":"path"}],"addedParameters":{"query":{"$filter":true,"$select":true,"$sort":true,"$limit":true,"$rawQuery":true,"$skip":true},"path":{"parameterId":true}}},"post":{"tags":["Parameters"],"summary":"Commits a new version of the Parameter","description":"","responses":{"201":{"description":"The version commit response"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"$filter","description":"The odata formatted filter e.g. $filter=field eq value","required":false,"type":"string","in":"query"},{"name":"$select","description":"The fields to select e.g. $select=field1,field2","required":false,"type":"string","in":"query"},{"name":"$sort","description":"The sort order of records e.g. $sort=field1,-field2","required":false,"type":"string","in":"query"},{"name":"$limit","description":"The number of records to return","default":50,"required":false,"type":"integer","in":"query"},{"name":"$rawQuery","description":"A mongodb json find statement as a string. e.g. {\"field1\": 1}","required":false,"type":"string","in":"query"},{"name":"$skip","description":"The records to skip","default":0,"required":false,"type":"integer","in":"query"},{"name":"parameterId","description":"The unique name of the Parameter","required":true,"type":"string","in":"path"}],"addedParameters":{"query":{"$filter":true,"$select":true,"$sort":true,"$limit":true,"$rawQuery":true,"$skip":true},"path":{"parameterId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/parameters/{parameterId}/versions/{versionId}":{"get":{"tags":["Parameters"],"summary":"Returns a version of a Parameter","description":"","responses":{"200":{"description":"A version of a Parameter"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"versionId","in":"path","type":"string","required":true},{"name":"$filter","description":"The odata formatted filter e.g. $filter=field eq value","required":false,"type":"string","in":"query"},{"name":"$select","description":"The fields to select e.g. $select=field1,field2","required":false,"type":"string","in":"query"},{"name":"$sort","description":"The sort order of records e.g. $sort=field1,-field2","required":false,"type":"string","in":"query"},{"name":"$limit","description":"The number of records to return","default":50,"required":false,"type":"integer","in":"query"},{"name":"$rawQuery","description":"A mongodb json find statement as a string. e.g. {\"field1\": 1}","required":false,"type":"string","in":"query"},{"name":"$skip","description":"The records to skip","default":0,"required":false,"type":"integer","in":"query"},{"name":"parameterId","description":"The unique name of the Parameter","required":true,"type":"string","in":"path"}],"addedParameters":{"query":{"$filter":true,"$select":true,"$sort":true,"$limit":true,"$rawQuery":true,"$skip":true},"path":{"parameterId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/parameters/{parameterId}/versions/{versionId}/checkout":{"post":{"tags":["Parameters"],"summary":"Checkout an existing version of the parameter","description":"","responses":{"204":{"description":"The version checkout response"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"versionId","in":"path","type":"string","required":true},{"name":"$filter","description":"The odata formatted filter e.g. $filter=field eq value","required":false,"type":"string","in":"query"},{"name":"$select","description":"The fields to select e.g. $select=field1,field2","required":false,"type":"string","in":"query"},{"name":"$sort","description":"The sort order of records e.g. $sort=field1,-field2","required":false,"type":"string","in":"query"},{"name":"$limit","description":"The number of records to return","default":50,"required":false,"type":"integer","in":"query"},{"name":"$rawQuery","description":"A mongodb json find statement as a string. e.g. {\"field1\": 1}","required":false,"type":"string","in":"query"},{"name":"$skip","description":"The records to skip","default":0,"required":false,"type":"integer","in":"query"},{"name":"parameterId","description":"The unique name of the Parameter","required":true,"type":"string","in":"path"}],"addedParameters":{"query":{"$filter":true,"$select":true,"$sort":true,"$limit":true,"$rawQuery":true,"$skip":true},"path":{"parameterId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/parameters/{parameterId}/export":{"get":{"tags":["Parameters"],"summary":"Export a Parameter","description":"","responses":{"200":{"description":"The exported Parameter"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"parameterId","description":"The unique name of the Parameter","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"parameterId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/parameters":{"get":{"tags":["Parameters"],"summary":"Queries the Parameters","description":"","responses":{"200":{"description":"Returns an array of Parameters"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"$filter","description":"The odata formatted filter e.g. $filter=field eq value","required":false,"type":"string","in":"query"},{"name":"$select","description":"The fields to select e.g. $select=field1,field2","required":false,"type":"string","in":"query"},{"name":"$sort","description":"The sort order of records e.g. $sort=field1,-field2","required":false,"type":"string","in":"query"},{"name":"$limit","description":"The number of records to return","default":50,"required":false,"type":"integer","in":"query"},{"name":"$rawQuery","description":"A mongodb json find statement as a string. e.g. {\"field1\": 1}","required":false,"type":"string","in":"query"},{"name":"$skip","description":"The records to skip","default":0,"required":false,"type":"integer","in":"query"}],"addedParameters":{"query":{"$filter":true,"$select":true,"$sort":true,"$limit":true,"$rawQuery":true,"$skip":true}}},"post":{"tags":["Parameters"],"summary":"Creates a Parameter","description":"","responses":{"201":{"description":"Returns the created Parameter"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"409":{"description":"Conflict, item exists"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/agencyfuse/organizations(?:/([^/]+?))/parameters/{parameterId}":{"get":{"tags":["Parameters"],"summary":"Retrieves a Parameter","description":"","responses":{"200":{"description":"Returns a Parameter"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"parameterId","description":"The unique name of the Parameter","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"parameterId":true}}},"put":{"tags":["Parameters"],"summary":"Updates a Parameter","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"parameterId","description":"The unique name of the Parameter","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"parameterId":true}}},"delete":{"tags":["Parameters"],"summary":"Deletes a Parameter","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"parameterId","description":"The unique name of the Parameter","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"parameterId":true}}},"patch":{"tags":["Parameters"],"summary":"Patches a Parameter given the JSON Patch","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"parameterId","description":"The unique name of the Parameter","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"parameterId":true}}},"merge":{"tags":["Parameters"],"summary":"Merges the object on the body with the Parameter","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"parameterId","description":"The unique name of the Parameter","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"parameterId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/users/usergroups":{"get":{"tags":["Users"],"summary":"Queries user groups","description":"","responses":{"200":{"description":"A list of user groups"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]},"post":{"tags":["Users"],"summary":"Updates the user groups","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/agencyfuse/organizations(?:/([^/]+?))/users/usergroups/{userGroupId}":{"delete":{"tags":["User"],"summary":"Deletes a user group by ID","description":"","responses":{"204":{"description":"No content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"userGroupId","in":"path","type":"string","required":true}]}},"/v1/agencyfuse/organizations(?:/([^/]+?))/users/usergroups/delete":{"post":{"tags":["Users"],"summary":"Deletes the user groups by IDs","description":"","responses":{"204":{"description":"No content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/agencyfuse/organizations(?:/([^/]+?))/users":{"get":{"tags":["Users"],"summary":"Queries users","description":"","responses":{"200":{"description":"A list of users"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]},"post":{"tags":["User"],"summary":"Create user","description":"","responses":{"200":{"description":"Create a new user"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/agencyfuse/organizations(?:/([^/]+?))/users/link":{"post":{"tags":["User"],"summary":"Link a user account to a synatic account","description":"","responses":{"200":{"description":"Link a Synatic user to a user created using an external identity provider."},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/agencyfuse/organizations(?:/([^/]+?))/users/{userId}":{"get":{"tags":["User"],"summary":"Get user","description":"","responses":{"200":{"description":"Get a user by their id"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"userId","in":"path","type":"string","required":true}]},"patch":{"tags":["User"],"summary":"Update user","description":"","responses":{"200":{"description":"Update a users details"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"userId","in":"path","type":"string","required":true}]},"delete":{"tags":["User"],"summary":"Remove user","description":"","responses":{"200":{"description":"Remove a user from an org"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"userId","in":"path","type":"string","required":true}]}},"/v1/agencyfuse/organizations(?:/([^/]+?))/users/{userId}/set-user-active-status":{"post":{"tags":["User Service Security"],"summary":"Reactivate user via UserId","description":"","responses":{"200":{"description":"Reactivate user by id"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"userId","in":"path","type":"string","required":true}]}},"/v1/agencyfuse/organizations(?:/([^/]+?))/users/{userId}/set-user-inactive-status":{"post":{"tags":["User Service Security"],"summary":"Deactivate user via UserId","description":"","responses":{"200":{"description":"Deactivate user by id"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"userId","in":"path","type":"string","required":true}]}},"/v1/agencyfuse/organizations(?:/([^/]+?))/users/{userId}/generate-service-view-api-key":{"post":{"tags":["User Service View API Key"],"summary":"Get users service view API key","description":"","responses":{"200":{"description":"Generate a users service view API key"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"userId","in":"path","type":"string","required":true}]}},"/v1/agencyfuse/organizations(?:/([^/]+?))/users/{userId}/auth-stats":{"get":{"tags":["User Auth Stats"],"summary":"Get users auth stats","description":"","responses":{"200":{"description":"Get a users auth stats by their id"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"userId","in":"path","type":"string","required":true}]}},"/v1/agencyfuse/organizations(?:/([^/]+?))/users/{userId}/intercom-user-hash":{"get":{"tags":["Users"],"summary":"Intercom auth code","description":"","responses":{"200":{"description":"The intercom authentication code for a user"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"403":{"description":"Forbidden"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"userId","in":"path","type":"string","required":true}]}},"/v1/agencyfuse/organizations(?:/([^/]+?))/solutions/tree":{"get":{"tags":["Solutions"],"summary":"Gets the Solution tree","description":"","responses":{"200":{"description":"The Solution tree"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/agencyfuse/organizations(?:/([^/]+?))/solutions/summary":{"get":{"tags":["Solutions"],"summary":"Gets the Solution run summary","description":"","responses":{"200":{"description":"The solution summary"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/agencyfuse/organizations(?:/([^/]+?))/solutions/import":{"post":{"tags":["Solutions"],"summary":"Import a Solution","description":"","responses":{"201":{"description":"Returns the imported solution and its components"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/agencyfuse/organizations(?:/([^/]+?))/solutions/{solutionId}/related":{"get":{"tags":["Solutions"],"summary":"Gets an array of related modules for the Solution","description":"","responses":{"200":{"description":"An array of related modules"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"solutionId","description":"The unique name of the Solution","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"solutionId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/solutions/{solutionId}":{"delete":{"tags":["Solutions"],"summary":"Deletes a Solution","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"solutionId","description":"The unique name of the Solution","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"solutionId":true}}},"get":{"tags":["Solutions"],"summary":"Retrieves a Solution","description":"","responses":{"200":{"description":"Returns a Solution"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"solutionId","description":"The unique name of the Solution","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"solutionId":true}}},"put":{"tags":["Solutions"],"summary":"Updates a Solution","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"solutionId","description":"The unique name of the Solution","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"solutionId":true}}},"patch":{"tags":["Solutions"],"summary":"Patches a Solution given the JSON Patch","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"solutionId","description":"The unique name of the Solution","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"solutionId":true}}},"merge":{"tags":["Solutions"],"summary":"Merges the object on the body with the Solution","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"solutionId","description":"The unique name of the Solution","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"solutionId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/solutions/{solutionId}/export":{"get":{"tags":["Solutions"],"summary":"Export a Solution","description":"","responses":{"200":{"description":"The exported Solution"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"solutionId","description":"The unique name of the Solution","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"solutionId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/solutions/{solutionId}/versions":{"get":{"tags":["Solutions"],"summary":"Queries the Solution History","description":"","responses":{"200":{"description":"Returns an array of solution history"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"$filter","description":"The odata formatted filter e.g. $filter=field eq value","required":false,"type":"string","in":"query"},{"name":"$select","description":"The fields to select e.g. $select=field1,field2","required":false,"type":"string","in":"query"},{"name":"$sort","description":"The sort order of records e.g. $sort=field1,-field2","required":false,"type":"string","in":"query"},{"name":"$limit","description":"The number of records to return","default":50,"required":false,"type":"integer","in":"query"},{"name":"$rawQuery","description":"A mongodb json find statement as a string. e.g. {\"field1\": 1}","required":false,"type":"string","in":"query"},{"name":"$skip","description":"The records to skip","default":0,"required":false,"type":"integer","in":"query"},{"name":"solutionId","description":"The unique name of the Solution","required":true,"type":"string","in":"path"}],"addedParameters":{"query":{"$filter":true,"$select":true,"$sort":true,"$limit":true,"$rawQuery":true,"$skip":true},"path":{"solutionId":true}}},"post":{"tags":["Solutions"],"summary":"Commits a new version of the Solution","description":"","responses":{"204":{"description":"The version commit response"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"$filter","description":"The odata formatted filter e.g. $filter=field eq value","required":false,"type":"string","in":"query"},{"name":"$select","description":"The fields to select e.g. $select=field1,field2","required":false,"type":"string","in":"query"},{"name":"$sort","description":"The sort order of records e.g. $sort=field1,-field2","required":false,"type":"string","in":"query"},{"name":"$limit","description":"The number of records to return","default":50,"required":false,"type":"integer","in":"query"},{"name":"$rawQuery","description":"A mongodb json find statement as a string. e.g. {\"field1\": 1}","required":false,"type":"string","in":"query"},{"name":"$skip","description":"The records to skip","default":0,"required":false,"type":"integer","in":"query"},{"name":"solutionId","description":"The unique name of the Solution","required":true,"type":"string","in":"path"}],"addedParameters":{"query":{"$filter":true,"$select":true,"$sort":true,"$limit":true,"$rawQuery":true,"$skip":true},"path":{"solutionId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/solutions/{solutionId}/versions/{versionId}":{"get":{"tags":["Solutions"],"summary":"Returns a version of a Solution","description":"","responses":{"200":{"description":"A version of a Solution"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"versionId","in":"path","type":"string","required":true},{"name":"$filter","description":"The odata formatted filter e.g. $filter=field eq value","required":false,"type":"string","in":"query"},{"name":"$select","description":"The fields to select e.g. $select=field1,field2","required":false,"type":"string","in":"query"},{"name":"$sort","description":"The sort order of records e.g. $sort=field1,-field2","required":false,"type":"string","in":"query"},{"name":"$limit","description":"The number of records to return","default":50,"required":false,"type":"integer","in":"query"},{"name":"$rawQuery","description":"A mongodb json find statement as a string. e.g. {\"field1\": 1}","required":false,"type":"string","in":"query"},{"name":"$skip","description":"The records to skip","default":0,"required":false,"type":"integer","in":"query"},{"name":"solutionId","description":"The unique name of the Solution","required":true,"type":"string","in":"path"}],"addedParameters":{"query":{"$filter":true,"$select":true,"$sort":true,"$limit":true,"$rawQuery":true,"$skip":true},"path":{"solutionId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/solutions/{solutionId}/versions/{versionId}/checkout":{"post":{"tags":["Solutions"],"summary":"Checkout an existing version of the Solution","description":"","responses":{"204":{"description":"The version checkout response"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"versionId","in":"path","type":"string","required":true},{"name":"$filter","description":"The odata formatted filter e.g. $filter=field eq value","required":false,"type":"string","in":"query"},{"name":"$select","description":"The fields to select e.g. $select=field1,field2","required":false,"type":"string","in":"query"},{"name":"$sort","description":"The sort order of records e.g. $sort=field1,-field2","required":false,"type":"string","in":"query"},{"name":"$limit","description":"The number of records to return","default":50,"required":false,"type":"integer","in":"query"},{"name":"$rawQuery","description":"A mongodb json find statement as a string. e.g. {\"field1\": 1}","required":false,"type":"string","in":"query"},{"name":"$skip","description":"The records to skip","default":0,"required":false,"type":"integer","in":"query"},{"name":"solutionId","description":"The unique name of the Solution","required":true,"type":"string","in":"path"}],"addedParameters":{"query":{"$filter":true,"$select":true,"$sort":true,"$limit":true,"$rawQuery":true,"$skip":true},"path":{"solutionId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/solutions":{"get":{"tags":["Solutions"],"summary":"Queries the Solutions","description":"","responses":{"200":{"description":"Returns an array of Solutions"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"$filter","description":"The odata formatted filter e.g. $filter=field eq value","required":false,"type":"string","in":"query"},{"name":"$select","description":"The fields to select e.g. $select=field1,field2","required":false,"type":"string","in":"query"},{"name":"$sort","description":"The sort order of records e.g. $sort=field1,-field2","required":false,"type":"string","in":"query"},{"name":"$limit","description":"The number of records to return","default":50,"required":false,"type":"integer","in":"query"},{"name":"$rawQuery","description":"A mongodb json find statement as a string. e.g. {\"field1\": 1}","required":false,"type":"string","in":"query"},{"name":"$skip","description":"The records to skip","default":0,"required":false,"type":"integer","in":"query"}],"addedParameters":{"query":{"$filter":true,"$select":true,"$sort":true,"$limit":true,"$rawQuery":true,"$skip":true}}},"post":{"tags":["Solutions"],"summary":"Creates a Solution","description":"","responses":{"201":{"description":"Returns the created Solution"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"409":{"description":"Conflict, item exists"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/agencyfuse/organizations(?:/([^/]+?))/flows/usedby":{"get":{"tags":["Flows"],"summary":"Queries the flows that use a certain items","description":"","responses":{"200":{"description":"Returns an array of flows linked to the specified items"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/agencyfuse/organizations(?:/([^/]+?))/flows/common-steps":{"get":{"tags":["Flows"],"summary":"Returns an array of commonly used steps","description":"","responses":{"200":{"description":"Commonly used steps"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/agencyfuse/organizations(?:/([^/]+?))/flows/{flowId}/full":{"put":{"tags":["Flows"],"summary":"Updates a flow full","description":"","responses":{"204":{"description":"No content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/flows/{flowId}/watchFiles":{"get":{"tags":["Flows"],"summary":"Gets the flows watch files","description":"","responses":{"200":{"description":"Returns an array of file that will be run with the watch"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/flows/{flowId}/runs":{"get":{"tags":["Flows"],"summary":"Queries the Runs for the Flow","description":"","responses":{"200":{"description":"Returns an array of Runs"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"$filter","description":"The odata formatted filter e.g. $filter=field eq value","required":false,"type":"string","in":"query"},{"name":"$select","description":"The fields to select e.g. $select=field1,field2","required":false,"type":"string","in":"query"},{"name":"$sort","description":"The sort order of records e.g. $sort=field1,-field2","required":false,"type":"string","in":"query"},{"name":"$limit","description":"The number of records to return","default":50,"required":false,"type":"integer","in":"query"},{"name":"$rawQuery","description":"A mongodb json find statement as a string. e.g. {\"field1\": 1}","required":false,"type":"string","in":"query"},{"name":"$skip","description":"The records to skip","default":0,"required":false,"type":"integer","in":"query"},{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"query":{"$filter":true,"$select":true,"$sort":true,"$limit":true,"$rawQuery":true,"$skip":true},"path":{"flowId":true}}},"post":{"tags":["Flows"],"summary":"Executes a Flow and creates a run","description":"","responses":{"200":{"description":"The results of the synchronous Flows Run results."},"202":{"description":"The details of the run being executed. "},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"412":{"description":"Precondition failed"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/flows/{flowId}/validations":{"get":{"tags":["Flows"],"summary":"Retrieves validations for the flow","description":"","responses":{"200":{"description":"Returns the validations for a flow"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/flows/{flowId}/validate-step":{"post":{"tags":["Flows"],"summary":"Validates the step","description":"","responses":{"200":{"description":"Validations of the step"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/flows/{flowId}/triggers":{"get":{"tags":["Flow Triggers"],"summary":"Queries the Flow Triggers","description":"","responses":{"200":{"description":"Returns an array of Flow Triggers"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"$filter","description":"The odata formatted filter e.g. $filter=field eq value","required":false,"type":"string","in":"query"},{"name":"$select","description":"The fields to select e.g. $select=field1,field2","required":false,"type":"string","in":"query"},{"name":"$sort","description":"The sort order of records e.g. $sort=field1,-field2","required":false,"type":"string","in":"query"},{"name":"$limit","description":"The number of records to return","default":50,"required":false,"type":"integer","in":"query"},{"name":"$rawQuery","description":"A mongodb json find statement as a string. e.g. {\"field1\": 1}","required":false,"type":"string","in":"query"},{"name":"$skip","description":"The records to skip","default":0,"required":false,"type":"integer","in":"query"},{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"query":{"$filter":true,"$select":true,"$sort":true,"$limit":true,"$rawQuery":true,"$skip":true},"path":{"flowId":true}}},"post":{"tags":["Flow Triggers"],"summary":"Creates a Flow Triggers","description":"","responses":{"201":{"description":"Returns the created Flow Trigger"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"409":{"description":"Conflict, item exists"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/flows/{flowId}/steps":{"post":{"tags":["Flows"],"summary":"Saves the steps","description":"","responses":{"200":{"description":"No content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/flows/{flowId}/map/insert":{"post":{"tags":["Flows"],"summary":"Inserts a step into the flow map","description":"","responses":{"200":{"description":"The inserted step"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/flows/{flowId}/control-step/swap/{swapOption}":{"put":{"tags":["Flows"],"summary":"Swaps a control step in the flow","description":"","responses":{"204":{"description":"No content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"swapOption","in":"path","type":"string","required":true},{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/flows/{flowId}/control-step/copy":{"put":{"tags":["Flows"],"summary":"Gets the copied control step","description":"","responses":{"200":{"description":"Returns a copied control step"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/flows/{flowId}/control-step/copy/add":{"put":{"tags":["Flows"],"summary":"Adds a copied control step to the flow","description":"","responses":{"204":{"description":"No content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/flows/{flowId}/map/steps/{mapStepId}":{"put":{"tags":["Flows"],"summary":"Updates a step in the map","description":"","responses":{"200":{"description":"The new map"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"mapStepId","in":"path","type":"string","required":true},{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}},"delete":{"tags":["Flows"],"summary":"Deletes a step in the map","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"mapStepId","in":"path","type":"string","required":true},{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/flows/{flowId}/map/returns/{endStepId}":{"put":{"tags":["Flows"],"summary":"Updates the returns in a subflow","description":"","responses":{"200":{"description":"The new subflow returns"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"endStepId","in":"path","type":"string","required":true},{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/flows/{flowId}/map/{subFlowStepId}/parentField/{field}":{"put":{"tags":["Flows"],"summary":"Updates the returns in a subflow","description":"","responses":{"200":{"description":"The new subflow returns"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"subFlowStepId","in":"path","type":"string","required":true},{"name":"field","in":"path","type":"string","required":true},{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/flows/{flowId}/map/{startStepId}/properties":{"put":{"tags":["Flows"],"summary":"Updates the subflow properties","description":"","responses":{"200":{"description":"The new subflow map"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"startStepId","in":"path","type":"string","required":true},{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/flows/{flowId}/map":{"put":{"tags":["Flows"],"summary":"Saves the Steps Map","description":"","responses":{"200":{"description":"Updated map"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/flows/{flowId}/flowTriggers":{"post":{"tags":["Flows"],"summary":"Saves the Flow Triggers","description":"","responses":{"200":{"description":"No content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/flows/{flowId}/runs/stats":{"get":{"tags":["Flows"],"summary":"Gets the Run stats for a Flow","description":"","responses":{"200":{"description":"The Flow Run stats"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/flows/{flowId}/runs/stats/{targetDate}":{"get":{"tags":["Flows"],"summary":"Gets the Run stats for a Flow for a specific target date","description":"","responses":{"200":{"description":"The Flow Run stats"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"targetDate","in":"path","type":"string","required":true},{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/flows/{flowId}/export":{"get":{"tags":["Flows"],"summary":"Export a Flow","description":"","responses":{"200":{"description":"The exported Flow"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/flows/import":{"post":{"tags":["Flows"],"summary":"Imports a flow","description":"","responses":{"201":{"description":"Returns the imported flow and its components"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"409":{"description":"Conflict, item exists"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/agencyfuse/organizations(?:/([^/]+?))/flows/import/update":{"post":{"tags":["Flows"],"summary":"Imports a flow","description":"","responses":{"201":{"description":"Returns the updated import flow and its components"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"409":{"description":"Conflict, item exists"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/agencyfuse/organizations(?:/([^/]+?))/flows/{flowId}/parentFlows":{"get":{"tags":["Flows"],"summary":"Get the Parent Flows","description":"","responses":{"200":{"description":"A list of parent flows"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/flows/{flowId}/runs/{runId}":{"get":{"tags":["Flows"],"summary":"Retrieves a Run for a flow","description":"","responses":{"200":{"description":"Returns a specific Run"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"},{"name":"runId","description":"The unique id of the run","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true,"runId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/flows/{flowId}/copy":{"post":{"tags":["Flows"],"summary":"Copies a flow","description":"","responses":{"201":{"description":"The copied Flow"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/flows/{flowId}/checkStepsAllowed":{"get":{"tags":["Flows"],"summary":"Checks flow for blacklisted steps","description":"","responses":{"201":{"description":"The Flow steps are valid"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/flows/{flowId}/execute":{"post":{"tags":["Flows"],"summary":"Executes a Flow and creates a run","description":"","responses":{"200":{"description":"The results of the synchronous Flows Run results."},"202":{"description":"The details of the run being executed. "},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"412":{"description":"Precondition failed"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}},"get":{"tags":["Flows"],"summary":"Executes a synchronous Flow and returns the results.","description":"","responses":{"200":{"description":"The Flows synchronous results"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/flows/{flowId}/test/{toMapStepId}":{"post":{"tags":["Flows"],"summary":"Runs a flow without source and destination as a test","description":"","responses":{"200":{"description":"Runs a flow as a test with given input"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"toMapStepId","in":"path","type":"string","required":true},{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/flows/{flowId}/purge":{"post":{"tags":["Flows"],"summary":"Purges flow items like runes, records and events","description":"","responses":{"200":{"description":"The number of records purged"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/flows/{flowId}/resetSequence":{"put":{"tags":["Flows"],"summary":"Resets a Flows sequence number","description":"","responses":{"204":{"description":"No content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/flows/{flowId}/records":{"delete":{"tags":["Flows"],"summary":"Deletes all the Run Records associated with this Flow.","description":"","responses":{"200":{"description":"The result of the purge."},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/flows/{flowId}/steps/{stepId}":{"delete":{"tags":["Flows"],"summary":"Deletes a specific step.","description":"","responses":{"204":{"description":"No content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"stepId","in":"path","type":"string","required":true},{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/flows/{flowId}/triggers/{flowTriggerId}":{"get":{"tags":["Flow Triggers"],"summary":"Retrieves a Flow Trigger","description":"","responses":{"200":{"description":"Returns a Flow Trigger"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowTriggerId","in":"path","type":"string","required":true},{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}},"put":{"tags":["Flow Triggers"],"summary":"Updates a Flow Trigger","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowTriggerId","in":"path","type":"string","required":true},{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}},"delete":{"tags":["Flow Triggers"],"summary":"Deletes a Flow Trigger","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowTriggerId","in":"path","type":"string","required":true},{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}},"patch":{"tags":["Flow Triggers"],"summary":"Patches a Flow Trigger given the JSON Patch","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowTriggerId","in":"path","type":"string","required":true},{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}},"merge":{"tags":["Flow Triggers"],"summary":"Merges the object on the body with the Flow Trigger","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowTriggerId","in":"path","type":"string","required":true},{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/flows/{flowId}/triggers/{flowTriggerId}/attach":{"put":{"tags":["Flow Triggers"],"summary":"Attaches a Flow Trigger","description":"","responses":{"204":{"description":"No content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowTriggerId","in":"path","type":"string","required":true},{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/flows/{flowId}/triggers/{flowTriggerId}/detach":{"put":{"tags":["Flow Triggers"],"summary":"Detaches a Flow Trigger","description":"","responses":{"204":{"description":"No content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowTriggerId","in":"path","type":"string","required":true},{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/flows/{flowId}/triggers/{flowTriggerId}/reattach":{"put":{"tags":["Flow Triggers"],"summary":"Detaches and Attaches a Flow Trigger","description":"","responses":{"204":{"description":"No content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowTriggerId","in":"path","type":"string","required":true},{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/flows/{flowId}/triggers/{flowTriggerId}/enable":{"put":{"tags":["Flow Triggers"],"summary":"Enables a Flow Trigger","description":"","responses":{"204":{"description":"No content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowTriggerId","in":"path","type":"string","required":true},{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/flows/{flowId}/triggers/{flowTriggerId}/disable":{"put":{"tags":["Flow Triggers"],"summary":"Disables a Flow Trigger","description":"","responses":{"204":{"description":"No content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowTriggerId","in":"path","type":"string","required":true},{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/flows/{flowId}/records/clean":{"post":{"tags":["Flows"],"summary":"Cleans all the Run Records associated with this Flow.","description":"","responses":{"200":{"description":"The results of the clean"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/flows/{flowId}/versions":{"get":{"tags":["Flows"],"summary":"Queries a Flows Versions","description":"","responses":{"200":{"description":"An array of flow versions"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"$filter","description":"The odata formatted filter e.g. $filter=field eq value","required":false,"type":"string","in":"query"},{"name":"$select","description":"The fields to select e.g. $select=field1,field2","required":false,"type":"string","in":"query"},{"name":"$sort","description":"The sort order of records e.g. $sort=field1,-field2","required":false,"type":"string","in":"query"},{"name":"$limit","description":"The number of records to return","default":50,"required":false,"type":"integer","in":"query"},{"name":"$rawQuery","description":"A mongodb json find statement as a string. e.g. {\"field1\": 1}","required":false,"type":"string","in":"query"},{"name":"$skip","description":"The records to skip","default":0,"required":false,"type":"integer","in":"query"},{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"query":{"$filter":true,"$select":true,"$sort":true,"$limit":true,"$rawQuery":true,"$skip":true},"path":{"flowId":true}}},"post":{"tags":["Flows"],"summary":"Commits a new version of a Flow","description":"","responses":{"201":{"description":"Returns a response from the flow version commit"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"$filter","description":"The odata formatted filter e.g. $filter=field eq value","required":false,"type":"string","in":"query"},{"name":"$select","description":"The fields to select e.g. $select=field1,field2","required":false,"type":"string","in":"query"},{"name":"$sort","description":"The sort order of records e.g. $sort=field1,-field2","required":false,"type":"string","in":"query"},{"name":"$limit","description":"The number of records to return","default":50,"required":false,"type":"integer","in":"query"},{"name":"$rawQuery","description":"A mongodb json find statement as a string. e.g. {\"field1\": 1}","required":false,"type":"string","in":"query"},{"name":"$skip","description":"The records to skip","default":0,"required":false,"type":"integer","in":"query"},{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"query":{"$filter":true,"$select":true,"$sort":true,"$limit":true,"$rawQuery":true,"$skip":true},"path":{"flowId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/flows/{flowId}/versions/{versionId}":{"get":{"tags":["Flows"],"summary":"Returns a version of a Flow","description":"","responses":{"200":{"description":"A version of a Flow"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"versionId","in":"path","type":"string","required":true},{"name":"$filter","description":"The odata formatted filter e.g. $filter=field eq value","required":false,"type":"string","in":"query"},{"name":"$select","description":"The fields to select e.g. $select=field1,field2","required":false,"type":"string","in":"query"},{"name":"$sort","description":"The sort order of records e.g. $sort=field1,-field2","required":false,"type":"string","in":"query"},{"name":"$limit","description":"The number of records to return","default":50,"required":false,"type":"integer","in":"query"},{"name":"$rawQuery","description":"A mongodb json find statement as a string. e.g. {\"field1\": 1}","required":false,"type":"string","in":"query"},{"name":"$skip","description":"The records to skip","default":0,"required":false,"type":"integer","in":"query"},{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"query":{"$filter":true,"$select":true,"$sort":true,"$limit":true,"$rawQuery":true,"$skip":true},"path":{"flowId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/flows/{flowId}/versions/{versionId}/checkout":{"post":{"tags":["Flows"],"summary":"Checks out a version of a FLow","description":"","responses":{"204":{"description":"Returns a response from the flow version checkout"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"versionId","in":"path","type":"string","required":true},{"name":"$filter","description":"The odata formatted filter e.g. $filter=field eq value","required":false,"type":"string","in":"query"},{"name":"$select","description":"The fields to select e.g. $select=field1,field2","required":false,"type":"string","in":"query"},{"name":"$sort","description":"The sort order of records e.g. $sort=field1,-field2","required":false,"type":"string","in":"query"},{"name":"$limit","description":"The number of records to return","default":50,"required":false,"type":"integer","in":"query"},{"name":"$rawQuery","description":"A mongodb json find statement as a string. e.g. {\"field1\": 1}","required":false,"type":"string","in":"query"},{"name":"$skip","description":"The records to skip","default":0,"required":false,"type":"integer","in":"query"},{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"query":{"$filter":true,"$select":true,"$sort":true,"$limit":true,"$rawQuery":true,"$skip":true},"path":{"flowId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/flows/{flowId}/versions/{versionId}/deploy":{"post":{"tags":["Flows"],"summary":"Deploys a version of a flow that will run by default when a flow is run","description":"","responses":{"204":{"description":"Returns a response from the flow version deployment"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"versionId","in":"path","type":"string","required":true},{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/flows/{flowId}/discard-changes":{"post":{"tags":["Flows"],"summary":"Discard changes on a flow and checks out the last deployed version","description":"","responses":{"204":{"description":"Returns a response from discarding a changes on a flow"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/flows":{"get":{"tags":["Flows"],"summary":"Queries the Flows","description":"","responses":{"200":{"description":"Returns an array of Flows"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"$filter","description":"The odata formatted filter e.g. $filter=field eq value","required":false,"type":"string","in":"query"},{"name":"$select","description":"The fields to select e.g. $select=field1,field2","required":false,"type":"string","in":"query"},{"name":"$sort","description":"The sort order of records e.g. $sort=field1,-field2","required":false,"type":"string","in":"query"},{"name":"$limit","description":"The number of records to return","default":50,"required":false,"type":"integer","in":"query"},{"name":"$rawQuery","description":"A mongodb json find statement as a string. e.g. {\"field1\": 1}","required":false,"type":"string","in":"query"},{"name":"$skip","description":"The records to skip","default":0,"required":false,"type":"integer","in":"query"}],"addedParameters":{"query":{"$filter":true,"$select":true,"$sort":true,"$limit":true,"$rawQuery":true,"$skip":true}}},"post":{"tags":["Flows"],"summary":"Creates a Flow","description":"","responses":{"201":{"description":"Returns the created Flow"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"409":{"description":"Conflict, item exists"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/agencyfuse/organizations(?:/([^/]+?))/flows/{flowId}":{"get":{"tags":["Flows"],"summary":"Retrieves a Flow","description":"","responses":{"200":{"description":"Returns a Flow"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}},"put":{"tags":["Flows"],"summary":"Updates a Flow","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}},"delete":{"tags":["Flows"],"summary":"Deletes a Flow","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}},"patch":{"tags":["Flows"],"summary":"Patches a Flow given the JSON Patch","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}},"merge":{"tags":["Flows"],"summary":"Merges the object on the body with the Flow","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"flowId","description":"The unique name of the Flow","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"flowId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/runs":{"get":{"tags":["Runs"],"summary":"Queries the Runs","description":"","responses":{"200":{"description":"Returns an array of Runs"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"$filter","description":"The odata formatted filter e.g. $filter=field eq value","required":false,"type":"string","in":"query"},{"name":"$select","description":"The fields to select e.g. $select=field1,field2","required":false,"type":"string","in":"query"},{"name":"$sort","description":"The sort order of records e.g. $sort=field1,-field2","required":false,"type":"string","in":"query"},{"name":"$limit","description":"The number of records to return","default":50,"required":false,"type":"integer","in":"query"},{"name":"$rawQuery","description":"A mongodb json find statement as a string. e.g. {\"field1\": 1}","required":false,"type":"string","in":"query"},{"name":"$skip","description":"The records to skip","default":0,"required":false,"type":"integer","in":"query"}],"addedParameters":{"query":{"$filter":true,"$select":true,"$sort":true,"$limit":true,"$rawQuery":true,"$skip":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/runs/storage-stats":{"get":{"tags":["Runs"],"summary":"Retrieves the storage statistics for a run","description":"","responses":{"200":{"description":"The storage stats"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/agencyfuse/organizations(?:/([^/]+?))/runs/stats":{"get":{"tags":["Runs"],"summary":"Retrieves the statistics for a run","description":"","responses":{"200":{"description":"Gets the run statistics for the current date"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/agencyfuse/organizations(?:/([^/]+?))/runs/stats/{targetDate}":{"get":{"tags":["Runs"],"summary":"Retrieves the statistics for a run","description":"","responses":{"200":{"description":"Gets the run statistics for a specific target date"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"targetDate","in":"path","type":"string","required":true}]}},"/v1/agencyfuse/organizations(?:/([^/]+?))/runs/analysis":{"get":{"tags":["Runs"],"summary":"Retrieves the statistics for a run","description":"","responses":{"200":{"description":"Gets the run analysis"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/agencyfuse/organizations(?:/([^/]+?))/runs/records/{recordId}":{"get":{"tags":["Runs"],"summary":"Retrieves a Runs Records","description":"","responses":{"200":{"description":"Returns the records for a run"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"recordId","in":"path","type":"string","required":true}]}},"/v1/agencyfuse/organizations(?:/([^/]+?))/runs/{runId}":{"get":{"tags":["Runs"],"summary":"Retrieves a Run","description":"","responses":{"200":{"description":"Returns a specific Run"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"runId","description":"The unique id of the run","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"runId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/runs/{runId}/rerun":{"post":{"tags":["Runs"],"summary":"Reruns a run.","description":"","responses":{"202":{"description":"The new run"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"runId","description":"The unique id of the run","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"runId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/runs/{runId}/cancel":{"post":{"tags":["Runs"],"summary":"Cancels a run.","description":"","responses":{"204":{"description":"No Content"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"runId","description":"The unique id of the run","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"runId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/runs/{runId}/records":{"get":{"tags":["Runs"],"summary":"Retrieves a Runs Records","description":"","responses":{"200":{"description":"Returns the records for a run"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"runId","description":"The unique id of the run","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"runId":true}}},"delete":{"tags":["Runs"],"summary":"Deletes all the Run Records associated with this Run.","description":"","responses":{"200":{"description":"The result of the purge."},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"runId","description":"The unique id of the run","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"runId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/runs/{runId}/records/clean":{"post":{"tags":["Runs"],"summary":"Cleans all the Run Records associated with this Run.","description":"","responses":{"200":{"description":"The results of the clean"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"runId","description":"The unique id of the run","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"runId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/runs/{runId}/records/count":{"get":{"tags":["Runs"],"summary":"Retrieves a count of the Runs Records","description":"","responses":{"200":{"description":"Returns the total number records for a run"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"runId","description":"The unique id of the run","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"runId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/runs/{runId}/records/{recordId}":{"get":{"tags":["Runs"],"summary":"Retrieves a Runs Records","description":"","responses":{"200":{"description":"Returns the records for a run"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"recordId","in":"path","type":"string","required":true},{"name":"runId","description":"The unique id of the run","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"runId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/runs/{runId}/events":{"get":{"tags":["Runs"],"summary":"Retrieves a Runs Events","description":"","responses":{"200":{"description":"Returns the events for a run"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"runId","description":"The unique id of the run","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"runId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/runs/{runId}/events/{eventId}":{"get":{"tags":["Runs"],"summary":"Retrieves a Runs Events","description":"","responses":{"200":{"description":"Returns the Events for a run"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"eventId","in":"path","type":"string","required":true},{"name":"runId","description":"The unique id of the run","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"runId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/runs/{runId}/map":{"get":{"tags":["Runs"],"summary":"Gets a run map detailing runs run from another run","description":"","responses":{"200":{"description":"Returns the map for the run"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"runId","description":"The unique id of the run","required":true,"type":"string","in":"path"}],"addedParameters":{"path":{"runId":true}}}},"/v1/agencyfuse/organizations(?:/([^/]+?))/ams360-webhooks":{"get":{"tags":["AgencyFuseAms360Webhooks"],"summary":"Lists AMS webhooks for the organization","description":"","responses":{"200":{"description":"Returns an array of AMS webhooks"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"$filter","description":"The odata formatted filter e.g. $filter=field eq value","required":false,"type":"string","in":"query"},{"name":"$select","description":"The fields to select e.g. $select=field1,field2","required":false,"type":"string","in":"query"},{"name":"$sort","description":"The sort order of records e.g. $sort=field1,-field2","required":false,"type":"string","in":"query"},{"name":"$limit","description":"The number of records to return","default":50,"required":false,"type":"integer","in":"query"},{"name":"$rawQuery","description":"A mongodb json find statement as a string. e.g. {\"field1\": 1}","required":false,"type":"string","in":"query"},{"name":"$skip","description":"The records to skip","default":0,"required":false,"type":"integer","in":"query"}],"addedParameters":{"query":{"$filter":true,"$select":true,"$sort":true,"$limit":true,"$rawQuery":true,"$skip":true}}},"post":{"tags":["AgencyFuseAms360Webhooks"],"summary":"Creates an AMS webhook","description":"","responses":{"201":{"description":"Returns the created AMS webhook with plaintext authCode (only shown once)"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"409":{"description":"Conflict, item exists"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/agencyfuse/organizations(?:/([^/]+?))/ams360-webhooks/{id}":{"get":{"tags":["AgencyFuseAms360Webhooks"],"summary":"Retrieves a single AMS webhook","description":"","responses":{"200":{"description":"Returns the AMS webhook"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"id","in":"path","type":"string","required":true}]},"delete":{"tags":["AgencyFuseAms360Webhooks"],"summary":"Deletes an AMS webhook","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"id","in":"path","type":"string","required":true}]},"patch":{"tags":["AgencyFuseAms360Webhooks"],"summary":"Updates name, flowId, or connectionId on an AMS webhook","description":"","responses":{"204":{"description":"No Content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"id","in":"path","type":"string","required":true}]}},"/v1/agencyfuse/organizations(?:/([^/]+?))/ams360-webhooks/{id}/regenerate-auth":{"post":{"tags":["AgencyFuseAms360Webhooks"],"summary":"Regenerates the auth code for an AMS webhook","description":"","responses":{"200":{"description":"Returns the updated webhook with the new plaintext authCode (only shown once)"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"id","in":"path","type":"string","required":true}]}},"/v1/agencyfuse/organizations(?:/([^/]+?))/file-stash/upload":{"post":{"tags":["FileStash"],"summary":"Upload a file to the file stash","description":"","responses":{"201":{"description":"File uploaded successfully"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/agencyfuse/organizations(?:/([^/]+?))/file-stash/create-folder":{"post":{"tags":["FileStash"],"summary":"Creates a folder on file stash","description":"","responses":{"201":{"description":"Folder created successfully"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/agencyfuse/organizations(?:/([^/]+?))/file-stash/files":{"get":{"tags":["FileStash"],"summary":"List files in the file stash","description":"","responses":{"200":{"description":"List of files in the file stash (array or paginated object)"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/agencyfuse/organizations(?:/([^/]+?))/file-stash/files/{fileName}":{"get":{"tags":["FileStash"],"summary":"Download a file from the file stash","description":"","responses":{"200":{"description":"File content"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"fileName","in":"path","type":"string","required":true}]},"delete":{"tags":["FileStash"],"summary":"Delete a file from the file stash","description":"","responses":{"200":{"description":"File deleted successfully"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"fileName","in":"path","type":"string","required":true}]}},"/v1/agencyfuse/organizations(?:/([^/]+?))/file-stash/files/{fileName}/download-url":{"get":{"tags":["FileStash"],"summary":"Get a signed download URL for a file","description":"","responses":{"200":{"description":"Signed download URL"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"fileName","in":"path","type":"string","required":true}]}},"/v1/agencyfuse/organizations(?:/([^/]+?))/file-stash/files/{fileName}/upload-url":{"get":{"tags":["FileStash"],"summary":"Get a signed upload URL for a file","description":"","responses":{"200":{"description":"Signed upload URL"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"fileName","in":"path","type":"string","required":true}]}},"/v1/agencyfuse/organizations(?:/([^/]+?))/file-stash/files/{sourceFileName}/copy":{"post":{"tags":["FileStash"],"summary":"Copy a file within the file stash","description":"","responses":{"200":{"description":"File copied successfully"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"sourceFileName","in":"path","type":"string","required":true}]}},"/v1/agencyfuse/organizations(?:/([^/]+?))/file-stash/files/{sourceFileName}/move":{"post":{"tags":["FileStash"],"summary":"Move a file within the file stash","description":"","responses":{"200":{"description":"File moved successfully"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"sourceFileName","in":"path","type":"string","required":true}]}},"/v1/agencyfuse/organizations(?:/([^/]+?))/assist-api-keys":{"post":{"tags":["AgencyFuseAssistAPIKeys"],"summary":"Creates an Assist API key","description":"","responses":{"201":{"description":"Returns the created Assist API key including the plaintext key (only shown once)"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"403":{"description":"Forbidden"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]},"get":{"tags":["AgencyFuseAssistAPIKeys"],"summary":"Lists Assist API keys for the organization","description":"","responses":{"200":{"description":"Returns an array of Assist API keys for the organization"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[]}},"/v1/agencyfuse/organizations(?:/([^/]+?))/assist-api-keys/{keyId}":{"get":{"tags":["AgencyFuseAssistAPIKeys"],"summary":"Retrieves a single Assist API key","description":"","responses":{"200":{"description":"Returns the Assist API key"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"keyId","in":"path","type":"string","required":true}]},"patch":{"tags":["AgencyFuseAssistAPIKeys"],"summary":"Updates description, connections, valid, or ttl on an Assist API key","description":"","responses":{"200":{"description":"Returns the updated Assist API key"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"keyId","in":"path","type":"string","required":true}]},"delete":{"tags":["AgencyFuseAssistAPIKeys"],"summary":"Deletes an Assist API key","description":"","responses":{"200":{"description":"The Assist API key was deleted"},"400":{"description":"Validation error"},"401":{"description":"Not Authorised"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"},"500":{"description":"Server Error","schema":{"$ref":"#/definitions/serverError"}}},"parameters":[{"name":"keyId","in":"path","type":"string","required":true}]}}},"definitions":{"serverError":{"description":"A Server Error","type":"object","properties":{"statusCode":{"type":"integer"},"message":{"type":"string"},"error":{"type":["string","object"]}}}},"tags":[{"name":"Info","description":"Information about the api"},{"name":"Steps","description":"Steps"},{"name":"Home","description":"Home"},{"name":"Users Permissions","description":"Users permissions service"},{"name":"Users","description":"Users service"},{"name":"Parameters","description":"A Parameter is a global variable that can be used in flows"},{"name":"Flows","description":"A Flow defines a specific end to end process that can be executed at any time"},{"name":"Runs","description":"A Synatic Run"},{"name":"Validator","description":"Validator"},{"name":"Content","description":"Content display service"},{"name":"Event Logs","description":"Event Logs"},{"name":"Buffers","description":"A Buffer."},{"name":"DataStores","description":"A DataStore."},{"name":"Relays","description":"A Relay."},{"name":"Comments","description":"A Comment."},{"name":"UserFiles","description":"A User File."},{"name":"Billing","description":"The billing for the organization."},{"name":"Files","description":"Files generated by Synatic"},{"name":"Solutions","description":"A Solution."},{"name":"OpsViews","description":"A Operations View."},{"name":"ServiceViews","description":"A Service View."},{"name":"Org Links","description":"A Org Link."},{"name":"Hive Sync","description":"Synchronizes data from the global db with the on prem db via the Hive API"},{"name":"MCPs","description":"An MCP connection."},{"name":"Entity Sync","description":"Plan, preview and execute cross-organization entity sync operations"}]}