swagger: '2.0' info: version: 2020-08-01-preview title: Microsoft Azure AccessControlClient AccessConnector text:detectJailbreak API schemes: - https tags: - name: text:detectJailbreak paths: /text:detectJailbreak: post: operationId: microsoftAzureTextoperationsDetecttextjailbreak summary: Microsoft Azure Analyze Text Jailbreak description: A synchronous API for the analysis of text jailbreak. parameters: - $ref: '#/parameters/Azure.Core.Foundations.ApiVersionParameter' - name: body in: body description: The text jailbreak analysis request. required: true schema: $ref: '#/definitions/AnalyzeTextJailbreakOptions' responses: '200': description: The request has succeeded. schema: $ref: '#/definitions/AnalyzeTextJailbreakResult' default: description: An unexpected error response. schema: $ref: '#/definitions/Azure.Core.Foundations.ErrorResponse' headers: x-ms-error-code: type: string description: String error code indicating what went wrong. x-ms-examples: Detect Jailbreak: $ref: ./examples/DetectJailbreak.json tags: - text:detectJailbreak definitions: Azure.Core.Foundations.ErrorResponse: type: object description: A response containing error details. properties: error: $ref: '#/definitions/Azure.Core.Foundations.Error' description: The error object. required: - error AnalyzeTextJailbreakResult: type: object description: The text jailbreak analysis request. properties: jailbreakAnalysis: $ref: '#/definitions/JailbreakAnalysisResult' description: Analysis result for jailbreak. required: - jailbreakAnalysis Azure.Core.Foundations.InnerError: type: object description: An object containing more specific information about the error. As per Microsoft One API guidelines - https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses. properties: code: type: string description: One of a server-defined set of error codes. innererror: $ref: '#/definitions/Azure.Core.Foundations.InnerError' description: Inner error. AnalyzeTextJailbreakOptions: type: object description: The text jailbreak analysis request. properties: text: type: string description: The text needs to be analyzed if it attempt to jailbreak. We support a maximum of 1k Unicode characters (Unicode code points) in the text of one request. maxLength: 1000 required: - text Azure.Core.Foundations.Error: type: object description: The error object. properties: code: type: string description: One of a server-defined set of error codes. message: type: string description: A human-readable representation of the error. target: type: string description: The target of the error. details: type: array description: An array of details about specific errors that led to this reported error. items: $ref: '#/definitions/Azure.Core.Foundations.Error' x-ms-identifiers: [] innererror: $ref: '#/definitions/Azure.Core.Foundations.InnerError' description: An object containing more specific information than the current object about the error. required: - code - message JailbreakAnalysisResult: type: object description: The text jailbreak analysis response. properties: detected: type: boolean description: Analysis result for jailbreak. required: - detected parameters: Azure.Core.Foundations.ApiVersionParameter: name: api-version in: query description: The API version to use for this operation. required: true type: string minLength: 1 x-ms-parameter-location: method x-ms-client-name: apiVersion x-ms-parameterized-host: hostTemplate: '{endpoint}' useSchemePrefix: false parameters: - $ref: '#/parameters/Endpoint'