ClusterHack Team Locations API
The team-locations API from ClusterHack — 2 operation(s) for team-locations.
The team-locations API from ClusterHack — 2 operation(s) for team-locations.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/clusterhack-dev:clusterhack-dev-team-locations-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Clusterhack Dev Team Locations API
version: 1.3.0
description: 'Operations tagged team-locations 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: team-locations
paths:
/api/v1/team-locations/:
post:
operationId: team_locations_create
tags:
- team-locations
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/LocationRequest'
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/LocationRequest'
multipart/form-data:
schema:
$ref: '#/components/schemas/LocationRequest'
security:
- jwtAuth: []
- tokenAuth: []
- cookieAuth: []
- basicAuth: []
responses:
'201':
content:
application/json:
schema:
$ref: '#/components/schemas/Location'
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: Team locations create
x-summary-source: derived
get:
operationId: team_locations_list
parameters:
- in: query
name: city
schema:
type: string
- 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
- in: query
name: state
schema:
type: string
- in: query
name: team
schema:
type: integer
- in: query
name: zip_code
schema:
type: string
tags:
- team-locations
security:
- jwtAuth: []
- tokenAuth: []
- cookieAuth: []
- basicAuth: []
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/PaginatedLocationList'
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: Team locations list
x-summary-source: derived
/api/v1/team-locations/{id}/:
delete:
operationId: team_locations_destroy
parameters:
- in: path
name: id
schema:
type: integer
description: A unique integer value identifying this location.
required: true
tags:
- team-locations
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: Team locations destroy
x-summary-source: derived
patch:
operationId: team_locations_partial_update
parameters:
- in: path
name: id
schema:
type: integer
description: A unique integer value identifying this location.
required: true
tags:
- team-locations
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/PatchedLocationRequest'
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/PatchedLocationRequest'
multipart/form-data:
schema:
$ref: '#/components/schemas/PatchedLocationRequest'
security:
- jwtAuth: []
- tokenAuth: []
- cookieAuth: []
- basicAuth: []
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/Location'
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: Team locations partial update
x-summary-source: derived
put:
operationId: team_locations_update
parameters:
- in: path
name: id
schema:
type: integer
description: A unique integer value identifying this location.
required: true
tags:
- team-locations
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/LocationRequest'
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/LocationRequest'
multipart/form-data:
schema:
$ref: '#/components/schemas/LocationRequest'
security:
- jwtAuth: []
- tokenAuth: []
- cookieAuth: []
- basicAuth: []
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/Location'
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: Team locations update
x-summary-source: derived
get:
operationId: team_locations_retrieve
parameters:
- in: path
name: id
schema:
type: integer
description: A unique integer value identifying this location.
required: true
tags:
- team-locations
security:
- jwtAuth: []
- tokenAuth: []
- cookieAuth: []
- basicAuth: []
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/Location'
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: Team locations retrieve
x-summary-source: derived
components:
schemas:
Location:
type: object
description: '``Location`` with a write-only owner hint.
The model carries no link to a team — ``AdditionalInfoTeam.location``
points *at* it — so a create payload named nobody,
``TeamScopedPermission`` could resolve no owner, and every POST was 403
while PATCH/DELETE worked. That left a row that could be edited but never
created.
``additionalinfoteam`` closes it. It is write-only and create-only: it
authorises the POST (``resolve_related_team_from_payload`` reads the same
key) and attaches the new row to that team''s info record, so the caller can
see and edit what they just created instead of minting an orphan. On PATCH
it is ignored — moving a location between teams is not a thing this
endpoint does, and the permission layer already refuses a hint pointing at
a team the caller does not manage.'
properties:
id:
type: integer
readOnly: true
street:
type: string
maxLength: 100
city:
type: string
maxLength: 100
state:
type: string
maxLength: 100
zip_code:
type: string
maxLength: 10
additional_info:
type: string
title: Additional Information
required:
- id
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
LocationRequest:
type: object
description: '``Location`` with a write-only owner hint.
The model carries no link to a team — ``AdditionalInfoTeam.location``
points *at* it — so a create payload named nobody,
``TeamScopedPermission`` could resolve no owner, and every POST was 403
while PATCH/DELETE worked. That left a row that could be edited but never
created.
``additionalinfoteam`` closes it. It is write-only and create-only: it
authorises the POST (``resolve_related_team_from_payload`` reads the same
key) and attaches the new row to that team''s info record, so the caller can
see and edit what they just created instead of minting an orphan. On PATCH
it is ignored — moving a location between teams is not a thing this
endpoint does, and the permission layer already refuses a hint pointing at
a team the caller does not manage.'
properties:
additionalinfoteam:
type: integer
writeOnly: true
description: Id of the AdditionalInfoTeam row this location belongs to. Required on create — it is how the API knows which team owns it.
street:
type: string
maxLength: 100
city:
type: string
maxLength: 100
state:
type: string
maxLength: 100
zip_code:
type: string
maxLength: 10
additional_info:
type: string
title: Additional Information
PatchedLocationRequest:
type: object
description: '``Location`` with a write-only owner hint.
The model carries no link to a team — ``AdditionalInfoTeam.location``
points *at* it — so a create payload named nobody,
``TeamScopedPermission`` could resolve no owner, and every POST was 403
while PATCH/DELETE worked. That left a row that could be edited but never
created.
``additionalinfoteam`` closes it. It is write-only and create-only: it
authorises the POST (``resolve_related_team_from_payload`` reads the same
key) and attaches the new row to that team''s info record, so the caller can
see and edit what they just created instead of minting an orphan. On PATCH
it is ignored — moving a location between teams is not a thing this
endpoint does, and the permission layer already refuses a hint pointing at
a team the caller does not manage.'
properties:
additionalinfoteam:
type: integer
writeOnly: true
description: Id of the AdditionalInfoTeam row this location belongs to. Required on create — it is how the API knows which team owns it.
street:
type: string
maxLength: 100
city:
type: string
maxLength: 100
state:
type: string
maxLength: 100
zip_code:
type: string
maxLength: 10
additional_info:
type: string
title: Additional Information
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
PaginatedLocationList:
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/Location'
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