Integration Tools

Hardata API

Document version: 1.3
Source specification: OpenAPI 3.1.1, API v1.0
Reference date: November 18, 2026

This guide accompanies the official HARDATA API OpenAPI specification. The generated OpenAPI JSON file and its Scalar visualization are the source of truth for endpoints, parameters, request bodies, and schemas; this document focuses on integration context, client conventions, business rules, and recommended workflows. It should be used together with HARDATA ECP when an application also needs to monitor or control HDX in real time.

This documentation does not contain tokens, keys, usernames, passwords, or private values from an installation. All authentication values in the examples are placeholders that the integrator must replace at runtime.

1. Base URL and transport

The base URL must not be hard-coded in the client application. In a real installation, the base URL is provided by HARDATA or the system administrator and may vary depending on the product, host, proxy, environment, and deployment policy.

  • HTTP/HTTPS transport.
  • JSON bodies in UTF-8, except for multipart/form-data and material streaming.
  • Dates and times must be sent in the format specified by each field's schema.
  • Identifiers are opaque: do not infer meaning, order, or permanence from their values. When the schema specifies int64, its decimal representation remains an identifier, not a number suitable for business calculations.
  • Use HTTPS in production and validate the certificate.

2. Authentication

The specification uses HTTP Bearer authentication with JWT tokens. Obtain a token with POST /api/v1/auth/login and include it in protected requests:

Authorization: Bearer <token-jwt>

Login example without real credentials:

POST /api/v1/auth/login
Content-Type: application/json

{ "username": "<usuario>", "password": "<contraseña>" }

Response: LoginResponse, containing success, message, token and refreshToken. When the token expires, refresh it using POST /api/v1/auth/refresh. Never log the login body or the token. The published OpenAPI specification declares the Bearer scheme and specifies security at the operation level for protected endpoints; integrations must still handle 401 Unauthorized and 403 Forbidden.

The HARDATA API base URL, credentials, and token are configured and managed separately from the HARDATA ECP connection. An authenticated WebSocket session does not authenticate HTTP requests, session.setup does not discover the API, and an app must not assume the two services share credentials, even if a particular installation provisions them that way.

3. Client conventions

  • Send Accept: application/json for JSON responses.
  • Send Content-Type: application/json for JSON creation and update requests.
  • Treat 200 and 201 as success with a response body; 204 as success without a response body.
  • Handle 400 as invalid input, 401 as missing/expired authentication, 403 as insufficient permissions, 404 as a missing resource, 409 as a conflict, 416 as an invalid range, and 500 as an internal error.
  • Many CRUD endpoints use ProblemDetails; others, such as material streaming, may return endpoint-specific JSON bodies. The OpenAPI specification is authoritative for each operation.
  • Do not automatically retry POST, PUT or DELETE if the outcome is unknown. Check the resource state first.
  • Apply timeouts, cancellation, and exponential backoff with jitter. Refresh tokens according to the installation's policy.
  • Allow additional properties to maintain compatibility with future extensions.
  • Use the generated OpenAPI JSON to verify exact content types, responses, and schemas before generating clients or validating integrations.

3.1 Relationship of materialId to HARDATA ECP

materialId is an Int64 in HARDATA Database and HARDATA API. HARDATA ECP transports it as a canonical decimal string to prevent precision loss: 0 or a sequence without a leading zero between 1 and 9223372036854775807.

To retrieve metadata for an ECP node, the app uses that sequence literally as {materialId} in GET /api/v1/material/{materialId}. The server converts it to Int64 using invariant culture. It must not first be converted to a JavaScript Number ; reading JSON responses containing int64 identifiers outside JavaScript's safe integer range requires a parser that preserves 64-bit integers.

4. Basic examples

Retrieve a material

GET /api/v1/material/12345
Authorization: Bearer <token-jwt>
Accept: application/json

Retrieve timing for automation

Use GET /api/v1/material/{materialId}. The integer timing fields of MaterialResponse are expressed in milliseconds:

  • startPos and endPos: start and end positions on the file timeline; endPos = 0 means the physical end of the file is used.
  • punchIn and intro: positions measured from the beginning of the file.
  • punchOut and outro: offsets measured backward from the effective end; for example, punchOut = 1500 starts the crossfade with 1,500 ms remaining.
  • punchInFadeLength and punchOutFadeLength: fade durations.
  • insertOver: time offset, also in milliseconds.

An application such as AI Operator can combine this metadata with positionMs, durationMs and remainingMs received through HARDATA ECP. HARDATA API does not replace ECP playback timers or events; before comparing values, the app must account for each marker's direction and use a consistent unit.

Paginated search

GET /api/v1/material/search?q=nombre&page=1&pageSize=50
Authorization: Bearer <token-jwt>

Streaming with seeking

GET /api/v1/material/12345/stream?fileId=67890
Authorization: Bearer <token-jwt>
Range: bytes=0-1048575

The endpoint may return 200 or 206; handle 416 when the range is invalid.

5. Complete endpoint catalog

Agency

GET /api/v1/traffic/agency

Status Response Description
200 array of AgencyResponse OK
401 ProblemDetails Unauthorized
403 ProblemDetails Forbidden

POST /api/v1/traffic/agency

