{
  "openapi": "3.0.1",
  "info": {
    "title": "Partners API",
    "version": "v1"
  },
  "paths": {
    "/partners/v1/assessments/{id}": {
      "put": {
        "tags": [
          "Assessments"
        ],
        "summary": "Update assessment order",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-TL-CompanyId",
            "in": "header",
            "description": "Company Id",
            "schema": {
              "type": "guid"
            }
          },
          {
            "name": "X-TL-Subdomain",
            "in": "header",
            "description": "Account subdomain",
            "schema": {
              "type": "guid"
            }
          },
          {
            "name": "X-TL-UserId",
            "in": "header",
            "description": "Team member id",
            "schema": {
              "type": "guid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/Adopto.Common.Api.Dto.AssessmentResultWrite"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Adopto.Common.Api.Dto.AssessmentResultWrite"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Adopto.Common.Api.Dto.AssessmentResultWrite"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Adopto.Common.Api.Dto.AssessmentResultWrite"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Adopto.Client.Web.Api.Utils.Errors.ErrorResultModel"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Adopto.Client.Web.Api.Utils.Errors.ErrorResultModel"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Adopto.Client.Web.Api.Utils.Errors.ErrorResultModel"
                }
              }
            }
          },
          "422": {
            "description": "Client Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Adopto.Client.Web.Api.Utils.Errors.ErrorResultModel"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Adopto.Client.Web.Api.Utils.Errors.ErrorResultModel"
                }
              }
            }
          }
        }
      }
    },
    "/partners/v1/assessments/custom/testdome": {
      "post": {
        "tags": [
          "Assessments"
        ],
        "summary": "Testdome",
        "parameters": [
          {
            "name": "X-TL-CompanyId",
            "in": "header",
            "description": "Company Id",
            "schema": {
              "type": "guid"
            }
          },
          {
            "name": "X-TL-Subdomain",
            "in": "header",
            "description": "Account subdomain",
            "schema": {
              "type": "guid"
            }
          },
          {
            "name": "X-TL-UserId",
            "in": "header",
            "description": "Team member id",
            "schema": {
              "type": "guid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": { }
            },
            "application/json": {
              "schema": { }
            },
            "text/json": {
              "schema": { }
            },
            "application/*+json": {
              "schema": { }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Adopto.Client.Web.Api.Utils.Errors.ErrorResultModel"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Adopto.Client.Web.Api.Utils.Errors.ErrorResultModel"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Adopto.Client.Web.Api.Utils.Errors.ErrorResultModel"
                }
              }
            }
          },
          "422": {
            "description": "Client Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Adopto.Client.Web.Api.Utils.Errors.ErrorResultModel"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Adopto.Client.Web.Api.Utils.Errors.ErrorResultModel"
                }
              }
            }
          }
        }
      }
    },
    "/partners/v1/jobboards/{id}/indeed/{jobId}/screening_questions": {
      "get": {
        "tags": [
          "JobBoards"
        ],
        "summary": "Indeed screening questions",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "jobId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "country",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "language",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-TL-CompanyId",
            "in": "header",
            "description": "Company Id",
            "schema": {
              "type": "guid"
            }
          },
          {
            "name": "X-TL-Subdomain",
            "in": "header",
            "description": "Account subdomain",
            "schema": {
              "type": "guid"
            }
          },
          {
            "name": "X-TL-UserId",
            "in": "header",
            "description": "Team member id",
            "schema": {
              "type": "guid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": { }
              },
              "application/xml": {
                "schema": { }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Adopto.Client.Web.Api.Utils.Errors.ErrorResultModel"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/Adopto.Client.Web.Api.Utils.Errors.ErrorResultModel"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Adopto.Client.Web.Api.Utils.Errors.ErrorResultModel"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/Adopto.Client.Web.Api.Utils.Errors.ErrorResultModel"
                }
              }
            }
          },
          "422": {
            "description": "Client Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Adopto.Client.Web.Api.Utils.Errors.ErrorResultModel"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/Adopto.Client.Web.Api.Utils.Errors.ErrorResultModel"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Adopto.Client.Web.Api.Utils.Errors.ErrorResultModel"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/Adopto.Client.Web.Api.Utils.Errors.ErrorResultModel"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Adopto.Client.Web.Api.Utils.Errors.ErrorResultModel": {
        "type": "object",
        "properties": {
          "Message": {
            "type": "string",
            "description": "Frendly Message",
            "nullable": true
          },
          "Errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Adopto.Client.Web.Api.Utils.Errors.ValidationError"
            },
            "description": "Errors list",
            "nullable": true
          },
          "ErrorCode": {
            "type": "integer",
            "description": "Error code",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Error result model"
      },
      "Adopto.Client.Web.Api.Utils.Errors.ValidationError": {
        "type": "object",
        "properties": {
          "Field": {
            "type": "string",
            "description": "",
            "nullable": true
          },
          "Message": {
            "type": "string",
            "description": "",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": ""
      },
      "Adopto.Common.Api.Dto.Admin.FileDto": {
        "type": "object",
        "properties": {
          "FileName": {
            "type": "string",
            "nullable": true
          },
          "Content": {
            "type": "string",
            "nullable": true
          },
          "Url": {
            "type": "string",
            "nullable": true
          },
          "ConvertedUrl": {
            "type": "string",
            "nullable": true
          },
          "ContentType": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Adopto.Common.Api.Dto.AssessmentResultDetailsWrite": {
        "type": "object",
        "properties": {
          "Score": {
            "maxLength": 250,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "Summary": {
            "type": "string",
            "nullable": true
          },
          "Duration": {
            "type": "integer",
            "format": "int32"
          },
          "Details": {
            "nullable": true
          },
          "Grade": {
            "$ref": "#/components/schemas/TalentLyft.Data.Enumerators.AssessmentResultGradeTypes"
          },
          "Attachments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Adopto.Common.Api.Dto.Admin.FileDto"
            },
            "nullable": true
          },
          "ResultUrl": {
            "maxLength": 2000,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "ResultsUrl": {
            "maxLength": 2000,
            "minLength": 0,
            "type": "string",
            "nullable": true,
            "deprecated": true
          },
          "CapturedImages": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "RawData": {
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Adopto.Common.Api.Dto.AssessmentResultWrite": {
        "type": "object",
        "properties": {
          "OrderId": {
            "type": "string",
            "format": "uuid"
          },
          "Status": {
            "$ref": "#/components/schemas/TalentLyft.Data.Enumerators.AssessmentResultStatusTypes"
          },
          "Result": {
            "$ref": "#/components/schemas/Adopto.Common.Api.Dto.AssessmentResultDetailsWrite"
          }
        },
        "additionalProperties": false
      },
      "TalentLyft.Data.Enumerators.AssessmentResultGradeTypes": {
        "enum": [
          "Average",
          "Superior",
          "Poor",
          "BelowAverage"
        ],
        "type": "string"
      },
      "TalentLyft.Data.Enumerators.AssessmentResultStatusTypes": {
        "enum": [
          "SendingToProvider",
          "Pending",
          "Completed",
          "Declined",
          "Rejected",
          "Expired",
          "NotOrdered"
        ],
        "type": "string"
      }
    },
    "securitySchemes": {
      "Bearer": {
        "type": "apiKey",
        "description": "Please enter JWT with Bearer into field",
        "name": "Authorization",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "Bearer": [ ]
    }
  ]
}