# Create or update time management code records (upsert)

**Create or update time management code records (upsert)**
Records are created if they don't exist, or updated if matched by `systemRef`.
Maximum 100 records per request.
**Real Example:**

```bash
curl --location 'https://{{host}}/api/v1/codes' \
--header 'Authorization: bearer {{token}}' \
--header 'Content-Type: application/json' \
--data '{
  "records": example value
}'
```

Endpoint: POST /api/v1/codes
Version: 1.0.0
Security: BearerAuth

## Request fields (application/json):

  - `records` (array, required)
    Records

  - `records.type` (string)
    Type

  - `records.systemRef` (object)
    Systemref

  - `records.attributes` (object)
    Attributes

## Response 200 fields (application/json):

  - `data` (object)

  - `data.summary` (object)
    Summary

  - `data.records` (array)
    Records

  - `error` (object)

  - `meta` (object)

  - `meta.success` (boolean)

  - `meta.message` (string)

  - `meta.timestamp` (string)

  - `meta.version` (string)

