# Copyright 2021 - 2025 PeopleWare n.v.
#
# Licensed under the Apache License, Version 2.0 (the “License”);
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an “AS IS” BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

type: object
examples:
  - structureVersion: 1
    createdAt: 2022-08-18T14:57:39.732Z
    createdBy: klkuij39035
    createdInError: true
description: The resource was created in error. There are no properties, except for the audit properties.
properties:
  structureVersion:
    type: integer
    examples:
      - 1
    description: Version of the data structure of this resource type
    minimum: 1
  createdAt:
    type: string
    examples:
      - 2020-01-23T15:22:39.212Z
      - 2020-01-23T15:22:39.21254888Z
    description: >-
      SoT of the resource action that `put`ed or `post`ed this item version, as ISO-8601 expressed in UTC ('Z'), to ms
      precision.


      Sent by the server in read. Ignored in create and update.
    pattern: ^\d{4}-(0[1-9]|1[0-2])-((0[1-9]|[1-2]\d)|30|31)T(0\d|1\d|2[0-3]):([0-5]\d):([0-5]\d)\.\d{3,}Z$
    readOnly: true
  createdBy:
    type: string
    examples:
      - y7_56b.953WP9
    description: >-
      Opaque id of the account that executed the resource action that `put`ed or `post`ed this item version.


      For manual interactions, the account refers to one specific natural person. The above implies that we have to be
      able to know from the value of this field as precise as possible to which organisation that natural person
      belongs. When we automatically proces data input files, we need to make sure that we use a different account per
      data source, and not one general account representing the overal import process.
    readOnly: true
  createdInError:
    examples:
      - true
    description: Marks the resource as created in error
    const: true
required:
  - structureVersion
  - createdAt
  - createdBy
  - createdInError
additionalProperties: true
