---
title: "POST /udl/swir"
method: POST
path: "/udl/swir"
tags: ["Observation"]
---

# POST /udl/swir

`POST /udl/swir`

## Request

- Base URL: `https://unifieddatalibrary.com`
- URL: `https://unifieddatalibrary.com/udl/swir`
- Auth: none declared

Service operation to take a single SWIR record as a POST body and ingest into the database. A specific role is required to perform this service operation. Please contact the UDL team for assistance.

## Request body

- SWIRIngest: Data representing observed short wave infrared (SWIR) measurements.
  - `id` string: Unique identifier of the record, auto-generated by the system.
  - `classificationMarking` string, required: Classification marking of the data in IC/CAPCO Portion-marked format.
  - `idOnOrbit` string: Unique identifier of the target on-orbit object.
  - `ts` string, date-time, required: Data timestamp in ISO8601 UTC format.
  - `solarPhaseAngle` number, double: The angle, in degrees, between the target-to-observer vector and the target-to-sun vector.
  - `lat` number, double: Spacecraft WGS84 latitude, in degrees at obTime. -90 to 90 degrees (negative values south of equator).
  - `lon` number, double: Spacecraft WGS84 longitude at ob time, in degrees. -180 to 180 degrees (negative values west of Prime Meridian).
  - `locationName` string: Location/name of the observing sensor.
  - `badWave` string: User comments concerning sensor or data limitations.
  - `wavelengths` number[]: Array of wavelengths, in microns. This array should correspond with the same-sized array of absFluxes.
  - `absFluxes` number[]: Array of absolute flux measurement data, in Watts per square centimeter per micron. This array should correspond with the same-sized array of wavelengths.
  - `ratioWavelengths` number[]: Array of ratio wavelength data. This array should correspond with the same-sized array of fluxRatios.
  - `fluxRatios` number[]: Array of flux ratio data. This array should correspond with the same-sized array of ratioWavelengths.
  - `origObjectId` string: Original object ID or Catalog Number provided by source.
  - `source` string, required: Source of the data.
  - `origin` string: Originating system or organization which produced the data, if different from the source. The origin may be different than the source if the source was a mediating system which forwarded the data on behalf of the origin system. If null, the source may be assumed to be the origin.
  - `satNo` integer: Satellite/catalog number of the target on-orbit object.
  - `dataMode` 'REAL' | 'TEST' | 'SIMULATED' | 'EXERCISE', required: Indicator of whether the data is REAL, TEST, EXERCISE, or SIMULATED data: REAL: Data collected or produced that pertains to real-world objects, events, and analysis. TEST: Specific datasets used to evaluate compliance with specifications and requirements, and for validating technical, functional, and performance characteristics. EXERCISE: Data pertaining to a government or military exercise. The data may include both real and simulated data. SIMULATED: Synthetic data generated by a model to mimic real-world datasets.
  - `createdAt` string, date-time: Time the row was created in the database, auto-populated by the system.
  - `createdBy` string: Application user who created the row in the database, auto-populated by the system.
  - `origNetwork` string: The originating source network on which this record was created, auto-populated by the system.

## Response `201`

Success

## Other responses

- `400`: Bad Request
- `401`: Invalid/Missing User Credentials
- `403`: User Is Not Authorized
- `405`: Method Not Allowed
- `415`: MediaType Unsupported
- `429`: Rate of Requests Exceeds Allowed Limit
- `500`: Internal Server Error

## Changes

> 12 revisions in range; 1 could not be searched.

- **2025-04-16** `75f764c843a9`: 2 info
  - api operation id `create_128` removed and replaced with ``
  - the endpoint scheme security `BasicAuth` was removed from the API

[Operation history](https://skmtc.dev/bluestaq/apis/unified-data-library-services-api/changes/udl/swir/post.md)

---

[API](https://skmtc.dev/bluestaq/apis/unified-data-library-services-api.md) - [All operations](https://skmtc.dev/bluestaq/apis/unified-data-library-services-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bluestaq/apis/unified-data-library-services-api/revisions/bd17bc53681e?raw)
