{
 "openapi": "3.1.0",
 "info": {
  "title": "Advertisements (Talent & Contingent Workforce)",
  "version": "20261030b",
  "description": "One job order on one board. Six boards is six of these, with six references, six expiry dates and six costs — which is why a flag per board would answer nothing."
 },
 "servers": [
  {
   "url": "https://{tenant}.tranxact.ai",
   "variables": {
    "tenant": {
     "default": "demo"
    }
   }
  }
 ],
 "components": {
  "securitySchemes": {
   "bearer": {
    "type": "http",
    "scheme": "bearer"
   }
  },
  "schemas": {
   "board-postings": {
    "type": "object",
    "required": [
     "job_order_id",
     "board_code",
     "title"
    ],
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "description": "Id",
      "readOnly": true
     },
     "org_id": {
      "type": "string",
      "format": "uuid",
      "description": "Org id",
      "readOnly": true
     },
     "org_unit_id": {
      "type": "string",
      "format": "uuid",
      "description": "Org unit id",
      "readOnly": true
     },
     "posting_no": {
      "type": "string",
      "description": "Posting no",
      "readOnly": true
     },
     "job_order_id": {
      "type": "string",
      "format": "uuid",
      "description": "Job order"
     },
     "connection_id": {
      "type": "string",
      "format": "uuid",
      "description": "Contract"
     },
     "board_code": {
      "type": "string",
      "description": "Board"
     },
     "title": {
      "type": "string",
      "description": "Advertised as"
     },
     "title_local": {
      "type": "string",
      "description": "Local title"
     },
     "description": {
      "type": "string",
      "description": "Advertisement"
     },
     "description_local": {
      "type": "string",
      "description": "Local advertisement"
     },
     "summary": {
      "type": "string",
      "description": "Summary"
     },
     "summary_local": {
      "type": "string",
      "description": "Summary local"
     },
     "location_text": {
      "type": "string",
      "description": "Location"
     },
     "work_arrangement": {
      "type": "string",
      "description": "Work arrangement"
     },
     "employment_type": {
      "type": "string",
      "description": "Employment type"
     },
     "is_confidential": {
      "type": "boolean",
      "description": "Do not name the client"
     },
     "display_company": {
      "type": "string",
      "description": "Show as"
     },
     "salary_from": {
      "type": "string",
      "format": "decimal",
      "description": "From"
     },
     "salary_to": {
      "type": "string",
      "format": "decimal",
      "description": "To"
     },
     "salary_period": {
      "type": "string",
      "description": "Salary period"
     },
     "currency": {
      "type": "string",
      "description": "Currency"
     },
     "show_salary": {
      "type": "boolean",
      "description": "Show the rate"
     },
     "skills": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "Skills"
     },
     "category": {
      "type": "string",
      "description": "Category"
     },
     "apply_url": {
      "type": "string",
      "description": "Apply at"
     },
     "apply_email": {
      "type": "string",
      "description": "Apply by mail"
     },
     "external_id": {
      "type": "string",
      "description": "External id",
      "readOnly": true
     },
     "external_url": {
      "type": "string",
      "description": "External url",
      "readOnly": true
     },
     "status": {
      "type": "string",
      "description": "Status",
      "readOnly": true
     },
     "posted_at": {
      "type": "string",
      "format": "date-time",
      "description": "Posted at",
      "readOnly": true
     },
     "expires_at": {
      "type": "string",
      "format": "date-time",
      "description": "Expires at",
      "readOnly": true
     },
     "removed_at": {
      "type": "string",
      "format": "date-time",
      "description": "Removed at",
      "readOnly": true
     },
     "last_synced_at": {
      "type": "string",
      "format": "date-time",
      "description": "Last synced at",
      "readOnly": true
     },
     "views": {
      "type": "integer",
      "description": "Views",
      "readOnly": true
     },
     "applications": {
      "type": "integer",
      "description": "Applications",
      "readOnly": true
     },
     "qualified": {
      "type": "integer",
      "description": "Qualified",
      "readOnly": true
     },
     "submitted": {
      "type": "integer",
      "description": "Submitted",
      "readOnly": true
     },
     "placed": {
      "type": "integer",
      "description": "Placed",
      "readOnly": true
     },
     "cost": {
      "type": "string",
      "format": "decimal",
      "description": "Cost",
      "readOnly": true
     },
     "error_message": {
      "type": "string",
      "description": "Error message",
      "readOnly": true
     },
     "notes": {
      "type": "string",
      "description": "Notes"
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "Created at",
      "readOnly": true
     },
     "created_by": {
      "type": "string",
      "format": "uuid",
      "description": "Created by",
      "readOnly": true
     },
     "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "Updated at",
      "readOnly": true
     },
     "updated_by": {
      "type": "string",
      "format": "uuid",
      "description": "Updated by",
      "readOnly": true
     },
     "xf_text_1": {
      "type": "string",
      "description": "Xf text 1",
      "readOnly": true
     },
     "xf_text_2": {
      "type": "string",
      "description": "Xf text 2",
      "readOnly": true
     },
     "xf_text_3": {
      "type": "string",
      "description": "Xf text 3",
      "readOnly": true
     },
     "xf_text_4": {
      "type": "string",
      "description": "Xf text 4",
      "readOnly": true
     },
     "xf_text_5": {
      "type": "string",
      "description": "Xf text 5",
      "readOnly": true
     },
     "xf_num_1": {
      "type": "string",
      "format": "decimal",
      "description": "Xf num 1",
      "readOnly": true
     },
     "xf_num_2": {
      "type": "string",
      "format": "decimal",
      "description": "Xf num 2",
      "readOnly": true
     },
     "xf_num_3": {
      "type": "string",
      "format": "decimal",
      "description": "Xf num 3",
      "readOnly": true
     },
     "xf_date_1": {
      "type": "string",
      "format": "date",
      "description": "Xf date 1",
      "readOnly": true
     },
     "xf_date_2": {
      "type": "string",
      "format": "date",
      "description": "Xf date 2",
      "readOnly": true
     }
    }
   }
  }
 },
 "security": [
  {
   "bearer": []
  }
 ],
 "paths": {
  "/api/ats/board-postings": {
   "get": {
    "summary": "list board-postings",
    "operationId": "list_board_postings_0_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "post": {
    "summary": "create board-postings",
    "operationId": "create_board_postings_1_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/ats/board-postings/{id}": {
   "get": {
    "summary": "get board-postings",
    "operationId": "get_board_postings_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "put": {
    "summary": "change board-postings",
    "operationId": "change_board_postings_1_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "delete": {
    "summary": "delete board-postings",
    "operationId": "delete_board_postings_2_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/ats/board-postings/{id}/copy": {
   "post": {
    "summary": "Copy",
    "operationId": "action_board_postings_0_6",
    "description": "Body keys: overrides, preview, withLines",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  }
 }
}