# ai.newnal.mydata.permissionsWriteProfile

- Kind: permission-set
- Authority: mydata.newnal.ai
- Lexicon: 1
- Published by [newnal-platform.newnal.id](https://lexicon.garden/identity/did:plc:vciktevzoffubdvdaajz2yp3), the NSID's authority

## Links

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

## Permission set (`ai.newnal.mydata.permissionsWriteProfile`)

Type: permission-set

### Shown at sign-in

- `title` (string): MyData: write the basic profile
- `detail` (string): Create, update and delete your name and profile image (the ai.newnal.mydata records profileIdentity and profileRepresentation) in your private sphere. It does not let the app read what is there, and it reaches no other record.

### Permissions

- `space` (permission): Create, update and delete ai.newnal.mydata.profileIdentity and ai.newnal.mydata.profileRepresentation records in the space self among your own ai.newnal.mydata.sphere.private spaces. From the Atproto Spaces proposal (0016); servers without it ignore space permissions.
  - Constraints: skey: self, collection: ai.newnal.mydata.profileIdentity, ai.newnal.mydata.profileRepresentation, action: create, update, delete
  - Space type: `ai.newnal.mydata.sphere.private`

### Asking for it (OAuth scope)

- `include:ai.newnal.mydata.permissionsWriteProfile` (scope): A client asks for this permission set with this scope. The scope builder lists what the set grants.
  - Scope builder: `Open in the scope builder`

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "detail": "Create, update and delete your name and profile image (the ai.newnal.mydata records profileIdentity and profileRepresentation) in your private sphere. It does not let the app read what is there, and it reaches no other record.",
      "permissions": [
        {
          "action": [
            "create",
            "update",
            "delete"
          ],
          "collection": [
            "ai.newnal.mydata.profileIdentity",
            "ai.newnal.mydata.profileRepresentation"
          ],
          "resource": "space",
          "skey": "self",
          "spaceType": "ai.newnal.mydata.sphere.private",
          "type": "permission"
        }
      ],
      "title": "MyData: write the basic profile",
      "type": "permission-set"
    }
  },
  "id": "ai.newnal.mydata.permissionsWriteProfile",
  "lexicon": 1
}
```
