Skip to main content
POST
Create data import lock

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json

Create or update a DataImportLock for a provider. The current calendar month cannot be locked. The previous calendar month can be locked on or after the 15th of the current month.

provider
string
required

The cost provider to lock, for example aws or gcp.

locked_until
string<date>
required

The last billing month to lock, as the first day of that month. ISO 8601 formatted. The current calendar month cannot be locked. The previous calendar month can be locked on or after the 15th of the current month.

Response

DataImportLock model

token
string
required

The token of the DataImportLock.

Example:

"etl_lck_1234"

provider
string
required

The cost provider whose processed cost months are locked.

Example:

"aws"

locked_until
string
required

The last billing month included in the lock, as the first day of that month. ISO 8601 formatted. The current calendar month cannot be locked. The previous calendar month can be locked on or after the 15th of the current month.

Example:

"2024-06-01"

created_by_token
string | null
required

The token of the user or team that created the DataImportLock.

Example:

"usr_1234"

created_at
string
required

The date and time, in UTC, the DataImportLock was created. ISO 8601 formatted.

Example:

"2024-06-28T00:00:00Z"