Body: CreateAgencyRequest. Content-Type: application/json, text/json, application/*+json. Required: yes.

Status Response Description
201 AgencyResponse Created
401 ProblemDetails Unauthorized
403 ProblemDetails Forbidden
409 ProblemDetails Conflict

GET /api/v1/traffic/agency/{agencyId}

Parameter Location Type Required Description
agencyId path integer (int32) yes pattern ^-?(?:0|[1-9]\d*)$
Status Response Description
200 AgencyResponse OK
401 ProblemDetails Unauthorized
403 ProblemDetails Forbidden
404 ProblemDetails Not Found

PUT /api/v1/traffic/agency/{agencyId}

Parameter Location Type Required Description
agencyId path integer (int32) yes pattern ^-?(?:0|[1-9]\d*)$

Body: UpdateAgencyRequest. Content-Type: application/json, text/json, application/*+json. Required: yes.

Status Response Description
200 AgencyResponse OK
400 ProblemDetails Bad Request
401 ProblemDetails Unauthorized
403 ProblemDetails Forbidden
404 ProblemDetails Not Found
409 ProblemDetails Conflict

DELETE /api/v1/traffic/agency/{agencyId}

Parameter Location Type Required Description
agencyId path integer (int32) yes pattern ^-?(?:0|[1-9]\d*)$
Status Response Description
204 no schema specified No Content
401 ProblemDetails Unauthorized
403 ProblemDetails Forbidden
404 ProblemDetails Not Found
409 ProblemDetails Conflict

GET /api/v1/traffic/agency/types

Status Response Description
200 no schema specified OK

GET /api/v1/traffic/agency/statuses

Status Response Description
200 no schema specified OK

Album

GET /api/v1/album

Status Response Description
200 array of AlbumResponse OK

POST /api/v1/album

Body: CreateAlbumRequest. Content-Type: application/json, application/*+json. Required: yes.

Status Response Description
201 AlbumResponse Created
400 ProblemDetails Bad Request
409 ProblemDetails Conflict

GET /api/v1/album/{id}

Parameter Location Type Required Description
id path integer (int64) yes pattern ^-?(?:0|[1-9]\d*)$
Status Response Description
200 AlbumResponse OK
404 ProblemDetails Not Found

PUT /api/v1/album/{id}

Parameter Location Type Required Description
id path integer (int64) yes pattern ^-?(?:0|[1-9]\d*)$

Body: UpdateAlbumRequest. Content-Type: application/json, application/*+json. Required: yes.

Status Response Description
200 AlbumResponse OK
400 ProblemDetails Bad Request
404 ProblemDetails Not Found
409 ProblemDetails Conflict

DELETE /api/v1/album/{id}

Parameter Location Type Required Description
id path integer (int64) yes pattern ^-?(?:0|[1-9]\d*)$
Status Response Description
204 no schema specified No Content
404 ProblemDetails Not Found
409 ProblemDetails Conflict

Algorithm

POST /api/v1/traffic/algorithm/schedule

Execute the scheduling algorithm for a specific date and station.

Body: ScheduleRequest. Content-Type: application/json, text/json, application/*+json. Required: yes.

Status Response Description
200 SchedulingResponse Scheduling completed successfully.
400 ProblemDetails Invalid request parameters.
401 ProblemDetails Unauthorized - JWT token required.
500 no schema specified Internal server error during scheduling.

GET /api/v1/traffic/algorithm/stats

Get scheduling statistics for a specific date and station. Useful for preview before running the full algorithm.

Parameter Location Type Required Description
stationId query integer or string (int32) no Station ID. pattern ^-?(?:0|[1-9]\d*)$
date query string (date) no Schedule date (YYYY-MM-DD).
Status Response Description
200 SchedulingStats Statistics retrieved successfully.
400 ProblemDetails Invalid parameters.
401 ProblemDetails Unauthorized - JWT token required.

AssetType

GET /api/v1/asset-type

Status Response Description
200 array of AssetTypeResponse OK

GET /api/v1/asset-type/{assetTypeId}

Parameter Location Type Required Description
assetTypeId path integer (int32) yes pattern ^-?(?:0|[1-9]\d*)$
Status Response Description
200 AssetTypeResponse OK
404 ProblemDetails Not Found

Auth

POST /api/v1/auth/login

Body: HdxLoginRequest. Content-Type: application/json, text/json, application/*+json. Required: yes.

Status Response Description
200 LoginResponse OK
400 LoginResponse Bad Request
401 LoginResponse Unauthorized
403 LoginResponse Forbidden
500 LoginResponse Internal Server Error

POST /api/v1/auth/refresh

Body: RefreshTokenRequest. Content-Type: application/json, text/json, application/*+json. Required: yes.

Status Response Description
200 LoginResponse OK
400 LoginResponse Bad Request
401 LoginResponse Unauthorized
403 LoginResponse Forbidden

Break Templates

GET /api/v1/traffic/breaktemplate

List all templates

Parameter Location Type Required Description
includeInactive query boolean no default False
Status Response Description
200 array of BreakTemplateResponse OK
401 ProblemDetails Unauthorized

POST /api/v1/traffic/breaktemplate

Body: CreateBreakTemplateRequest. Content-Type: application/json, text/json, application/*+json. Required: yes.

Status Response Description
200 BreakTemplateResponse OK

GET /api/v1/traffic/breaktemplate/{id}

Parameter Location Type Required Description
id path integer (int32) yes pattern ^-?(?:0|[1-9]\d*)$
Status Response Description
200 BreakTemplateResponse OK

PUT /api/v1/traffic/breaktemplate/{id}

Parameter Location Type Required Description
id path integer (int32) yes pattern ^-?(?:0|[1-9]\d*)$

Body: UpdateBreakTemplateRequest. Content-Type: application/json, text/json, application/*+json. Required: yes.

Status Response Description
200 BreakTemplateResponse OK

DELETE /api/v1/traffic/breaktemplate/{id}

Parameter Location Type Required Description
id path integer (int32) yes pattern ^-?(?:0|[1-9]\d*)$
Status Response Description
200 no schema specified OK

GET /api/v1/traffic/breaktemplate/station/{stationId}

Get templates by station

Parameter Location Type Required Description
stationId path integer (int64) yes pattern ^-?(?:0|[1-9]\d*)$
includeInactive query boolean no default False
Status Response Description
200 array of BreakTemplateResponse OK
401 ProblemDetails Unauthorized

DELETE /api/v1/traffic/breaktemplate/{id}/hard

Parameter Location Type Required Description
id path integer (int32) yes pattern ^-?(?:0|[1-9]\d*)$
Status Response Description
200 no schema specified OK

BreakType

GET /api/v1/traffic/break-types

Status Response Description
200 array without a declared schema OK

POST /api/v1/traffic/break-types

Body: CreateBreakTypeRequest. Content-Type: application/json, application/*+json. Required: yes.

Status Response Description
201 no schema specified Created
409 ProblemDetails Conflict

PUT /api/v1/traffic/break-types/{id}

Parameter Location Type Required Description
id path integer (int32) yes pattern ^-?(?:0|[1-9]\d*)$

Body: UpdateBreakTypeRequest. Content-Type: application/json, application/*+json. Required: yes.

Status Response Description
200 no schema specified OK
404 ProblemDetails Not Found

DELETE /api/v1/traffic/break-types/{id}

Parameter Location Type Required Description
id path integer (int32) yes pattern ^-?(?:0|[1-9]\d*)$
Status Response Description
204 no schema specified No Content
404 ProblemDetails Not Found
409 ProblemDetails Conflict

Campaign

GET /api/v1/traffic/campaign

Status Response Description
200 array of CampaignResponse OK

POST /api/v1/traffic/campaign

Body: CreateCampaignRequest. Content-Type: application/json, text/json, application/*+json. Required: yes.

Status Response Description
200 CampaignResponse OK

GET /api/v1/traffic/campaign/{campaignId}

Parameter Location Type Required Description
campaignId path integer (int32) yes pattern ^-?(?:0|[1-9]\d*)$
Status Response Description
200 CampaignResponse OK

PUT /api/v1/traffic/campaign/{campaignId}

Parameter Location Type Required Description
campaignId path integer (int32) yes pattern ^-?(?:0|[1-9]\d*)$

Body: UpdateCampaignRequest. Content-Type: application/json, text/json, application/*+json. Required: yes.

Status Response Description
200 CampaignResponse OK

DELETE /api/v1/traffic/campaign/{campaignId}

Parameter Location Type Required Description
campaignId path integer (int32) yes pattern ^-?(?:0|[1-9]\d*)$
Status Response Description
200 no schema specified OK

GET /api/v1/traffic/campaign/statuses

Status Response Description
200 no schema specified OK

Category

GET /api/v1/category

Status Response Description
200 array of CategoryResponse OK

POST /api/v1/category

Body: CreateCategoryRequest. Content-Type: application/json, application/*+json. Required: yes.

Status Response Description
201 CategoryResponse Created
400 ProblemDetails Bad Request
404 ProblemDetails Not Found
409 ProblemDetails Conflict

GET /api/v1/category/{categoryId}

Parameter Location Type Required Description
categoryId path integer (int64) yes pattern ^-?(?:0|[1-9]\d*)$
Status Response Description
200 CategoryResponse OK
404 ProblemDetails Not Found

PUT /api/v1/category/{categoryId}

Parameter Location Type Required Description
categoryId path integer (int64) yes pattern ^-?(?:0|[1-9]\d*)$

Body: UpdateCategoryRequest. Content-Type: application/json, application/*+json. Required: yes.

Status Response Description
200 CategoryResponse OK
400 ProblemDetails Bad Request
404 ProblemDetails Not Found
409 ProblemDetails Conflict

DELETE /api/v1/category/{categoryId}

Parameter Location Type Required Description
categoryId path integer (int64) yes pattern ^-?(?:0|[1-9]\d*)$
Status Response Description
204 no schema specified No Content
404 ProblemDetails Not Found
409 ProblemDetails Conflict

GET /api/v1/category/storages

Status Response Description
200 array of CategoryResponse OK

GET /api/v1/category/{categoryId}/nextcode

Parameter Location Type Required Description
categoryId path integer (int64) yes pattern ^-?(?:0|[1-9]\d*)$
Status Response Description
200 NextCodeResponse OK
400 ProblemDetails Bad Request
404 ProblemDetails Not Found

GET /api/v1/category/{categoryId}/children

Parameter Location Type Required Description
categoryId path integer (int64) yes pattern ^-?(?:0|[1-9]\d*)$
Status Response Description
200 array of CategoryResponse OK
404 ProblemDetails Not Found

GET /api/v1/category/{categoryId}/ancestors

Parameter Location Type Required Description
categoryId path integer (int64) yes pattern ^-?(?:0|[1-9]\d*)$
Status Response Description
200 array of CategoryResponse OK
404 ProblemDetails Not Found

GET /api/v1/category/{categoryId}/descendants

Parameter Location Type Required Description
categoryId path integer (int64) yes pattern ^-?(?:0|[1-9]\d*)$
Status Response Description
200 array of CategoryResponse OK
404 ProblemDetails Not Found

Client

GET /api/v1/traffic/client

Gets all clients.

Status Response Description
200 array of ClientResponse Client list.

POST /api/v1/traffic/client

Creates a new client.

Body: CreateClientRequest. Content-Type: application/json, application/*+json. Required: yes.

Status Response Description
200 ClientResponse Client created.

GET /api/v1/traffic/client/{clientId}

Gets a client by ID.

Parameter Location Type Required Description
clientId path integer (int32) yes Client ID. pattern ^-?(?:0|[1-9]\d*)$
Status Response Description
200 ClientResponse Client found.

PUT /api/v1/traffic/client/{clientId}

Updates an existing client.

Parameter Location Type Required Description
clientId path integer (int32) yes Client ID to update. pattern ^-?(?:0|[1-9]\d*)$

Body: UpdateClientRequest. Content-Type: application/json, application/*+json. Required: yes.

Status Response Description
200 ClientResponse Client updated.

DELETE /api/v1/traffic/client/{clientId}

Deletes a client by ID.

Parameter Location Type Required Description
clientId path integer (int32) yes Client ID to delete. pattern ^-?(?:0|[1-9]\d*)$
Status Response Description
204 no schema specified No Content

GET /api/v1/traffic/client/statuses

Status Response Description
200 no schema specified OK

Clip Metadata

GET /api/v1/traffic/clip_metadata

Status Response Description
200 array of ClipMetadataResponse OK

POST /api/v1/traffic/clip_metadata

Body: CreateClipMetadataRequest. Content-Type: application/json, text/json, application/*+json. Required: yes.

Status Response Description
200 ClipMetadataResponse OK

GET /api/v1/traffic/clip_metadata/{clipMetadataId}

Parameter Location Type Required Description
clipMetadataId path integer (int64) yes pattern ^-?(?:0|[1-9]\d*)$
Status Response Description
200 ClipMetadataResponse OK

DELETE /api/v1/traffic/clip_metadata/{clipMetadataId}

Parameter Location Type Required Description
clipMetadataId path integer (int64) yes pattern ^-?(?:0|[1-9]\d*)$
Status Response Description
200 no schema specified OK

Common

GET /api/v1/traffic/common/scopes

Possible scopes (National / Local). Used in Order, BreakTemplateZone, and ClipMetadata.

Status Response Description
200 no schema specified OK

GET /api/v1/traffic/common/weekdays

Base values of the weekday bitmask. Used in OrderDaypart and BreakTemplate.

Status Response Description
200 no schema specified OK

GET /api/v1/traffic/common/break-types

Available break types (Simple, Rotating, etc.). Used in BreakTemplate.

Status Response Description
200 no schema specified OK

Company

GET /api/v1/company

Status Response Description
200 array of CompanyResponse OK

POST /api/v1/company

Body: CreateCompanyRequest. Content-Type: application/json, application/*+json. Required: yes.

Status Response Description
201 CompanyResponse Created
400 ProblemDetails Bad Request
409 ProblemDetails Conflict

GET /api/v1/company/{companyId}

Parameter Location Type Required Description
companyId path integer (int64) yes pattern ^-?(?:0|[1-9]\d*)$
Status Response Description
200 CompanyResponse OK
404 ProblemDetails Not Found

PUT /api/v1/company/{companyId}

Parameter Location Type Required Description
companyId path integer (int64) yes pattern ^-?(?:0|[1-9]\d*)$

Body: UpdateCompanyRequest. Content-Type: application/json, application/*+json. Required: yes.

Status Response Description
200 CompanyResponse OK
400 ProblemDetails Bad Request
404 ProblemDetails Not Found
409 ProblemDetails Conflict

DELETE /api/v1/company/{companyId}

Parameter Location Type Required Description
companyId path integer (int64) yes pattern ^-?(?:0|[1-9]\d*)$
Status Response Description
204 no schema specified No Content
404 ProblemDetails Not Found
409 ProblemDetails Conflict

FileType

GET /api/v1/file-type

Status Response Description
200 array of FileTypeResponse OK

GET /api/v1/file-type/{fileTypeId}

Parameter Location Type Required Description
fileTypeId path integer (int32) yes pattern ^-?(?:0|[1-9]\d*)$
Status Response Description
200 FileTypeResponse OK
404 ProblemDetails Not Found

Genre

GET /api/v1/genre

Status Response Description
200 array of GenreResponse OK

POST /api/v1/genre

Body: CreateGenreRequest. Content-Type: application/json, application/*+json. Required: yes.

Status Response Description
201 GenreResponse Created
400 ProblemDetails Bad Request
409 ProblemDetails Conflict

GET /api/v1/genre/{id}

Parameter Location Type Required Description
id path integer (int64) yes pattern ^-?(?:0|[1-9]\d*)$
Status Response Description
200 GenreResponse OK
404 ProblemDetails Not Found

PUT /api/v1/genre/{id}

Parameter Location Type Required Description
id path integer (int64) yes pattern ^-?(?:0|[1-9]\d*)$

Body: UpdateGenreRequest. Content-Type: application/json, application/*+json. Required: yes.

Status Response Description
200 GenreResponse OK
400 ProblemDetails Bad Request
404 ProblemDetails Not Found
409 ProblemDetails Conflict

DELETE /api/v1/genre/{id}

Parameter Location Type Required Description
id path integer (int64) yes pattern ^-?(?:0|[1-9]\d*)$
Status Response Description
204 no schema specified No Content
404 ProblemDetails Not Found
409 ProblemDetails Conflict

Industry

GET /api/v1/traffic/industry

Gets all industries.

Status Response Description
200 array of IndustryResponse Industry list.

POST /api/v1/traffic/industry

Creates new industries.

Body: array of strings. Content-Type: application/json, text/json, application/*+json. Required: yes.

Status Response Description
200 array of IndustryResponse List of created industries.

GET /api/v1/traffic/industry/{industryId}

Gets an industry by ID.

Parameter Location Type Required Description
industryId path integer (int32) yes pattern ^-?(?:0|[1-9]\d*)$
Status Response Description
200 IndustryResponse Specific industry.

PUT /api/v1/traffic/industry/{industryId}

Updates an existing industry.

Parameter Location Type Required Description
industryId path integer (int32) yes pattern ^-?(?:0|[1-9]\d*)$

Body: UpdateIndustryRequest. Content-Type: application/json, text/json, application/*+json. Required: yes.

Status Response Description
200 IndustryResponse Industry updated.

DELETE /api/v1/traffic/industry/{industryId}

Deletes an existing industry.

Parameter Location Type Required Description
industryId path integer (int32) yes pattern ^-?(?:0|[1-9]\d*)$
Status Response Description
200 no schema specified Industry deleted.

Material

GET /api/v1/material

Gets all materials with optional filters and pagination. Each CATEGORYMATERIAL row (master or link) is returned as a material. The recycle bin is excluded by default (isDeleted=false).

Parameter Location Type Required Description
CategoryId query integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$
Title query string no
Code query string no
MediaTypeId query integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
MaterialStateId query integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
HasFiles query boolean no
IsDeleted query boolean no
page query integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$; default 1
pageSize query integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$; default 50
Status Response Description
200 PagedResponseOfMaterialResponse OK

GET /api/v1/material/search

Searches materials using free text across all relevant fields (title, code, comments, rdsText, tags, customFields, artist/author names, album, genre, company).

Parameter Location Type Required Description
q query string no
page query integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$; default 1
pageSize query integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$; default 50
Status Response Description
200 PagedResponseOfMaterialResponse OK

GET /api/v1/material/{materialId}

Gets a material by ID.

Parameter Location Type Required Description
materialId path integer (int64) yes pattern ^-?(?:0|[1-9]\d*)$
Status Response Description
200 MaterialResponse OK
404 ProblemDetails Not Found

PUT /api/v1/material/{materialId}

Updates metadata for an existing material.

Parameter Location Type Required Description
materialId path integer (int64) yes pattern ^-?(?:0|[1-9]\d*)$

Body: UpdateMaterialRequest. Content-Type: application/json, application/*+json. Required: yes.

Status Response Description
200 MaterialResponse OK
404 ProblemDetails Not Found
409 ProblemDetails Conflict

DELETE /api/v1/material/{materialId}

Completely deletes a material: physical files, MATERIALFILE, FILE, CATEGORYMATERIAL, and finally MATERIAL. Sequential order is used to respect foreign keys.

Parameter Location Type Required Description
materialId path integer (int64) yes pattern ^-?(?:0|[1-9]\d*)$
Status Response Description
204 no schema specified No Content
404 ProblemDetails Not Found

GET /api/v1/material/{materialId}/stream

Audio/video streaming for frontend playback. Supports range requests for seeking.

Parameter Location Type Required Description
materialId path integer (int64) yes pattern ^-?(?:0|[1-9]\d*)$
fileId query integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$
Status Response Description
200 no schema specified OK
206 no schema specified Partial Content
401 ProblemDetails Unauthorized
404 ProblemDetails Not Found
416 ProblemDetails Range Not Satisfiable

POST /api/v1/material/placeholder

Creates a placeholder material without audio.

Body: MaterialPlaceholderRequest. Content-Type: application/json, application/*+json. Required: yes.

Status Response Description
201 MaterialResponse Created
409 ProblemDetails Conflict

GET /api/v1/material/{materialId}/files

Gets all files associated with a material.

Parameter Location Type Required Description
materialId path integer (int64) yes pattern ^-?(?:0|[1-9]\d*)$
Status Response Description
200 array of MaterialFileResponse OK
404 ProblemDetails Not Found

PUT /api/v1/material/{materialId}/category/{categoryId}

Moves a material to a different category. Replaces all existing category links.

Parameter Location Type Required Description
materialId path integer (int64) yes pattern ^-?(?:0|[1-9]\d*)$
categoryId path integer (int64) yes pattern ^-?(?:0|[1-9]\d*)$
Status Response Description
200 no schema specified OK
404 ProblemDetails Not Found

DELETE /api/v1/material/{materialId}/files/{fileId}

Deletes a file associated with a material, including the physical file in storage.

Parameter Location Type Required Description
materialId path integer (int64) yes pattern ^-?(?:0|[1-9]\d*)$
fileId path integer (int64) yes pattern ^-?(?:0|[1-9]\d*)$
Status Response Description
204 no schema specified No Content
404 ProblemDetails Not Found

POST /api/v1/material/batch-delete

Deletes multiple materials in a single sequential transaction to avoid deadlocks.

Body: BatchDeleteRequest. Content-Type: application/json, application/*+json. Required: yes.

Status Response Description
200 no schema specified OK
400 ProblemDetails Bad Request

POST /api/v1/material/fill

Attaches an audio or video file to an existing material.

Body: multipart/form-data. Required: yes.

Field Type Required Description
materialId integer or string (int64) yes
file binary file yes
Status Response Description
201 MaterialFillResponse Created
400 ProblemDetails Bad Request
404 ProblemDetails Not Found

GET /api/v1/material/{materialId}/artists

Parameter Location Type Required Description
materialId path integer (int64) yes pattern ^-?(?:0|[1-9]\d*)$
Status Response Description
200 array of MaterialArtistResponse OK
404 ProblemDetails Not Found

POST /api/v1/material/{materialId}/artists

Parameter Location Type Required Description
materialId path integer (int64) yes pattern ^-?(?:0|[1-9]\d*)$

Body: LinkArtistRequest. Content-Type: application/json, application/*+json. Required: yes.

Status Response Description
201 MaterialArtistResponse Created
400 ProblemDetails Bad Request
404 ProblemDetails Not Found
409 ProblemDetails Conflict

DELETE /api/v1/material/{materialId}/artists/{personId}

Parameter Location Type Required Description
materialId path integer (int64) yes pattern ^-?(?:0|[1-9]\d*)$
personId path integer (int64) yes pattern ^-?(?:0|[1-9]\d*)$
Status Response Description
204 no schema specified No Content
404 ProblemDetails Not Found

GET /api/v1/material/{materialId}/authors

Parameter Location Type Required Description
materialId path integer (int64) yes pattern ^-?(?:0|[1-9]\d*)$
Status Response Description
200 array of MaterialAuthorResponse OK
404 ProblemDetails Not Found

POST /api/v1/material/{materialId}/authors

Parameter Location Type Required Description
materialId path integer (int64) yes pattern ^-?(?:0|[1-9]\d*)$

Body: LinkAuthorRequest. Content-Type: application/json, application/*+json. Required: yes.

Status Response Description
201 MaterialAuthorResponse Created
400 ProblemDetails Bad Request
404 ProblemDetails Not Found
409 ProblemDetails Conflict

DELETE /api/v1/material/{materialId}/authors/{personId}

Parameter Location Type Required Description
materialId path integer (int64) yes pattern ^-?(?:0|[1-9]\d*)$
personId path integer (int64) yes pattern ^-?(?:0|[1-9]\d*)$
Status Response Description
204 no schema specified No Content
404 ProblemDetails Not Found

MediaType

GET /api/v1/media-type

Status Response Description
200 array of MediaTypeResponse OK

GET /api/v1/media-type/{mediaTypeId}

Parameter Location Type Required Description
mediaTypeId path integer (int32) yes pattern ^-?(?:0|[1-9]\d*)$
Status Response Description
200 MediaTypeResponse OK
404 ProblemDetails Not Found

Order

GET /api/v1/traffic/order

Status Response Description
200 array of OrderResponse OK

POST /api/v1/traffic/order

Body: CreateOrderRequest. Content-Type: application/json, text/json, application/*+json. Required: yes.

Status Response Description
200 OrderResponse OK

GET /api/v1/traffic/order/{orderId}

Parameter Location Type Required Description
orderId path integer (int32) yes pattern ^-?(?:0|[1-9]\d*)$
Status Response Description
200 OrderResponse OK

PUT /api/v1/traffic/order/{orderId}

Parameter Location Type Required Description
orderId path integer (int32) yes pattern ^-?(?:0|[1-9]\d*)$

Body: UpdateOrderRequest. Content-Type: application/json, text/json, application/*+json. Required: yes.

Status Response Description
200 OrderResponse OK

DELETE /api/v1/traffic/order/{orderId}

Parameter Location Type Required Description
orderId path integer (int32) yes pattern ^-?(?:0|[1-9]\d*)$
Status Response Description
200 no schema specified OK

GET /api/v1/traffic/order/statuses

Status Response Description
200 no schema specified OK

GET /api/v1/traffic/order/position-types

Status Response Description
200 no schema specified OK

GET /api/v1/traffic/order/protection-levels

Status Response Description
200 no schema specified OK

Order Daypart

GET /api/v1/traffic/order_daypart

Status Response Description
200 array of OrderDaypartDto OK

POST /api/v1/traffic/order_daypart

Body: CreateOrderDaypartRequest. Content-Type: application/json, text/json, application/*+json. Required: yes.

Status Response Description
200 OrderDaypartDto OK

GET /api/v1/traffic/order_daypart/{id}

Parameter Location Type Required Description
id path integer (int64) yes pattern ^-?(?:0|[1-9]\d*)$
Status Response Description
200 OrderDaypartDto OK

PUT /api/v1/traffic/order_daypart/{id}

Parameter Location Type Required Description
id path integer (int32) yes pattern ^-?(?:0|[1-9]\d*)$

Body: UpdateOrderDaypartRequest. Content-Type: application/json, text/json, application/*+json. Required: yes.

Status Response Description
200 OrderDaypartDto OK

DELETE /api/v1/traffic/order_daypart/{id}

Parameter Location Type Required Description
id path integer (int64) yes pattern ^-?(?:0|[1-9]\d*)$
Status Response Description
200 no schema specified OK

Person

GET /api/v1/person

Status Response Description
200 array of PersonResponse OK

POST /api/v1/person

Body: CreatePersonRequest. Content-Type: application/json, application/*+json. Required: yes.

Status Response Description
201 PersonResponse Created
400 ProblemDetails Bad Request
409 ProblemDetails Conflict

GET /api/v1/person/{id}

Parameter Location Type Required Description
id path integer (int64) yes pattern ^-?(?:0|[1-9]\d*)$
Status Response Description
200 PersonResponse OK
404 ProblemDetails Not Found

PUT /api/v1/person/{id}

Parameter Location Type Required Description
id path integer (int64) yes pattern ^-?(?:0|[1-9]\d*)$

Body: UpdatePersonRequest. Content-Type: application/json, application/*+json. Required: yes.

Status Response Description
200 PersonResponse OK
400 ProblemDetails Bad Request
404 ProblemDetails Not Found
409 ProblemDetails Conflict

DELETE /api/v1/person/{id}

Parameter Location Type Required Description
id path integer (int64) yes pattern ^-?(?:0|[1-9]\d*)$
Status Response Description
204 no schema specified No Content
404 ProblemDetails Not Found
409 ProblemDetails Conflict

PGM5

GET /api/v1/traffic/pgm5/all

Parameter Location Type Required Description
FromDate query string (date) no
ToDate query string (date) no
Status query integer or string (uint8) no pattern ^-?(?:0|[1-9]\d*)$
StationId query integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$
Status Response Description
200 array of Pgm5SummaryResponse OK
400 ProblemDetails Bad Request

GET /api/v1/traffic/pgm5/{pgmId}

Parameter Location Type Required Description
pgmId path integer (int32) yes pattern ^-?(?:0|[1-9]\d*)$
Status Response Description
200 SchedulingResponse OK
400 ProblemDetails Bad Request
404 ProblemDetails Not Found

DELETE /api/v1/traffic/pgm5/{pgmId}

Parameter Location Type Required Description
pgmId path integer (int32) yes pattern ^-?(?:0|[1-9]\d*)$
Status Response Description
204 no schema specified No Content
400 ProblemDetails Bad Request
404 ProblemDetails Not Found

GET /api/v1/traffic/pgm5

Parameter Location Type Required Description
stationId query integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$
date query string (date) no
Status Response Description
200 SchedulingResponse OK
400 ProblemDetails Bad Request
404 ProblemDetails Not Found

POST /api/v1/traffic/pgm5

Body: SavePgm5Request. Content-Type: application/json, text/json, application/*+json. Required: yes.

Status Response Description
200 SavePgm5Response OK
400 ProblemDetails Bad Request

GET /api/v1/traffic/pgm5/exists

Parameter Location Type Required Description
stationId query integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$
date query string (date) no
Status Response Description
200 Pgm5ExistsResponse OK
400 ProblemDetails Bad Request

PATCH /api/v1/traffic/pgm5/{pgmId}/status

Parameter Location Type Required Description
pgmId path integer (int32) yes pattern ^-?(?:0|[1-9]\d*)$

Body: UpdatePgm5StatusRequest. Content-Type: application/json, text/json, application/*+json. Required: yes.

Status Response Description
200 Pgm5SummaryResponse OK
400 ProblemDetails Bad Request
404 ProblemDetails Not Found

PGM

GET /api/v1/pgm

Parameter Location Type Required Description
StationId query integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$
Date query string no
ProgrammingTypeId query integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
Active query boolean no
Status Response Description
200 no schema specified OK
400 ProblemDetails Bad Request

POST /api/v1/pgm

Body: CreatePgmRequest. Content-Type: application/json, text/json, application/*+json. Required: yes.

Status Response Description
201 PgmResponse Created
400 ProblemDetails Bad Request

GET /api/v1/pgm/types

Status Response Description
200 array of ProgrammingTypeResponse OK

GET /api/v1/pgm/conditions

Status Response Description
200 array of PgmConditionResponse OK

GET /api/v1/pgm/{pgmId}

Parameter Location Type Required Description
pgmId path integer (int32) yes pattern ^-?(?:0|[1-9]\d*)$
Status Response Description
200 PgmResponse OK
400 ProblemDetails Bad Request
404 ProblemDetails Not Found

PUT /api/v1/pgm/{pgmId}

Parameter Location Type Required Description
pgmId path integer (int32) yes pattern ^-?(?:0|[1-9]\d*)$

Body: UpdatePgmRequest. Content-Type: application/json, text/json, application/*+json. Required: yes.

Status Response Description
200 PgmResponse OK
400 ProblemDetails Bad Request
404 ProblemDetails Not Found

DELETE /api/v1/pgm/{pgmId}

Parameter Location Type Required Description
pgmId path integer (int32) yes pattern ^-?(?:0|[1-9]\d*)$
Status Response Description
204 no schema specified No Content
400 ProblemDetails Bad Request
404 ProblemDetails Not Found

PriorityType

GET /api/v1/priority-type

Status Response Description
200 array of PriorityTypeResponse OK

GET /api/v1/priority-type/{priorityTypeId}

Parameter Location Type Required Description
priorityTypeId path integer (int32) yes pattern ^-?(?:0|[1-9]\d*)$
Status Response Description
200 PriorityTypeResponse OK
404 ProblemDetails Not Found

Report

GET /api/v1/traffic/reports/programming

Parameter Location Type Required Description
startDate query string (date) no
endDate query string (date) no
stationId query integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$
clientId query integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
orderId query integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
Status Response Description
200 array of SchedulingResponse OK
400 ProblemDetails Bad Request
401 ProblemDetails Unauthorized

GET /api/v1/traffic/reports/orders

Parameter Location Type Required Description
startDate query string (date) no
endDate query string (date) no
stationId query integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$
clientId query integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
orderId query integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
Status Response Description
200 array of ReportOrdenesItem OK
400 ProblemDetails Bad Request
401 ProblemDetails Unauthorized

GET /api/v1/traffic/reports/schedule

Parameter Location Type Required Description
startDate query string (date) no
endDate query string (date) no
stationId query integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$
Status Response Description
200 array of ReportScheduleItem OK
400 ProblemDetails Bad Request
401 ProblemDetails Unauthorized

GET /api/v1/traffic/reports/break-occupancy

Parameter Location Type Required Description
startDate query string (date) no
endDate query string (date) no
stationId query integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$
Status Response Description
200 array of ReportBreakOccupancyItem OK
400 ProblemDetails Bad Request
401 ProblemDetails Unauthorized

GET /api/v1/traffic/reports/break-occupancy-daily

Gets break occupancy grouped by scheduling day for the inclusive range.

Parameter Location Type Required Description
startDate query string (date) no
endDate query string (date) no
stationId query integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$
Status Response Description
200 array of ReportBreakOccupancyDailyItem OK
400 ProblemDetails Bad Request
401 ProblemDetails Unauthorized
403 ProblemDetails Forbidden

GET /api/v1/traffic/reports/industry-share

Parameter Location Type Required Description
startDate query string (date) no
endDate query string (date) no
stationId query integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$
Status Response Description
200 array of ReportIndustryShareItem OK
400 ProblemDetails Bad Request
401 ProblemDetails Unauthorized

GET /api/v1/traffic/reports/audit

Parameter Location Type Required Description
from query string (date-time) no
to query string (date-time) no
method query string no
statusCode query integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
userId query integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
limit query integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
Status Response Description
200 array of ReportAuditLogItem OK
400 ProblemDetails Bad Request
401 ProblemDetails Unauthorized

Reports

Audit and playback reports against the database LogDatabaseName of the configured product (base path /api/v1/reports).

Authentication, permissions, and conventions

  • All report endpoints require Authorization: Bearer <access-token>.
  • Query and catalog endpoints require the permission OpenAuditManager (APPID 101, ACTIONID 3). The API resolves the permission from the permissions database and returns 403 if the user does not have it. The global gatekeeper EnableAPI.
  • Played-material presets: GET requires OpenAuditManager; PUT requires the separate permission Edit presets (EditReportPresets, APPID 101, ACTIONID 28) under the category Report Manager.
  • material-actions and user-actions require startDate and endDate (yyyy-MM-dd), interpreted as server-local dates and converted to UTC.
  • played-materials prefers startUtc and endUtc: ISO 8601 timestamps with an explicit time zone, using a half-open range [startUtc, endUtc). For compatibility, the legacy pair startDate/endDate. The pairs cannot be mixed.
  • Temporary workaround in played-materials: : although the columns are named LOGUTCDATE/LOGUTCTIME, they currently contain local time. The backend converts the received UTC limits to the host's local time for filtering, then normalizes those fields to UTC in the response to preserve the current contract. The API host must use the time zone of the server generating those logs.
  • In played-materials, both bounds are required; date-only values, timestamps without a time zone, incomplete pairs, mixed ranges, and ranges where endUtc is not later than startUtc.
  • List filters are sent by repeating the same parameter (not CSV), for example materialIds=15065447&materialIds=15095447.
  • is not accepted as a filter: all queries include all servers. serverIds as a filter: all queries include all servers. serverId may appear in response rows for informational purposes.
  • page starts at 1. pageSize ranges from 1 to 1000 and defaults to 500.

Paginated report responses use RemoteToolsReportPage:

{
  "items": [],
  "total": 0,
  "page": 1,
  "pageSize": 500
}

Common errors: 400 invalid range/filters/pagination, 401 missing or invalid JWT, 403 insufficient permission or global gatekeeper failure, 409 preset revision conflict, 500 query execution or preset storage error. This API does not generate CSV/Excel exports; the frontend builds them from paginated JSON data.

Catalogs and filters

Route Permission Response / source
GET /api/v1/reports/material-actions/actions OpenAuditManager List of ACTIONNAME where TABLENAME = MATERIAL.
GET /api/v1/reports/material-actions/users or GET /api/v1/reports/filters/users OpenAuditManager List of USERNAME from [USER].
GET /api/v1/reports/material-actions/workstations or GET /api/v1/reports/filters/workstations OpenAuditManager List of MACHINENAME from MACHINE.
GET /api/v1/reports/played-materials/applications OpenAuditManager List of ReportApplicationOption from APPLICATION.
GET /api/v1/reports/played-materials/windows OpenAuditManager List of WINDOWNAME from WINDOW.
GET /api/v1/reports/played-materials/columns OpenAuditManager Explicit catalog of PlayedMaterialsColumnDefinition.
GET /api/v1/reports/user-actions/actions OpenAuditManager List of ACTIONNAME available in ACTION.

User, workstation, action, application, and window catalogs are retrieved from the log database. For stations, use GET /api/v1/station (STATIONID/STATIONNAME) and for material types GET /api/v1/asset-type.

GET /api/v1/reports/material-actions/actions

Status Response Description
200 array of strings OK
401 ProblemDetails Unauthorized
403 ProblemDetails Forbidden

GET /api/v1/reports/material-actions/users

Alias: GET /api/v1/reports/filters/users.

Status Response Description
200 array of strings OK
401 ProblemDetails Unauthorized
403 ProblemDetails Forbidden

GET /api/v1/reports/material-actions/workstations

Alias: GET /api/v1/reports/filters/workstations.

Status Response Description
200 array of strings OK
401 ProblemDetails Unauthorized
403 ProblemDetails Forbidden

GET /api/v1/reports/played-materials/applications

Status Response Description
200 array of ReportApplicationOption OK
401 ProblemDetails Unauthorized
403 ProblemDetails Forbidden

GET /api/v1/reports/played-materials/windows

Status Response Description
200 array of strings OK
401 ProblemDetails Unauthorized
403 ProblemDetails Forbidden

GET /api/v1/reports/played-materials/columns

Gets the explicit catalog of columns allowed in the played-materials report.

Status Response Description
200 array of PlayedMaterialsColumnDefinition OK
401 ProblemDetails Unauthorized
403 ProblemDetails Forbidden

GET /api/v1/reports/user-actions/actions

Status Response Description
200 array of strings OK
401 ProblemDetails Unauthorized
403 ProblemDetails Forbidden

GET /api/v1/reports/material-actions

Actions performed on materials. Includes logs from all servers.

Parameter Location Type Required Description
startDate query string (date) yes Local start of period (yyyy-MM-dd).
endDate query string (date) yes Inclusive local end of period (yyyy-MM-dd).
materialIds query array of integer (int64) no Material IDs (repeat parameter). Compared against RECORDID in rows TABLENAME = MATERIAL.
actions query array of strings no Values of ACTIONNAME (repeat parameter).
users query array of strings no Values of USERNAME (repeat parameter).
workstations query array of strings no Values of MACHINENAME (repeat parameter).
sortBy query string no date (default) or action.
page query integer (int32) no Default 1.
pageSize query integer (int32) no 1 to 1000, default 500.

Without list filters, returns all material actions in the period across all servers.

Status Response Description
200 RemoteToolsReportPage OK
400 ProblemDetails Bad Request
401 ProblemDetails Unauthorized
403 ProblemDetails Forbidden

GET /api/v1/reports/played-materials

Played materials (LOGEMISSION). groupBy only sorts rows to display them together; it does not aggregate or change the level of detail. The broadcast ID (logEmissionId) provides a stable tie-breaker before pagination.

Parameter Location Type Required Description
startUtc, endUtc query string (date-time) conditional Recommended mode: startUtc inclusive and endUtc exclusive, both with an explicit time zone (Z or offset). Do not combine with startDate/endDate.
startDate, endDate query string (date) conditional Legacy mode: inclusive local days. Do not combine with the UTC pair.
stationId query integer (int64) no Station ID (GET /api/v1/station); without it, includes all stations.
workstations query array of strings no Filters by MACHINENAME (repeat parameter).
applicationIds query array of integer (int32) no Filters by application (repeat parameter).
materialIds query array of integer (int64) no Filters by material ID (repeat parameter).
materialCodes query array of strings no Filters by material code (repeat parameter).
assetTypeIds query array of integer (int32) no Filters by material type (repeat parameter).
windowNames query array of strings no Filters by window (repeat parameter).
columns query array of strings no Catalog IDs /played-materials/columns; if omitted, returns all authorized fields.
sorts[i].columnId query string no Ordered composite sorting criteria; sortable catalog column, without duplicates.
sorts[i].direction query string no asc or desc for the corresponding criterion. If sortsis supplied, it takes precedence over sortBy/sortDirection.
sortBy query string no Compatible simple sorting; default logUtcDate.
sortDirection query string no asc (default) or desc.
groupBy query string no application, window, block or date. Secondary sorting only, to keep tied rows together where applicable.
page query integer (int32) no Default 1.
pageSize query integer (int32) no 1 to 1000, default 500.

Mapping to legacy reports:

Legacy report Distinctive filter groupBy
Filtered by code materialCodes application
Filtered by material ID materialIds application
Filtered by type assetTypeIds application
Window grouped by block windowNames block
Window sorted by date windowNames window
Sorted by date No distinctive filter application or date

The catalog is static; each row of items uses the stable catalog id as its property name. If names/titles not present in LOGEMISSIONare needed, they must be explicitly added to the catalog and to SELECT.

Status Response Description
200 RemoteToolsReportPage OK
400 ProblemDetails Bad Request
401 ProblemDetails Unauthorized
403 ProblemDetails Forbidden

GET /api/v1/reports/user-actions

User actions. Without list filters, returns all user actions in the period across all servers.

Parameter Location Type Required Description
startDate query string (date) yes Local start of period.
endDate query string (date) yes Inclusive local end of period.
users query array of strings no Filters by users (repeat parameter).
workstations query array of strings no Filters by workstations (repeat parameter).
actions query array of strings no Filters by actions (repeat parameter).
groupBy query string no action, user or date.
page query integer (int32) no Default 1.
pageSize query integer (int32) no 1 to 1000, default 500.
Status Response Description
200 RemoteToolsReportPage OK
400 ProblemDetails Bad Request
401 ProblemDetails Unauthorized
403 ProblemDetails Forbidden

GET /api/v1/reports/played-materials/presets

Returns the shared preset collection without caching. Presets are stored as one GUID-named file each in ReportManager/Presets/PlayedMaterialsnext to the API; the display name is not used as the file name.

Status Response Description
200 PlayedMaterialsPresetsResponse OK
401 ProblemDetails Unauthorized
403 ProblemDetails Forbidden
500 JSON object Storage read error (message).

Notes: columns[].id must exist in GET /api/v1/reports/played-materials/columns; the order of columns is the display order. label and width are customized per preset. sorts is optional and can sort by any sortable catalog column, even if hidden. Existing presets with sort: { columnId, direction } remain valid and are preserved; a new preset cannot send sort and sorts.

PUT /api/v1/reports/played-materials/presets

Saves partial changes: only changed presets (entries) and deleted presets (deleted). Requires the permission Edit presets.

Body: PutPlayedMaterialsPresetsRequest. Content-Type: application/json. Required: yes.

Status Response Description
200 PutPlayedMaterialsPresetsResponse OK
400 JSON object Invalid body or rejected validation (message).
401 ProblemDetails Unauthorized
403 ProblemDetails Forbidden
409 JSON object Revision conflict; reload the server version before saving.
500 JSON object Storage error (message).

Notes: to update or delete, revisions must include the revision read in the GET; to create, send null. A preset cannot appear in both entries and deleted. The server generates a new revision per file and responds with the collection fingerprint and an updated revision map. Changes spanning multiple files are not a global transaction.

Validation rules: up to 100 presets; a unique, case-insensitive name of 1–60 characters; catalog columns without duplicates; at least one visible column; labels of 1–100 characters; widths of 60–1000 px; sorting limited to authorized columns; maximum request size of 1 MiB.

RythmType

GET /api/v1/rythm-type

Status Response Description
200 array of RythmTypeResponse OK

GET /api/v1/rythm-type/{rythmTypeId}

Parameter Location Type Required Description
rythmTypeId path integer (int32) yes pattern ^-?(?:0|[1-9]\d*)$
Status Response Description
200 RythmTypeResponse OK
404 ProblemDetails Not Found

Settings

GET /api/v1/traffic/settings

Status Response Description
200 SettingsResponse OK
404 ProblemDetails Not Found

PATCH /api/v1/traffic/settings

Body: UpdateSettingsRequest. Content-Type: application/json, application/*+json. Required: yes.

Status Response Description
200 SettingsResponse OK
400 ProblemDetails Bad Request
404 ProblemDetails Not Found

Station

GET /api/v1/station

Get all stations

Status Response Description
200 array without a declared schema OK
401 ProblemDetails Unauthorized

GET /api/v1/station/{stationId}

Get station by ID

Parameter Location Type Required Description
stationId path integer (int64) yes pattern ^-?(?:0|[1-9]\d*)$
Status Response Description
200 no schema specified OK
400 ProblemDetails Bad Request
401 ProblemDetails Unauthorized
404 ProblemDetails Not Found

Template

GET /api/v1/traffic/template

Parameter Location Type Required Description
includeInactive query boolean no default False
Status Response Description
200 array of TemplateResponse OK

POST /api/v1/traffic/template

Body: CreateTemplateRequest. Content-Type: application/json, text/json, application/*+json. Required: yes.

Status Response Description
201 TemplateResponse Created
400 ProblemDetails Bad Request

GET /api/v1/traffic/template/{id}

Parameter Location Type Required Description
id path integer (int32) yes pattern ^-?(?:0|[1-9]\d*)$
Status Response Description
200 TemplateResponse OK
404 ProblemDetails Not Found

PUT /api/v1/traffic/template/{id}

Parameter Location Type Required Description
id path integer (int32) yes pattern ^-?(?:0|[1-9]\d*)$

Body: UpdateTemplateRequest. Content-Type: application/json, text/json, application/*+json. Required: yes.

Status Response Description
200 TemplateResponse OK
400 ProblemDetails Bad Request
404 ProblemDetails Not Found

POST /api/v1/traffic/template/{id}/duplicate

Parameter Location Type Required Description
id path integer (int32) yes pattern ^-?(?:0|[1-9]\d*)$

Body: DuplicateTemplateRequest. Content-Type: application/json, text/json, application/*+json. Required: yes.

Validation rule: send exactly one of dayOfWeek (mask > 0) and specificDate.

Status Response Description
201 TemplateResponse Created
400 ProblemDetails Bad Request
404 ProblemDetails Not Found

DELETE /api/v1/traffic/template/{id}

Parameter Location Type Required Description
id path integer (int32) yes pattern ^-?(?:0|[1-9]\d*)$
Status Response Description
204 no schema specified No Content
404 ProblemDetails Not Found

DELETE /api/v1/traffic/template/{id}/hard

Parameter Location Type Required Description
id path integer (int32) yes pattern ^-?(?:0|[1-9]\d*)$
Status Response Description
204 no schema specified No Content
404 ProblemDetails Not Found

User

POST /api/v1/traffic/user/refreshusers

Status Response Description
200 no schema specified OK

GET /api/v1/traffic/users

Gets all users.

Status Response Description
200 no schema specified OK

GET /api/v1/traffic/user/{userid}

Gets a user by ID.

Parameter Location Type Required Description
userid path integer or string (int32) yes User ID. pattern ^-?(?:0|[1-9]\d*)$
Status Response Description
200 no schema specified OK

PUT /api/v1/traffic/user/{userid}

Updates a user's roleid (singular endpoint).

Parameter Location Type Required Description
userid path integer or string (int32) yes User ID. pattern ^-?(?:0|[1-9]\d*)$

Body: UpdateUserRoleDto. Content-Type: application/json, text/json, application/*+json. Required: yes.

Status Response Description
200 no schema specified OK

PUT /api/v1/traffic/users/{userid}

Updates a user's roleid (plural endpoint).

Parameter Location Type Required Description
userid path integer or string (int32) yes User ID. pattern ^-?(?:0|[1-9]\d*)$

Body: UpdateUserRoleDto. Content-Type: application/json, text/json, application/*+json. Required: yes.

Status Response Description
200 no schema specified OK

6. Data models

The following names and types are taken directly from the OpenAPI specification. A property not marked as required may be absent; in addition, some legacy models allow null values even when the schema does not always explicitly mark them as nullable. Clients should deserialize tolerantly.

Model ActiveStage

Active stage of the scheduler. Controls which logic is enabled.

Property Type Required Description and constraints
`` no schema specified yes

Model AgencyResponse

Property Type Required Description and constraints
agencyId integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
name string no
type integer or string (uint8) no pattern ^-?(?:0|[1-9]\d*)$
typeName null or string no
contact null or string no
phone null or string no
email null or string no
commission null or number or string (double) no pattern ^-?(?:0|[1-9]\d*)(?:\.\d+)?$
notes null or string no
status integer or string (uint8) no pattern ^-?(?:0|[1-9]\d*)$
statusName null or string no

Model AlbumResponse

Property Type Required Description and constraints
albumId integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$
albumName string no
albumYear null or string no
genreId null or integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$
catalogCode null or string no
companyId null or integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$
comments null or string no
imageFileId null or integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$

Model AssetTypeResponse

Property Type Required Description and constraints
assetTypeId integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
assetTypeName null or string no

Model BatchDeleteRequest

Property Type Required Description and constraints
materialIds array of integer or string (int64) no

Model BreakClipResponse

Preassigned fixed clip.

Property Type Required Description and constraints
position integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
clipId integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
materialId integer or string (int64) yes pattern ^-?(?:0|[1-9]\d*)$
assetTypeId null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
assetTypeName string yes
title null or string no
durationSeconds integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
playedDate null or string (date-time) no
aired boolean no

Model BreakResponse

Information about a scheduled break.

Property Type Required Description and constraints
breakId integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
templateId integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
name string yes
startTime string (time) yes
startDayOffset boolean yes indicates whether startTime falls on the next day (true = add 24 hours, e.g., 01:00 + offset = 25:00)
totalDuration integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
breakType string yes
zones array of ZoneResponse yes
clips array of BreakClipResponse yes

Model BreakTemplateClipResponse

Response DTO for a template clip.

Property Type Required Description and constraints
clipId integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
materialId null or integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$
randomArtisticCategoryId null or integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$
assetTypeName null or string no
title null or string no
durationSeconds integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
position integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$

Model BreakTemplateResponse

Response DTO for a break template.

Property Type Required Description and constraints
breakTemplateId integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
templateId integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
stationId integer or string (int64) yes pattern ^-?(?:0|[1-9]\d*)$
templateName string yes
name string yes
startTime string (time) yes
dayOffset boolean yes
totalDuration integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
breakType integer or string (uint8) yes pattern ^-?(?:0|[1-9]\d*)$
breakTypeName null or string yes
dayOfWeek integer or string (uint8) yes pattern ^-?(?:0|[1-9]\d*)$
specificDate null or string (date) no
isActive boolean yes
utcCreated string (date-time) yes
utcModified string (date-time) yes
zones array of BreakTemplateZoneResponse no
clips array of BreakTemplateClipResponse no

Model BreakTemplateZoneResponse

Response DTO for a template zone.

Property Type Required Description and constraints
zoneId integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
scope Scope yes
scopeName null or string yes
maxDuration integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
position integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$

Model CampaignResponse

Property Type Required Description and constraints
campaignId integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
clientId integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
clientName null or string no
agencyId null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
agencyName null or string no
name string no
startDate string (date) no
endDate string (date) no
status integer or string (uint8) no pattern ^-?(?:0|[1-9]\d*)$
statusName null or string no
notes null or string no

Model CategoryResponse

Property Type Required Description and constraints
categoryId integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$
categoryName string no
nodeLevel null or string no
description null or string no
counter null or string no
prefix null or string no
isStorage null or boolean no
assetTypeId null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
storageName null or string no
utcCreatedDate null or string no
utcCreatedTime null or string no
utcModifiedDate null or string no
utcModifiedTime null or string no

Model ClientResponse

Property Type Required Description and constraints
clientId integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
companyName string no
industries array of IndustryItem no
contact null or string no
phone null or string no
email null or string no
status integer or string (uint8) no pattern ^-?(?:0|[1-9]\d*)$
statusName null or string no
notes null or string no

Model ClipMetadataResponse

Property Type Required Description and constraints
clipMetadataId integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$
materialId integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$
orderId integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
selectionPercentage integer or string (uint8) no 0..100
position integer or string (int32) no Material order within the advertising order, starting at 0.
isFixed boolean no true if the clip is fixed: its percentage does not change during redistribution.

Model ClipRequest

Property Type Required Description and constraints
materialId integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$
selectionPercentage integer or string (int32) no Integer 0..100; default 100. The sum of the clips in the order must be exactly 100.
isFixed boolean no Indicates whether the clip is fixed (its percentage is not redistributed); default false. The list order is stored as the material position.

Model ClipResponse

Property Type Required Description and constraints
materialId integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$
selectionPercentage integer or string (uint8) no 0..100
isFixed boolean no true if the clip is fixed: its percentage does not change during redistribution. Clips are returned in saved order.
code null or string no
title null or string no
duration null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
categoryId null or integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$
categoryName null or string no

Model CompanyResponse

Property Type Required Description and constraints
companyId integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$
companyName string no
utcCreatedDate null or string no
utcCreatedTime null or string no
utcModifiedDate null or string no
utcModifiedTime null or string no

Model CreateAgencyRequest

Property Type Required Description and constraints
name string no
type integer or string (uint8) no pattern ^-?(?:0|[1-9]\d*)$
contact null or string no
phone null or string no
email null or string no
commission null or number or string (double) no pattern ^-?(?:0|[1-9]\d*)(?:\.\d+)?$
notes null or string no
status integer or string (uint8) no pattern ^-?(?:0|[1-9]\d*)$

Model CreateAlbumRequest

Property Type Required Description and constraints
albumName string yes
albumYear null or string no
genreId null or integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$
catalogCode null or string no
companyId null or integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$
comments null or string no
imageFileId null or integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$

Model CreateBreakTemplateClipRequest

DTO for creating a clip within a template.

Property Type Required Description and constraints
materialId null or integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$
randomArtisticCategoryId null or integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$
position integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$

Model CreateBreakTemplateRequest

DTO for creating a new break template. Includes associated zones and clips.

Property Type Required Description and constraints
templateId integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
name string yes
startTime string (time) yes
dayOffset boolean yes
totalDuration integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
breakType integer or string (uint8) no pattern ^-?(?:0|[1-9]\d*)$
isActive boolean no
zones array of CreateBreakTemplateZoneRequest no
clips array of CreateBreakTemplateClipRequest no

Model CreateBreakTemplateZoneRequest

DTO for creating a zone within a template.

Property Type Required Description and constraints
scope Scope no
maxDuration integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
position integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$

Model CreateBreakTypeRequest

Property Type Required Description and constraints
name string yes

Model CreateCampaignRequest

Property Type Required Description and constraints
clientId integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
agencyId null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
name string no
startDate string (date) no
endDate string (date) no
status integer or string (uint8) no pattern ^-?(?:0|[1-9]\d*)$
notes null or string no

Model CreateCategoryRequest

Property Type Required Description and constraints
categoryName string no
parentCategoryId integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$
description null or string no
assetTypeId null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
prefix null or string no

Model CreateClientRequest

Property Type Required Description and constraints
companyName string no
industryIds array of integer or string (int32) no
contact null or string no
phone null or string no
email null or string no
status integer or string (uint8) no pattern ^-?(?:0|[1-9]\d*)$
notes null or string no

Model CreateClipMetadataRequest

Property Type Required Description and constraints
materialId integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$

Model CreateCompanyRequest

Property Type Required Description and constraints
companyName string yes

Model CreateGenreRequest

Property Type Required Description and constraints
genreName string yes

Model CreateOrderDaypartRequest

Property Type Required Description and constraints
orderId integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
stationId integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$
fixedTime boolean no
startTime string (time) no
endTime string (time) no
startDayOffset boolean no
endDayOffset boolean no
weekdays integer or string (uint8) no pattern ^-?(?:0|[1-9]\d*)$. With specificDate is stored as 0.
specificDate null or string (date) no Specific daypart date, within the order validity period.
calendarId null or string (uuid) no Play schedule to which the daypart belongs; requires specificDate. null = independent daypart.
orderRuns integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$

Model CreateOrderRequest

Property Type Required Description and constraints
campaignId null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
clientId integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
duration integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
startDate string (date) no
endDate null or string (date) no
priority integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
breakTypeFilter integer or string (uint8) no pattern ^-?(?:0|[1-9]\d*)$
positionType integer or string (uint8) no pattern ^-?(?:0|[1-9]\d*)$
manualPosition null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
scope integer or string (uint8) no pattern ^-?(?:0|[1-9]\d*)$
protectionLevel integer or string (uint8) no pattern ^-?(?:0|[1-9]\d*)$
minSeparation integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
maxFrequency integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
interleaveArtistic boolean no
title null or string no
status integer or string (uint8) no pattern ^-?(?:0|[1-9]\d*)$
dayparts array of OrderDaypartDto no
clips array of ClipRequest no
industryIds array of integer or string (int32) no

Model CreatePersonRequest

Property Type Required Description and constraints
personName string yes

Model CreatePgmRequest

Property Type Required Description and constraints
stationId integer or string (int64) yes pattern ^-?(?:0|[1-9]\d*)$
date string yes
programmingTypeId integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
active boolean no
blocks array of PgmBlockRequest yes

Model CreateTemplateRequest

Property Type Required Description and constraints
stationId integer or string (int64) yes pattern ^-?(?:0|[1-9]\d*)$
name string yes
dayOfWeek integer or string (uint8) no pattern ^-?(?:0|[1-9]\d*)$
startTime string (time) yes
endTime string (time) yes
endDayOffset boolean yes
specificDate null or string (date) no
isActive boolean no

Model DuplicateTemplateRequest

Property Type Required Description and constraints
targetStationId integer or string (int64) yes pattern ^-?(?:0|[1-9]\d*)$
name string yes
dayOfWeek integer or string (uint8) no pattern ^-?(?:0|[1-9]\d*)$
specificDate null or string (date) no

Model FileTypeResponse

Property Type Required Description and constraints
fileTypeId integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
fileTypeName null or string no

Model GenreResponse

Property Type Required Description and constraints
genreId integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$
genreName string no

Model HdxLoginRequest

Property Type Required Description and constraints
username string no
password string no

Model IFormFile

Property Type Required Description and constraints
`` no schema specified yes

Model IndustryItem

Property Type Required Description and constraints
industryId integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
name string no

Model IndustryResponse

Property Type Required Description and constraints
industryId integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
name string no

Model LinkArtistRequest

Property Type Required Description and constraints
personId integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$
order integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
unique boolean no

Model LinkAuthorRequest

Property Type Required Description and constraints
personId integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$
order integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
unique boolean no

Model LoginResponse

Property Type Required Description and constraints
success boolean no
message string no
token null or string no
refreshToken null or string no

Model MaterialArtistResponse

Property Type Required Description and constraints
personId integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$
personName string no
order integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
unique boolean no

Model MaterialAuthorResponse

Property Type Required Description and constraints
personId integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$
personName string no
order integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
unique boolean no

Model MaterialFileResponse

Property Type Required Description and constraints
fileId integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$
fileName string no
fileTypeId integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
subFolder string no
mimeType null or string no
fileSize null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
utcCreatedDate string no
utcCreatedTime string no
fullPath string no

Model MaterialFillResponse

Property Type Required Description and constraints
materialId integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$
fileId integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$

Model MaterialPlaceholderRequest

Property Type Required Description and constraints
rdsText null or string yes
code string yes
comments null or string yes
title string yes
categoryId integer or string (int64) yes pattern ^-?(?:0|[1-9]\d*)$
assetTypeId null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
mediaTypeId null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
albumId null or integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$
companyId null or integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$
genreId null or integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$
rythmId null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
artistIds array of integer or string (int64) no
authorIds array of integer or string (int64) no

Model MaterialResponse

Property Type Required Description and constraints
materialId integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$
title null or string no
code null or string no
rdsText null or string no
comments null or string no
priorityId null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
assetTypeId null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
mediaTypeId null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
materialStateId null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
startPos null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
endPos null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
intro null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
outro null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
punchIn null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
punchOut null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
punchInFadeLength null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
punchOutFadeLength null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
punchInFadeTypeId null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
punchOutFadeTypeId null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
insertOver null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
length null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
contractStartDate null or string no
contractEndDate null or string no
utcCreatedDate null or string no
utcCreatedTime null or string no
utcModifiedDate null or string no
utcModifiedTime null or string no
contentTypeId null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
contentDate null or string no
contentTime null or string no
oldMaterialId null or integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$
vStandard null or string no
archiveStateId null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
customField0 null or string no
customField1 null or string no
customField2 null or string no
customField3 null or string no
customField4 null or string no
customField5 null or string no
customField6 null or string no
customField7 null or string no
customField8 null or string no
customField9 null or string no
national boolean no
independent boolean no
skipSadaic boolean no
useTypeId null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
recordingTypeId null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
personType null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
languageId null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
bpm null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
tags null or string no
rythmId null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
utcDcsCuratedDate null or string no
utcDcsCuratedTime null or string no
acousticId null or string no
companyId null or integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$
albumId null or integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$
genreId null or integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$
categoryId null or integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$
categoryName null or string no
isDeleted null or boolean no
master null or boolean no

Model MediaTypeResponse

Property Type Required Description and constraints
mediaTypeId integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
mediaTypeName null or string no

Model NextCodeResponse

Property Type Required Description and constraints
code string no

Model OrderDaypartDto

Property Type Required Description and constraints
daypartId integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
orderId integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
stationId integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$
fixedTime boolean no
startTime string (time) no
endTime string (time) no
startDayOffset boolean no
endDayOffset boolean no
weekdays integer or string (uint8) no pattern ^-?(?:0|[1-9]\d*)$. With specificDate is stored as 0.
specificDate null or string (date) no Specific daypart date, within the order validity period.
calendarId null or string (uuid) no Play schedule to which the daypart belongs; requires specificDate. null = independent daypart.
orderRuns integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$

Model OrderResponse

Property Type Required Description and constraints
orderId integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
campaignId null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
campaignName null or string no
clientId integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
clientName null or string no
duration integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
startDate string (date) no
endDate null or string (date) no
priority integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
breakTypeFilter integer or string (uint8) no pattern ^-?(?:0|[1-9]\d*)$
breakTypeFilterName null or string no
positionType integer or string (uint8) no pattern ^-?(?:0|[1-9]\d*)$
positionTypeName null or string no
manualPosition null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
scopeId integer or string (uint8) no pattern ^-?(?:0|[1-9]\d*)$
scopeName null or string no
protectionLevel integer or string (uint8) no pattern ^-?(?:0|[1-9]\d*)$
protectionLevelName null or string no
interleaveArtistic boolean no
title null or string no
status integer or string (uint8) no pattern ^-?(?:0|[1-9]\d*)$
statusName null or string no
dayparts array of OrderDaypartDto no
clips array of ClipResponse no
industries array of IndustryResponse no

Model PagedResponseOfMaterialResponse

Property Type Required Description and constraints
data array of MaterialResponse no
total integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$

Model PersonResponse

Property Type Required Description and constraints
personId integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$
personName string no

Model Pgm5ExistsResponse

Property Type Required Description and constraints
exists boolean no
pgmId null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
status null or integer or string (uint8) no pattern ^-?(?:0|[1-9]\d*)$
statusName null or string no

Model Pgm5SummaryResponse

Property Type Required Description and constraints
pgmId integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
stationId integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$
pgmDate string (date) no
templateId integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
status integer or string (uint8) no pattern ^-?(?:0|[1-9]\d*)$
statusName null or string no
reviewReasons array of strings no
unplaced integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
forced integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
conflict integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$

Model PgmBlockRequest

Property Type Required Description and constraints
description null or string no
blockTime string yes
events array of PgmEventRequest yes

Model PgmBlockResponse

Property Type Required Description and constraints
description null or string no
blockTime string no
events array of PgmEventResponse no

Model PgmConditionResponse

Property Type Required Description and constraints
condition integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
name string no
description string no

Model PgmEventRequest

Property Type Required Description and constraints
materialId integer or string (int64) yes pattern ^-?(?:0|[1-9]\d*)$
condition integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
trafficCode null or string no
trafficIndex null or string no

Model PgmEventResponse

Property Type Required Description and constraints
materialId integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$
condition integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
trafficCode null or string no
trafficIndex null or string no

Model PgmResponse

Property Type Required Description and constraints
id integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
stationId integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$
date string no
programmingTypeId integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
programmingTypeName null or string no
active boolean no
utcModifiedDate string no
utcModifiedTime string no
blocks array of PgmBlockResponse no

Model PriorityTypeResponse

Property Type Required Description and constraints
priorityTypeId integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
priorityTypeName null or string no

Model ProblemDetails

Property Type Required Description and constraints
type null or string no
title null or string no
status null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
detail null or string no
instance null or string no

Model ProgrammingTypeResponse

Property Type Required Description and constraints
id integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
name null or string no

Model RefreshTokenRequest

Property Type Required Description and constraints
refreshToken string no

Model ReportAuditLogItem

User-action audit row.

Property Type Required Description and constraints
id integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$
createdAt string (date-time) no
userId null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
username null or string no
method string no
path string no
action string no
detail null or string no
statusCode integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
elapsedMs null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
error null or string no

Model ReportBreakOccupancyItem

Average hourly break occupancy in the range.

Property Type Required Description and constraints
hour integer or string (int32) yes Hour with day offset applied: 0–23 for the PGM day and 24–30 (e.g., 25 = 1:00 AM break on the next day). pattern ^-?(?:0|[1-9]\d*)$
ocupacionPct number or string (double) yes pattern ^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$
zonaUsadaSeg integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
zonaMaxSeg integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
zonas integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$

Model ReportBreakOccupancyDailyItem

Total break occupancy per scheduling day.

Property Type Required Description and constraints
day string (date) yes
ocupacionPct number or string (double) yes pattern ^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$
zonas integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
zonaMaxSeg integer or string (int64) yes pattern ^-?(?:0|[1-9]\d*)$
zonaUsadaSeg integer or string (int64) yes pattern ^-?(?:0|[1-9]\d*)$

Model ReportIndustryShareItem

Share by industry within the range.

Property Type Required Description and constraints
rubro string yes
segundos integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
spots integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
porcentaje number or string (double) yes pattern ^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$

Model ReportOrdenesItem

Projected airings per advertising order within a date range.

Property Type Required Description and constraints
orderId integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
orderTitle null or string no
clientId integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
clientName null or string no
campaignId null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
campaignName null or string no
duration integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
vecesQueSaldra integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
programadosReal integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$

Model ReportScheduleItem

As-run log: one row per material broadcast (spot or clip) in the range.

Property Type Required Description and constraints
playedDate null or string (date) no Actual air date (null if not aired yet).
playedTime null or string (time) no Actual air time (null if not aired yet).
orderTitle null or string no Advertising order title.
clientName null or string no
campaignName null or string no
industry null or string no Advertiser industry.
hdxMaterialName null or string no HDX material name.
duration integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
aired boolean no

Model PlayedMaterialsColumnDefinition

Allowed field in the played-materials report catalog.

Property Type Required Description and constraints
id string yes Stable column identifier.
originalName string yes Original column name.
type string yes Column data type.
sortable boolean yes Indicates whether the column can be used for sorting.
initialWidth integer or string (int32) yes Suggested initial width. pattern ^-?(?:0|[1-9]\d*)$

Model PlayedMaterialsSortCriterion

Sort criterion for the played-materials report.

Property Type Required Description and constraints
columnId string yes Catalog column ID.
direction string yes asc or desc.

Model ReportApplicationOption

Application available as a playback filter.

Property Type Required Description and constraints
applicationId integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
applicationName string yes

Model RemoteToolsReportPage

Page of rows from a Remote Tools report.

Property Type Required Description and constraints
items array of objects yes Report rows. Each object uses catalog/query column IDs as property names; values depend on the column.
total integer or string (int64) yes Total rows matching the filter. pattern ^-?(?:0|[1-9]\d*)$
page integer or string (int32) yes Current page (1-based). pattern ^-?(?:0|[1-9]\d*)$
pageSize integer or string (int32) yes Page size. pattern ^-?(?:0|[1-9]\d*)$

Model PlayedMaterialsPresetColumn

Property Type Required Description and constraints
id string yes Catalog column ID.
label string yes Custom label (1–100 characters).
visible boolean yes Column visibility.
width integer or string (int32) yes Width in pixels (60–1000). pattern ^-?(?:0|[1-9]\d*)$

Model PlayedMaterialsPresetEntry

Property Type Required Description and constraints
id string (uuid) yes Preset identifier (GUID).
name string yes Unique display name (1–60 characters).
columns array of PlayedMaterialsPresetColumn yes Visual column order; no duplicates; at least one visible.
sorts null or array of PlayedMaterialsSortCriterion no Current composite sorting.
sort null or PlayedMaterialsSortCriterion no Legacy simple sorting, preserved for existing presets. Cannot be combined with sorts in new presets.

Model PlayedMaterialsPresetsResponse

Property Type Required Description and constraints
version integer or string (int32) yes Preset schema version. pattern ^-?(?:0|[1-9]\d*)$
revision null or string no Collection fingerprint/revision.
revisions object (string → string map) yes Revision by preset ID.
entries array of PlayedMaterialsPresetEntry yes Shared presets.

Model PutPlayedMaterialsPresetsRequest

Property Type Required Description and constraints
revisions object (string → string or null map) yes Known revision for a changed/deleted preset; null to create.
entries array of PlayedMaterialsPresetEntry yes Created or updated presets.
deleted array of string (uuid) yes Preset IDs to delete.

Model PutPlayedMaterialsPresetsResponse

Property Type Required Description and constraints
revision null or string no Updated collection fingerprint/revision.
revisions object (string → string map) yes Revision by preset ID after saving.

Model RythmTypeResponse

Property Type Required Description and constraints
rythmTypeId integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
rythmTypeName null or string no

Model SaveBreakClipRequest

Property Type Required Description and constraints
position integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
clipId integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
materialId integer or string (int64) yes pattern ^-?(?:0|[1-9]\d*)$
assetTypeId null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
assetTypeName null or string no
title null or string no
durationSeconds integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$

Model SaveBreakRequest

Property Type Required Description and constraints
breakId integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
templateId integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
name string yes
startTime string (time) yes
totalDuration integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
breakType string yes
zones array of SaveZoneRequest yes
clips array of SaveBreakClipRequest yes

Model SavePgm5Request

Property Type Required Description and constraints
pgmId null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
scheduleDate string (date) yes
stationId integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
status null or integer or string (uint8) no pattern ^-?(?:0|[1-9]\d*)$
statusName null or string no
reviewReasons array of strings no
breaks array of SaveBreakRequest yes
summary SchedulingSummary yes
unplaced array of SaveUnplacedRequest yes
metrics SchedulingMetricsResponse yes
statusId integer or string (uint8) yes pattern ^-?(?:0|[1-9]\d*)$
reviewReason null or string no

Model SavePgm5Response

Property Type Required Description and constraints
pgmId integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
stationId integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$
pgmDate string (date) no
templateId integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
status integer or string (uint8) no pattern ^-?(?:0|[1-9]\d*)$
statusName null or string no
breakCount integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
zoneCount integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
clipCount integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
spotCount integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
unplacedCount integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
overwritten boolean no

Model SaveSpotRequest

Property Type Required Description and constraints
position integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
orderId null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
orderTitle null or string no
campaignId null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
campaignName null or string no
clientId null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
clientName null or string no
industry null or string no
materialId integer or string (int64) yes pattern ^-?(?:0|[1-9]\d*)$
durationSeconds integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
assetTypeId null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
assetTypeName null or string no
positionType null or string no
lockState string yes
conflictReason null or string no

Model SaveUnplacedRequest

Property Type Required Description and constraints
instanceId null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
orderId null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
orderTitle null or string no
campaignId null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
campaignName null or string no
clientId null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
clientName null or string no
industry null or string no
materialId integer or string (int64) yes pattern ^-?(?:0|[1-9]\d*)$
durationSeconds integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
assetTypeId null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
assetTypeName null or string no
positionType null or string no
probableCause string yes

Model SaveZoneRequest

Property Type Required Description and constraints
zoneId integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
scopeId integer or string (uint8) yes pattern ^-?(?:0|[1-9]\d*)$
scopeName string yes
position integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
maxDuration integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
usedDuration integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
spots array of SaveSpotRequest yes

Model ScheduleRequest

Request to execute the scheduling algorithm.

Property Type Required Description and constraints
stationId integer or string (int32) yes Station ID to schedule. pattern ^-?(?:0|[1-9]\d*)$
scheduleDate string (date) yes Date to schedule (commercial day).
activeStage ActiveStage no Active algorithm stage (Stage1, Stage2, or Stage3). Default: Stage1.
scoreWeights null or ScoreWeights no Custom scoring weights (optional). If null, uses default weights.
ignoreSoftConstraints boolean no If true, ignores soft constraints (separation, frequency, competitive protection). Spots that violate soft constraints will be assigned with state CONFLICT. Default: false (respects all constraints).
ignoreHardConstraints boolean no If true, ignores all constraints except physical duration. Spots will be assigned with state FORCED even if they violate hard constraints. Implies IgnoreSoftConstraints = true. Default: false (respects hard constraints).
savePgm boolean no If true, persists the generated PGM5 in HDX. If false, only returns the generated result.

Model SchedulingMetricsResponse

Result metrics.

Property Type Required Description and constraints
totalConflicts integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
totalForced integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
totalUnplaced integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
overallFulfillmentPercentage number or string (double) yes pattern ^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$

Model SchedulingResponse

Hierarchical scheduling algorithm response. Structure: Breaks → Zones → Spots

Property Type Required Description and constraints
pgmId null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
scheduleDate string (date) yes
stationId integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
status null or integer or string (uint8) no pattern ^-?(?:0|[1-9]\d*)$
statusName null or string no
reviewReasons array of strings no
breaks array of BreakResponse yes
summary SchedulingSummary yes
unplaced array of UnplacedResponse yes
metrics SchedulingMetricsResponse yes

Model SchedulingStats

Statistics about scheduling availability for a date.

Property Type Required Description and constraints
stationId integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
scheduleDate string (date) yes
breakCount integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
totalBreakDurationSeconds integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
campaignCount integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
orderCount integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
totalDesiredRuns integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$

Model SchedulingSummary

Overall result summary.

Property Type Required Description and constraints
totalBreaks integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
totalSpots integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
totalCommands integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
totalDuration integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
usedDuration integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$

Model Scope

Scope of a spot or zone: National or Local.

Property Type Required Description and constraints
`` no schema specified yes

Model ScoreWeights

Weights used to calculate candidate scores in the scheduling algorithm.

Property Type Required Description and constraints
w1_Priority number or string (double) no pattern ^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$
w2_Separation number or string (double) no pattern ^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$
w3_Distribution number or string (double) no pattern ^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$
w4_Variety number or string (double) no pattern ^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$
w5_Frequency number or string (double) no pattern ^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$
w6_Occupation number or string (double) no pattern ^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$

Model SettingsResponse

Property Type Required Description and constraints
settingId integer or string (uint8) no pattern ^-?(?:0|[1-9]\d*)$
autoApprovePgm boolean no
forceFullPlacement boolean no
enableAdvancedLog boolean no
materialCodeByCategory boolean no
defaultArtisticCategoryId null or integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$
utcModified string (date-time) no

Model SpotResponse

Assigned spot (commercial/artistic).

Property Type Required Description and constraints
position integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
orderId integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
orderTitle null or string no
campaignId null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
campaignName null or string no
clientId integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
clientName null or string no
industry null or string no
materialId integer or string (int64) yes pattern ^-?(?:0|[1-9]\d*)$
durationSeconds integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
assetTypeId null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
assetTypeName string yes
positionType null or string no
lockState string yes
conflictReason null or string no
playedDate null or string (date-time) no
aired boolean no

Model TemplateBreakTemplateSummaryResponse

Property Type Required Description and constraints
breakTemplateId integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
name string yes
startTime string (time) yes
dayOffset boolean yes
totalDuration integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
breakType integer or string (uint8) yes pattern ^-?(?:0|[1-9]\d*)$
breakTypeName null or string no
isActive boolean yes

Model TemplateResponse

Property Type Required Description and constraints
templateId integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
stationId integer or string (int64) yes pattern ^-?(?:0|[1-9]\d*)$
name string yes
dayOfWeek integer or string (uint8) yes pattern ^-?(?:0|[1-9]\d*)$
startTime string (time) yes
endTime string (time) yes
endDayOffset boolean yes
specificDate null or string (date) no
isActive boolean yes
utcCreated string (date-time) yes
utcModified string (date-time) yes
breakTemplates array of TemplateBreakTemplateSummaryResponse no

Model UnplacedResponse

Spot that could not be assigned.

Property Type Required Description and constraints
instanceId integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
orderId integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
orderTitle null or string no
campaignId null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
campaignName null or string no
clientId integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
clientName null or string no
industry null or string no
materialId integer or string (int64) yes pattern ^-?(?:0|[1-9]\d*)$
durationSeconds integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
assetTypeId null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
assetTypeName string yes
positionType null or string no
probableCause string yes

Model UpdateAgencyRequest

Property Type Required Description and constraints
name string no
type integer or string (uint8) no pattern ^-?(?:0|[1-9]\d*)$
contact null or string no
phone null or string no
email null or string no
commission null or number or string (double) no pattern ^-?(?:0|[1-9]\d*)(?:\.\d+)?$
notes null or string no
status integer or string (uint8) no pattern ^-?(?:0|[1-9]\d*)$

Model UpdateAlbumRequest

Property Type Required Description and constraints
albumName string yes
albumYear null or string no
genreId null or integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$
catalogCode null or string no
companyId null or integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$
comments null or string no
imageFileId null or integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$

Model UpdateBreakTemplateRequest

DTO for updating an existing template.

Property Type Required Description and constraints
templateId integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
name string yes
startTime string (time) yes
dayOffset boolean yes
totalDuration integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
breakType integer or string (uint8) no pattern ^-?(?:0|[1-9]\d*)$
isActive boolean no
zones array of CreateBreakTemplateZoneRequest no
clips array of CreateBreakTemplateClipRequest no

Model UpdateBreakTypeRequest

Property Type Required Description and constraints
name string yes

Model UpdateCampaignRequest

Property Type Required Description and constraints
clientId integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
agencyId null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
name string no
startDate string (date) no
endDate string (date) no
status integer or string (uint8) no pattern ^-?(?:0|[1-9]\d*)$
notes null or string no

Model UpdateCategoryRequest

Property Type Required Description and constraints
categoryName string no
description null or string no
prefix null or string no
assetTypeId null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$

Model UpdateClientRequest

Property Type Required Description and constraints
companyName string no
industryIds array of integer or string (int32) no
contact null or string no
phone null or string no
email null or string no
status integer or string (uint8) no pattern ^-?(?:0|[1-9]\d*)$
notes null or string no

Model UpdateCompanyRequest

Property Type Required Description and constraints
companyName string yes

Model UpdateGenreRequest

Property Type Required Description and constraints
genreName string yes

Model UpdateIndustryRequest

Property Type Required Description and constraints
name string no

Model UpdateMaterialRequest

Property Type Required Description and constraints
title null or string no
code null or string no
comments null or string no
rdsText null or string no
assetTypeId null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
mediaTypeId null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
albumId null or integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$
companyId null or integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$
genreId null or integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$
priorityId null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
materialStateId null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
startPos null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
endPos null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
intro null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
outro null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
punchIn null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
punchOut null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
punchInFadeLength null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
punchOutFadeLength null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
punchInFadeTypeId null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
punchOutFadeTypeId null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
insertOver null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
contractStartDate null or string no
contractEndDate null or string no
contentTypeId null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
contentDate null or string no
contentTime null or string no
vStandard null or string no
archiveStateId null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
customField0 null or string no
customField1 null or string no
customField2 null or string no
customField3 null or string no
customField4 null or string no
customField5 null or string no
customField6 null or string no
customField7 null or string no
customField8 null or string no
customField9 null or string no
national null or boolean no
independent null or boolean no
skipSadaic null or boolean no
useTypeId null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
recordingTypeId null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
personType null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
languageId null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
bpm null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
tags null or string no
rythmId null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$

Model UpdateOrderDaypartRequest

Property Type Required Description and constraints
stationId integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$
fixedTime boolean no
startTime string (time) no
endTime string (time) no
startDayOffset boolean no
endDayOffset boolean no
weekdays integer or string (uint8) no pattern ^-?(?:0|[1-9]\d*)$. With specificDate is stored as 0.
specificDate null or string (date) no Specific daypart date, within the order validity period.
calendarId null or string (uuid) no Play schedule to which the daypart belongs; requires specificDate. null = independent daypart.
orderRuns integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$

Model UpdateOrderRequest

Property Type Required Description and constraints
campaignId null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
clientId integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
duration integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
startDate string (date) no
endDate null or string (date) no
priority integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
breakTypeFilter integer or string (uint8) no pattern ^-?(?:0|[1-9]\d*)$
positionType integer or string (uint8) no pattern ^-?(?:0|[1-9]\d*)$
manualPosition null or integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
scope integer or string (uint8) no pattern ^-?(?:0|[1-9]\d*)$
protectionLevel integer or string (uint8) no pattern ^-?(?:0|[1-9]\d*)$
minSeparation integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
maxFrequency integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$
interleaveArtistic boolean no
title null or string no
status integer or string (uint8) no pattern ^-?(?:0|[1-9]\d*)$
dayparts array of OrderDaypartDto no
clips array of ClipRequest no
industryIds array of integer or string (int32) no

Model UpdatePersonRequest

Property Type Required Description and constraints
personName string yes

Model UpdatePgm5StatusRequest

Property Type Required Description and constraints
statusId integer or string (uint8) yes pattern ^-?(?:0|[1-9]\d*)$
reviewReason null or string no

Model UpdatePgmRequest

Property Type Required Description and constraints
stationId integer or string (int64) yes pattern ^-?(?:0|[1-9]\d*)$
date string yes
programmingTypeId integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
active boolean no
blocks array of PgmBlockRequest yes

Model UpdateSettingsRequest

Property Type Required Description and constraints
autoApprovePgm null or boolean no
forceFullPlacement null or boolean no
enableAdvancedLog null or boolean no
materialCodeByCategory null or boolean no
defaultArtisticCategoryId null or integer or string (int64) no pattern ^-?(?:0|[1-9]\d*)$

Model UpdateTemplateRequest

Property Type Required Description and constraints
stationId integer or string (int64) yes pattern ^-?(?:0|[1-9]\d*)$
name string yes
dayOfWeek integer or string (uint8) no pattern ^-?(?:0|[1-9]\d*)$
startTime string (time) yes
endTime string (time) yes
endDayOffset boolean yes
specificDate null or string (date) no
isActive boolean no

Model UpdateUserRoleDto

Property Type Required Description and constraints
roleid integer or string (int32) no pattern ^-?(?:0|[1-9]\d*)$

Model ZoneResponse

Zone within a break.

Property Type Required Description and constraints
zoneId integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
scopeId integer or string (uint8) yes pattern ^-?(?:0|[1-9]\d*)$
scopeName string yes
position integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
maxDuration integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
usedDuration integer or string (int32) yes pattern ^-?(?:0|[1-9]\d*)$
spots array of SpotResponse yes

7. Recommended workflows

On-air assistance application

  1. Authenticate and keep the token out of logs.
  2. Use HARDATA ECP to retrieve playlists, playlistItemId, materialId, timers, and current/next item changes.
  3. Retrieve GET /api/v1/material/{materialId} for metadata and audio markers.
  4. Retrieve artists and authors using the material's related endpoints as needed.
  5. Cache responses by materialId, with reasonable invalidation; do not query on every timer event.
  6. Make transport-control decisions exclusively from the authoritative HARDATA ECP state.

Traffic management

  1. Create or retrieve agencies, clients, campaigns, and orders.
  2. Configure dayparts, clips, industries, priorities, and constraints.
  3. Configure templates and break templates by station.
  4. Retrieve algorithm statistics.
  5. Run scheduling and review conflicts, unplaced items, and metrics.

8. Security and privacy

  • Do not include usernames, passwords, JWTs, keys, or private URLs in source code, repositories, telemetry, or screenshots.
  • Store secrets in the operating system's secure store or a secret manager.
  • Avoid logging bodies that may contain personal data, contacts, email addresses, or tokens.
  • Apply least privilege and separate read-only accounts from accounts with modification or deletion privileges.
  • Explicitly confirm destructive operations, especially hard delete, batch delete, and physical file deletion.
  • Do not expose the WebSocket broadcast endpoint to users without administrative authorization.

9. Implementation checklist

  • Configurable base URL and HTTPS in production.
  • Login and token excluded from logs.
  • Bearer token sent only to the expected host.
  • Timeouts, cancellation, and backoff implemented.
  • 200, 201, 204, 206, 400, 401, 404, 409, 416 and 500 handled.
  • Pagination used in material listings.
  • Streaming implements Range requests.
  • Mutations with unknown outcomes are not automatically retried.
  • Physical deletions require confirmation.
  • Models allow additional and null fields.
  • HARDATA ECP is the authority for on-air state.