# ai.newnal.illi.mydata.copyFromOtherParent

> Root or main admin copies one record of the other parent into this parent ('같아요' chip), as an ordinary write in this parent's name with its own provenance. Allowed for interestsAndTastesNews, interestsAndTastesTravel, interestsAndTastesFood and profileScheduleActivities; health and mobility are NotCopyable.

- Kind: procedure
- Authority: mydata.illi.newnal.ai
- Lexicon: 1
- Published by [illi-service.newnal.id](https://lexicon.garden/identity/did:plc:uztm7bi2ce42dez3uu3qafro), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:uztm7bi2ce42dez3uu3qafro/ai.newnal.illi.mydata.copyFromOtherParent)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:uztm7bi2ce42dez3uu3qafro/ai.newnal.illi.mydata.copyFromOtherParent/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:uztm7bi2ce42dez3uu3qafro/ai.newnal.illi.mydata.copyFromOtherParent/analytics)

## Procedure (`ai.newnal.illi.mydata.copyFromOtherParent`)

Type: procedure · POST

### Input (application/json)

- `collection` (ref, required)
  - Reference: `ai.newnal.illi.mydata.defs#collection`
- `fromSlot` (integer, required): The parent slot, 1 or 2.
  - Constraints: minimum: 1, maximum: 2
- `homeId` (string · tid, required)
- `requestKey` (string, required): Idempotency key chosen by the client; a replay with the same key and input returns the first result.
  - Constraints: minLength: 1, maxLength: 64
- `rkey` (string · record-key, required)
- `toSlot` (integer, required): The parent slot, 1 or 2.
  - Constraints: minimum: 1, maximum: 2

### Output (application/json)

- `record` (ref, required)
  - Reference: `ai.newnal.illi.mydata.defs#recordView`

### Errors

- `NotMember`: No description in schema.
- `NotAdmin`: No description in schema.
- `HomeNotFound`: No description in schema.
- `ParentNotLinked`: No description in schema.
- `NotCopyable`: No description in schema.
- `RecordNotFound`: No description in schema.
- `DelegationUnavailable`: No description in schema.
- `PdsUnavailable`: No description in schema.
- `RequestConflict`: No description in schema.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Root or main admin copies one record of the other parent into this parent ('같아요' chip), as an ordinary write in this parent's name with its own provenance. Allowed for interestsAndTastesNews, interestsAndTastesTravel, interestsAndTastesFood and profileScheduleActivities; health and mobility are NotCopyable.",
      "errors": [
        {
          "name": "NotMember"
        },
        {
          "name": "NotAdmin"
        },
        {
          "name": "HomeNotFound"
        },
        {
          "name": "ParentNotLinked"
        },
        {
          "name": "NotCopyable"
        },
        {
          "name": "RecordNotFound"
        },
        {
          "name": "DelegationUnavailable"
        },
        {
          "name": "PdsUnavailable"
        },
        {
          "name": "RequestConflict"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "collection": {
              "ref": "ai.newnal.illi.mydata.defs#collection",
              "type": "ref"
            },
            "fromSlot": {
              "description": "The parent slot, 1 or 2.",
              "maximum": 2,
              "minimum": 1,
              "type": "integer"
            },
            "homeId": {
              "format": "tid",
              "type": "string"
            },
            "requestKey": {
              "description": "Idempotency key chosen by the client; a replay with the same key and input returns the first result.",
              "maxLength": 64,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9._:-]+$",
              "type": "string"
            },
            "rkey": {
              "format": "record-key",
              "type": "string"
            },
            "toSlot": {
              "description": "The parent slot, 1 or 2.",
              "maximum": 2,
              "minimum": 1,
              "type": "integer"
            }
          },
          "required": [
            "homeId",
            "fromSlot",
            "toSlot",
            "collection",
            "rkey",
            "requestKey"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "record": {
              "ref": "ai.newnal.illi.mydata.defs#recordView",
              "type": "ref"
            }
          },
          "required": [
            "record"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "ai.newnal.illi.mydata.copyFromOtherParent",
  "lexicon": 1
}
```
