Every API here is available over the APIs.io API and to AI agents over MCP.
openapi: 3.2.0
info:
title: Clusterhack Dev Company Vacants API
version: 1.3.0
description: 'Operations tagged company-vacants across 2 of this provider''s published API definitions: clusterhack-dev-openapi-original.json, clusterhack-dev-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://clusterhack.dev
description: Production. Not stated in the provider spec (no servers[]); the spec is served from https://clusterhack.dev/api/schema/ and its paths are rooted at /api/v1 and /geo-api.
tags:
- name: company-vacants
paths:
/api/v1/company-vacants/:
post:
operationId: company_vacants_create
description: 'The board of companies that are ABSENT from the system.
Despite the name this is not a job-vacancy model ("vacant" = not on the
platform): the row has name / description / website / logo and *no*
relational field at all — no FK, no M2M, not even a column that could hold
one (checked in ``models.py``, in every migration, and in the physical
SQLite schema). So there is no ORM hop to a ``CompanyModel``, the way
``Location`` reaches its team backwards through ``additionalinfoteam_set``,
and "usable by the company''s admins" stays unimplementable: the row *is* a
company, and one that is not on the platform, so no company on the platform
owns it.
But the router advertised POST/PUT/PATCH/DELETE and served none of them:
``CompanyScopedPermission`` resolves an owner from the payload, found none,
and answered 403 to everybody — including staff. (Worse, because the
serializer is ``fields = "__all__"`` and DRF drops unknown keys, a POST
carrying any ``company`` the caller administered *passed* the check and
created an ownerless row; the key was then discarded.)
The row does have a curator, just not a tenant one: the only management
path this model has ever had is Django admin. That makes it site-wide
reference data exactly like ``Citys`` and ``EventTypeModel``, so it takes
the same gate they do — ``StaffCatalogPermission``. Reads stay public;
the four advertised verbs are now really served, by the actor that really
owns them, with no schema change.'
tags:
- company-vacants
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CompanyModelVacantRequest'
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/CompanyModelVacantRequest'
multipart/form-data:
schema:
$ref: '#/components/schemas/CompanyModelVacantRequest'
required: true
security:
- jwtAuth: []
- tokenAuth: []
- cookieAuth: []
- basicAuth: []
responses:
'201':
content:
application/json:
schema:
$ref: '#/components/schemas/CompanyModelVacant'
description: ''
'400':
description: The request body failed validation.
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationError'
'401':
description: 'Not authenticated. The response carries `WWW-Authenticate: Bearer realm="api"`; obtain or refresh a token and retry.'
headers:
WWW-Authenticate:
description: Always `Bearer realm="api"`.
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorDetail'
'403':
description: Authenticated, but not permitted to perform this action on this object.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorDetail'
'429':
description: Rate limit exceeded (see `DEFAULT_THROTTLE_RATES`). `Retry-After` gives the number of seconds to wait.
headers:
Retry-After:
description: Seconds until the caller may retry.
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorDetail'
'500':
description: Unhandled server error.
summary: Company vacants create
x-summary-source: derived
get:
operationId: company_vacants_list
description: 'The board of companies that are ABSENT from the system.
Despite the name this is not a job-vacancy model ("vacant" = not on the
platform): the row has name / description / website / logo and *no*
relational field at all — no FK, no M2M, not even a column that could hold
one (checked in ``models.py``, in every migration, and in the physical
SQLite schema). So there is no ORM hop to a ``CompanyModel``, the way
``Location`` reaches its team backwards through ``additionalinfoteam_set``,
and "usable by the company''s admins" stays unimplementable: the row *is* a
company, and one that is not on the platform, so no company on the platform
owns it.
But the router advertised POST/PUT/PATCH/DELETE and served none of them:
``CompanyScopedPermission`` resolves an owner from the payload, found none,
and answered 403 to everybody — including staff. (Worse, because the
serializer is ``fields = "__all__"`` and DRF drops unknown keys, a POST
carrying any ``company`` the caller administered *passed* the check and
created an ownerless row; the key was then discarded.)
The row does have a curator, just not a tenant one: the only management
path this model has ever had is Django admin. That makes it site-wide
reference data exactly like ``Citys`` and ``EventTypeModel``, so it takes
the same gate they do — ``StaffCatalogPermission``. Reads stay public;
the four advertised verbs are now really served, by the actor that really
owns them, with no schema change.'
parameters:
- name: ordering
required: false
in: query
description: Which field to use when ordering the results.
schema:
type: string
- name: page
required: false
in: query
description: A page number within the paginated result set.
schema:
type: integer
- name: page_size
required: false
in: query
description: Number of results to return per page.
schema:
type: integer
- name: search
required: false
in: query
description: A search term.
schema:
type: string
tags:
- company-vacants
security:
- jwtAuth: []
- tokenAuth: []
- cookieAuth: []
- basicAuth: []
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/PaginatedCompanyModelVacantList'
description: ''
'401':
description: 'Not authenticated. The response carries `WWW-Authenticate: Bearer realm="api"`; obtain or refresh a token and retry.'
headers:
WWW-Authenticate:
description: Always `Bearer realm="api"`.
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorDetail'
'403':
description: Authenticated, but not permitted to perform this action on this object.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorDetail'
'429':
description: Rate limit exceeded (see `DEFAULT_THROTTLE_RATES`). `Retry-After` gives the number of seconds to wait.
headers:
Retry-After:
description: Seconds until the caller may retry.
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorDetail'
'500':
description: Unhandled server error.
summary: Company vacants list
x-summary-source: derived
/api/v1/company-vacants/{id}/:
delete:
operationId: company_vacants_destroy
description: 'The board of companies that are ABSENT from the system.
Despite the name this is not a job-vacancy model ("vacant" = not on the
platform): the row has name / description / website / logo and *no*
relational field at all — no FK, no M2M, not even a column that could hold
one (checked in ``models.py``, in every migration, and in the physical
SQLite schema). So there is no ORM hop to a ``CompanyModel``, the way
``Location`` reaches its team backwards through ``additionalinfoteam_set``,
and "usable by the company''s admins" stays unimplementable: the row *is* a
company, and one that is not on the platform, so no company on the platform
owns it.
But the router advertised POST/PUT/PATCH/DELETE and served none of them:
``CompanyScopedPermission`` resolves an owner from the payload, found none,
and answered 403 to everybody — including staff. (Worse, because the
serializer is ``fields = "__all__"`` and DRF drops unknown keys, a POST
carrying any ``company`` the caller administered *passed* the check and
created an ownerless row; the key was then discarded.)
The row does have a curator, just not a tenant one: the only management
path this model has ever had is Django admin. That makes it site-wide
reference data exactly like ``Citys`` and ``EventTypeModel``, so it takes
the same gate they do — ``StaffCatalogPermission``. Reads stay public;
the four advertised verbs are now really served, by the actor that really
owns them, with no schema change.'
parameters:
- in: path
name: id
schema:
type: integer
description: A unique integer value identifying this Company which is not in the system.
required: true
tags:
- company-vacants
security:
- jwtAuth: []
- tokenAuth: []
- cookieAuth: []
- basicAuth: []
responses:
'204':
description: No response body
'401':
description: 'Not authenticated. The response carries `WWW-Authenticate: Bearer realm="api"`; obtain or refresh a token and retry.'
headers:
WWW-Authenticate:
description: Always `Bearer realm="api"`.
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorDetail'
'403':
description: Authenticated, but not permitted to perform this action on this object.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorDetail'
'404':
description: No such object, or it is not visible to you.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorDetail'
'429':
description: Rate limit exceeded (see `DEFAULT_THROTTLE_RATES`). `Retry-After` gives the number of seconds to wait.
headers:
Retry-After:
description: Seconds until the caller may retry.
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorDetail'
'500':
description: Unhandled server error.
summary: Company vacants destroy
x-summary-source: derived
patch:
operationId: company_vacants_partial_update
description: 'The board of companies that are ABSENT from the system.
Despite the name this is not a job-vacancy model ("vacant" = not on the
platform): the row has name / description / website / logo and *no*
relational field at all — no FK, no M2M, not even a column that could hold
one (checked in ``models.py``, in every migration, and in the physical
SQLite schema). So there is no ORM hop to a ``CompanyModel``, the way
``Location`` reaches its team backwards through ``additionalinfoteam_set``,
and "usable by the company''s admins" stays unimplementable: the row *is* a
company, and one that is not on the platform, so no company on the platform
owns it.
But the router advertised POST/PUT/PATCH/DELETE and served none of them:
``CompanyScopedPermission`` resolves an owner from the payload, found none,
and answered 403 to everybody — including staff. (Worse, because the
serializer is ``fields = "__all__"`` and DRF drops unknown keys, a POST
carrying any ``company`` the caller administered *passed* the check and
created an ownerless row; the key was then discarded.)
The row does have a curator, just not a tenant one: the only management
path this model has ever had is Django admin. That makes it site-wide
reference data exactly like ``Citys`` and ``EventTypeModel``, so it takes
the same gate they do — ``StaffCatalogPermission``. Reads stay public;
the four advertised verbs are now really served, by the actor that really
owns them, with no schema change.'
parameters:
- in: path
name: id
schema:
type: integer
description: A unique integer value identifying this Company which is not in the system.
required: true
tags:
- company-vacants
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/PatchedCompanyModelVacantRequest'
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/PatchedCompanyModelVacantRequest'
multipart/form-data:
schema:
$ref: '#/components/schemas/PatchedCompanyModelVacantRequest'
security:
- jwtAuth: []
- tokenAuth: []
- cookieAuth: []
- basicAuth: []
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/CompanyModelVacant'
description: ''
'400':
description: The request body failed validation.
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationError'
'401':
description: 'Not authenticated. The response carries `WWW-Authenticate: Bearer realm="api"`; obtain or refresh a token and retry.'
headers:
WWW-Authenticate:
description: Always `Bearer realm="api"`.
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorDetail'
'403':
description: Authenticated, but not permitted to perform this action on this object.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorDetail'
'404':
description: No such object, or it is not visible to you.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorDetail'
'429':
description: Rate limit exceeded (see `DEFAULT_THROTTLE_RATES`). `Retry-After` gives the number of seconds to wait.
headers:
Retry-After:
description: Seconds until the caller may retry.
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorDetail'
'500':
description: Unhandled server error.
summary: Company vacants partial update
x-summary-source: derived
put:
operationId: company_vacants_update
description: 'The board of companies that are ABSENT from the system.
Despite the name this is not a job-vacancy model ("vacant" = not on the
platform): the row has name / description / website / logo and *no*
relational field at all — no FK, no M2M, not even a column that could hold
one (checked in ``models.py``, in every migration, and in the physical
SQLite schema). So there is no ORM hop to a ``CompanyModel``, the way
``Location`` reaches its team backwards through ``additionalinfoteam_set``,
and "usable by the company''s admins" stays unimplementable: the row *is* a
company, and one that is not on the platform, so no company on the platform
owns it.
But the router advertised POST/PUT/PATCH/DELETE and served none of them:
``CompanyScopedPermission`` resolves an owner from the payload, found none,
and answered 403 to everybody — including staff. (Worse, because the
serializer is ``fields = "__all__"`` and DRF drops unknown keys, a POST
carrying any ``company`` the caller administered *passed* the check and
created an ownerless row; the key was then discarded.)
The row does have a curator, just not a tenant one: the only management
path this model has ever had is Django admin. That makes it site-wide
reference data exactly like ``Citys`` and ``EventTypeModel``, so it takes
the same gate they do — ``StaffCatalogPermission``. Reads stay public;
the four advertised verbs are now really served, by the actor that really
owns them, with no schema change.'
parameters:
- in: path
name: id
schema:
type: integer
description: A unique integer value identifying this Company which is not in the system.
required: true
tags:
- company-vacants
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CompanyModelVacantRequest'
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/CompanyModelVacantRequest'
multipart/form-data:
schema:
$ref: '#/components/schemas/CompanyModelVacantRequest'
required: true
security:
- jwtAuth: []
- tokenAuth: []
- cookieAuth: []
- basicAuth: []
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/CompanyModelVacant'
description: ''
'400':
description: The request body failed validation.
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationError'
'401':
description: 'Not authenticated. The response carries `WWW-Authenticate: Bearer realm="api"`; obtain or refresh a token and retry.'
headers:
WWW-Authenticate:
description: Always `Bearer realm="api"`.
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorDetail'
'403':
description: Authenticated, but not permitted to perform this action on this object.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorDetail'
'404':
description: No such object, or it is not visible to you.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorDetail'
'429':
description: Rate limit exceeded (see `DEFAULT_THROTTLE_RATES`). `Retry-After` gives the number of seconds to wait.
headers:
Retry-After:
description: Seconds until the caller may retry.
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorDetail'
'500':
description: Unhandled server error.
summary: Company vacants update
x-summary-source: derived
get:
operationId: company_vacants_retrieve
description: 'The board of companies that are ABSENT from the system.
Despite the name this is not a job-vacancy model ("vacant" = not on the
platform): the row has name / description / website / logo and *no*
relational field at all — no FK, no M2M, not even a column that could hold
one (checked in ``models.py``, in every migration, and in the physical
SQLite schema). So there is no ORM hop to a ``CompanyModel``, the way
``Location`` reaches its team backwards through ``additionalinfoteam_set``,
and "usable by the company''s admins" stays unimplementable: the row *is* a
company, and one that is not on the platform, so no company on the platform
owns it.
But the router advertised POST/PUT/PATCH/DELETE and served none of them:
``CompanyScopedPermission`` resolves an owner from the payload, found none,
and answered 403 to everybody — including staff. (Worse, because the
serializer is ``fields = "__all__"`` and DRF drops unknown keys, a POST
carrying any ``company`` the caller administered *passed* the check and
created an ownerless row; the key was then discarded.)
The row does have a curator, just not a tenant one: the only management
path this model has ever had is Django admin. That makes it site-wide
reference data exactly like ``Citys`` and ``EventTypeModel``, so it takes
the same gate they do — ``StaffCatalogPermission``. Reads stay public;
the four advertised verbs are now really served, by the actor that really
owns them, with no schema change.'
parameters:
- in: path
name: id
schema:
type: integer
description: A unique integer value identifying this Company which is not in the system.
required: true
tags:
- company-vacants
security:
- jwtAuth: []
- tokenAuth: []
- cookieAuth: []
- basicAuth: []
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/CompanyModelVacant'
description: ''
'401':
description: 'Not authenticated. The response carries `WWW-Authenticate: Bearer realm="api"`; obtain or refresh a token and retry.'
headers:
WWW-Authenticate:
description: Always `Bearer realm="api"`.
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorDetail'
'403':
description: Authenticated, but not permitted to perform this action on this object.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorDetail'
'404':
description: No such object, or it is not visible to you.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorDetail'
'429':
description: Rate limit exceeded (see `DEFAULT_THROTTLE_RATES`). `Retry-After` gives the number of seconds to wait.
headers:
Retry-After:
description: Seconds until the caller may retry.
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorDetail'
'500':
description: Unhandled server error.
summary: Company vacants retrieve
x-summary-source: derived
components:
schemas:
PaginatedCompanyModelVacantList:
type: object
required:
- count
- results
properties:
count:
type: integer
example: 123
next:
type:
- string
- 'null'
format: uri
example: http://api.example.org/accounts/?page=4
previous:
type:
- string
- 'null'
format: uri
example: http://api.example.org/accounts/?page=2
results:
type: array
items:
$ref: '#/components/schemas/CompanyModelVacant'
ErrorDetail:
type: object
description: The body DRF returns for a handled error.
properties:
detail:
type: string
description: Human-readable explanation of the failure.
required:
- detail
ValidationError:
type: object
description: Field-keyed validation errors. Errors that belong to no single field appear under `non_field_errors`.
additionalProperties:
type: array
items:
type: string
CompanyModelVacantRequest:
type: object
properties:
logo_company:
type: string
default: ''
maxLength: 100
name:
type: string
minLength: 1
title: Name of the organization
maxLength: 100
description:
type: string
minLength: 1
title: Description of the organization
maxLength: 300
site_company:
type: string
minLength: 1
title: Organization website
maxLength: 200
required:
- description
- name
- site_company
CompanyModelVacant:
type: object
properties:
id:
type: integer
readOnly: true
logo_company:
type: string
default: ''
maxLength: 100
name:
type: string
title: Name of the organization
maxLength: 100
description:
type: string
title: Description of the organization
maxLength: 300
last_updated:
type: string
format: date-time
readOnly: true
title: Last updated post
site_company:
type: string
title: Organization website
maxLength: 200
created:
type: string
format: date-time
readOnly: true
title: When the entry was created
required:
- created
- description
- id
- last_updated
- name
- site_company
PatchedCompanyModelVacantRequest:
type: object
properties:
logo_company:
type: string
default: ''
maxLength: 100
name:
type: string
minLength: 1
title: Name of the organization
maxLength: 100
description:
type: string
minLength: 1
title: Description of the organization
maxLength: 300
site_company:
type: string
minLength: 1
title: Organization website
maxLength: 200
securitySchemes:
basicAuth:
type: http
scheme: basic
cookieAuth:
type: apiKey
in: cookie
name: sessionid
jwtAuth:
type: http
scheme: bearer
bearerFormat: JWT
description: 'Access token from `POST /api/v1/auth/jwt/`, refreshed at `POST /api/v1/auth/jwt/refresh/`. Send as `Authorization: Bearer <access>`.'
tokenAuth:
type: apiKey
in: header
name: Authorization
description: Token-based authentication with required prefix "Token"
x-refined-from:
- clusterhack-dev-openapi-original.json
- clusterhack-dev-openapi.yml