{
 "openapi": "3.1.0",
 "info": {
  "title": "Requirement Summaries (Talent & Contingent Workforce)",
  "version": "20261030b",
  "description": "What a role actually is, in three lines, and what makes it hard to fill — the most useful line on the record and the one nobody writes down."
 },
 "servers": [
  {
   "url": "https://{tenant}.tranxact.ai",
   "variables": {
    "tenant": {
     "default": "demo"
    }
   }
  }
 ],
 "components": {
  "securitySchemes": {
   "bearer": {
    "type": "http",
    "scheme": "bearer"
   }
  },
  "schemas": {
   "posting-summaries": {
    "type": "object",
    "required": [
     "summary"
    ],
    "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
     },
     "job_order_id": {
      "type": "string",
      "format": "uuid",
      "description": "Job order id",
      "readOnly": true
     },
     "posting_id": {
      "type": "string",
      "format": "uuid",
      "description": "Posting id",
      "readOnly": true
     },
     "headline": {
      "type": "string",
      "description": "Headline"
     },
     "headline_local": {
      "type": "string",
      "description": "Local headline"
     },
     "summary": {
      "type": "string",
      "description": "Summary"
     },
     "summary_local": {
      "type": "string",
      "description": "Local summary"
     },
     "must_have": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "Must have"
     },
     "nice_to_have": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "Nice to have"
     },
     "difficulty_note": {
      "type": "string",
      "description": "Why it is hard to fill"
     },
     "difficulty_note_local": {
      "type": "string",
      "description": "Local note"
     },
     "ideal_profile": {
      "type": "string",
      "description": "Who actually gets hired"
     },
     "source": {
      "type": "string",
      "description": "Source",
      "readOnly": true
     },
     "provider": {
      "type": "string",
      "description": "Provider",
      "readOnly": true
     },
     "model": {
      "type": "string",
      "description": "Model",
      "readOnly": true
     },
     "prompt_version": {
      "type": "integer",
      "description": "Prompt version",
      "readOnly": true
     },
     "agent_run_id": {
      "type": "string",
      "format": "uuid",
      "description": "Agent run id",
      "readOnly": true
     },
     "edited_by": {
      "type": "string",
      "format": "uuid",
      "description": "Edited by",
      "readOnly": true
     },
     "edited_at": {
      "type": "string",
      "format": "date-time",
      "description": "Edited at",
      "readOnly": true
     },
     "is_current": {
      "type": "boolean",
      "description": "Is current",
      "readOnly": true
     },
     "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/posting-summaries": {
   "get": {
    "summary": "list posting-summaries",
    "operationId": "list_posting_summaries_0_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "post": {
    "summary": "create posting-summaries",
    "operationId": "create_posting_summaries_1_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/ats/posting-summaries/{id}": {
   "get": {
    "summary": "get posting-summaries",
    "operationId": "get_posting_summaries_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "put": {
    "summary": "change posting-summaries",
    "operationId": "change_posting_summaries_1_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "delete": {
    "summary": "delete posting-summaries",
    "operationId": "delete_posting_summaries_2_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/ats/posting-summaries/{id}/copy": {
   "post": {
    "summary": "Copy",
    "operationId": "action_posting_summaries_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"
     }
    }
   }
  }
 }
}