Create sequences

Create one or more sequences.

Securityoidc-token or oauth2-client-credentials or oauth2-open-industrial-data or oauth2-auth-code
Request
Request Body schema: application/json
required

Sequence to be stored.

required
Array of objects (PostSequenceDTO) [ 1 .. 1000 ] items
Responses
201

Response with the created sequence.

400

The response for a failed request.

post/sequences
Request samples
from cognite.client.data_classes import SequenceWrite, SequenceColumnWrite
column_def = [
    SequenceColumnWrite(value_type="String", external_id="user", description="some description"),
    SequenceColumnWrite(value_type="Double", external_id="amount")
]
seq = client.sequences.create(SequenceWrite(external_id="my_sequence", columns=column_def))

seq2 = client.sequences.create(SequenceWrite(external_id="my_copied_sequence", columns=column_def))
Response samples
application/json
{
  • "items": [
    • {
      }
    ]
}