Capella SpaceCapella Space Documentation
Welcome
Getting Started
Authentication
Accessing Data
Constellation Tasking
Tasking RequestsTasking Request StatusCost Review and ApprovalCancel a TaskTiles and CollectsSearching Single and Repeat Tasking RequestsOverviewRequest and ResponsePermissionsThe Search QueryOperatorsAdditional Information
Mission Awareness
API

Searching for Single and Repeat Tasking Requests

Overview

Existing Single and Repeat Tasking Requests can be found using our advanced search endpoints.

There are two distinct offerings for each type:

Single Tasking Requests

  • POST https://api.capellaspace.com/tasks/search

Repeat Tasking Requests

  • POST https://api.capellaspace.com/repeat-requests/search

Request and Response

Request Body

Both endpoints support the following request body structure:

ParameterFormatDescriptionDefault Value
sortstringKey scoped inside the task or repeat request properties to sort on. For example: windowOpen or collectConstraints.imageLength.submissionTime
orderenumDirection to sort the specified property. Must be one of asc or desc.desc
pageintegerThe page of results to obtain. Search responses will indicate totalPages.1
limitintegerThe amount of records to return in each search request (e.g. page size).250 (Maximum: 500)
queryobjectFilters to apply in an AND fashion. See documentation below for more information.{}

Response

Response on success will have a status of 200 and results are always paginated (see default values above).

{
results: [
// Array of Repeat Requests or Tasking Requests. See API reference for schemas
],
"currentPage": 1,
"totalPages": 20
}

Permissions

Search results are automatically restricted to tasks viewable by the requesting user.

In most cases you can only obtain tasking requests associated with your userId. Certain roles such as organization-manager can view all tasks within an organization.

The Search Query

The query parameter is an object containing keys for each property to filter against. All filters are applied in an AND operation.

There are several definitions of operators you can provide as a filter value. The type of each field dictates which one is supported.

Each endpoint declares fields and supported operators. SearchFilterProperty is the default unless otherwise specified.

Tasking Requests

To search single tasking requests you will use the POST /tasks/search endpoint.

POST https://api.capellaspace.com/tasks/search

See Request and Response.

Recognized Tasking Request query fields:

FieldSupported ValueNotes
taskingrequestNameTextSearchFilterProperty
taskNameTextSearchFilterPropertyalias to taskingrequestName
taskingrequestIdsSearchFilterProperty
taskIdsSearchFilterPropertyalias to taskingrequestIds
windowOpenDateTimeFilterProperty
windowCloseDateTimeFilterProperty
lastStatusCodeSearchFilterProperty
lastStatusMessageSearchFilterProperty
lastStatusTimeSearchFilterProperty
typeSearchFilterPropertyalias to collectConstraints.collectMode
submissionTimeDateTimeFilterProperty
repeatrequestIdSearchFilterProperty
windowDurationSearchFilterProperty
archiveHoldbackSearchFilterProperty
resellerIdSearchFilterProperty
includeRepeatingTasksSearchFilterPropertyAre tasks are spawned from a Repeat Request. Defaults to false
windowDurationSearchFilterProperty

All other attributes not explicitly defined can be searched using the standard SearchFilterProperty operators, dot scoped under properties.

For example:

"query": {
"collectConstraints.offNadirMin": {
"gte": 15.0
}
}
"query": {
"collectConstraints.offNadirMax": {
"lte": 48.0
}
}

Repeat Requests

To search repeat tasking requests you will use the POST /repeat-requests/search endpoint.

POST https://api.capellaspace.com/repeat-requests/search

See Request and Response.

Identical to single task search with exception to supported query fields:

FieldSupported ValueNotes
repeatrequestIdSearchFilterProperty
repeatrequestNameTextSearchFilterProperty
repeatrequestDescriptionTextSearchFilterProperty
lastStatusCodeSearchFilterProperty
lastStatusMessageSearchFilterProperty
lastStatusTimeSearchFilterProperty
typeSearchFilterPropertyAlias to collectConstraints.collectMode
submissionTimeDateTimeFilterProperty
windowDurationSearchFilterProperty
archiveHoldbackSearchFilterProperty
resellerIdSearchFilterProperty
windowDurationSearchFilterProperty

All other properties not explicitly defined can be searched using the standard SearchFilterProperty options, dot scoped under properties. For example:

"query": {
"collectConstraints.offNadirMin": {
"gte": 15.0
}
}
"query": {
"collectConstraints.offNadirMax": {
"lte": 48.0
}
}

Operators

Standard Search Operators

All fields unless superseded by a more specific set of operators support:

valuedescription
stringdirect comparison
array of stringsreturn records matching any value
object with one of key pair: eq, lt, lte, gt, gtecomparison

Examples

{
"query": {
"collectionTier": "background",
"lastStatusCode": [
'accepted',
'submitted
]
}
}

Text Search Operators

Certain fields are enabled for specific text search capability.

object value with keyDescription
startsWithPrefix of field's value must match provided
eqThe entire value must match provided
containsThe provided string must match anywhere inside the search field (regardless of word boundaries

Values can also be provided as a string which is shorthand for contains search.

All search values are case insensitive.

Examples

{
"query": {
"taskingrequestName": {
"startsWith": "San Fran"
},
"taskingrequestName": {
"eq": "san francisco"
},
"taskingrequestName": "san"
}
}

Date Time Search Operators

Fields representing dates with times can be search with specific operators.

Value should be a string which can represent either a date-time or an interval, open or closed. Date and time expressions adhere to RFC 3339. Open intervals are expressed using double-dots.

input valueexample
Specific DateTime2018-02-12T23:20:50Z
Closed Interval2018-02-12T00:00:00Z/2018-03-18T12:31:12Z
Open Ended Interval2018-02-12T00:00:00Z/..
Open Beginning Interval../2018-03-18T12:31:12Z

Examples

{
"query": {
"windowOpen": "2018-02-12T00:00:00Z/.."
}
}

Additional Information

For more information on constellation tasking requests, see the API reference for Tasking.